Re: [PATCHES] PSQLRC environment variable.

2004-04-21 Thread Peter Eisentraut
Bruce Momjian wrote: Applied. Replace rename it to psqlrc instead of psql.rc. ---(end of broadcast)--- TIP 8: explain analyze is your friend

Re: [PATCHES] PSQLRC environment variable.

2004-04-20 Thread Bruce Momjian
Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: I just checked a few apps and I see they usually allow a global config file to be specified. How about SYSPSQLRC that adds a system-wide psql config file to be read before the one in the home directory?

Re: [PATCHES] PSQLRC environment variable.

2004-03-13 Thread Bruce Momjian
Bruce Momjian wrote: Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: Tom Lane wrote: Uh, why is that a good idea? Well, suppose you want all your users to use the same psqlrc file. Instead of creating symlinks for every user, you can just set

Re: [PATCHES] PSQLRC environment variable.

2004-03-13 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: I just checked a few apps and I see they usually allow a global config file to be specified. How about SYSPSQLRC that adds a system-wide psql config file to be read before the one in the home directory? The ones I know of that allow such a thing

Re: [PATCHES] PSQLRC environment variable.

2004-03-10 Thread Bruce Momjian
Bruce Momjian wrote: Tom Lane wrote: Bruce Momjian [EMAIL PROTECTED] writes: Tom Lane wrote: Uh, why is that a good idea? Well, suppose you want all your users to use the same psqlrc file. Instead of creating symlinks for every user, you can just set PSQLRC in /etc/profile

[PATCHES] PSQLRC environment variable.

2004-03-09 Thread James Tanis
In the tradition of telnet, xinit, and others, I've created a patch which allows users to override the location of .psqlrc by setting the PSQLRC environment variable. I occurs to me that you have probably considered this and the fact that it is not implemented suggests that you have rejected the

Re: [PATCHES] PSQLRC environment variable.

2004-03-09 Thread Bruce Momjian
Seems like a nice feature to me. --- James Tanis wrote: In the tradition of telnet, xinit, and others, I've created a patch which allows users to override the location of .psqlrc by setting the PSQLRC environment

Re: [PATCHES] PSQLRC environment variable.

2004-03-09 Thread Tom Lane
James Tanis [EMAIL PROTECTED] writes: In message [EMAIL PROTECTED], Tom Lane avows: Uh, why is that a good idea? As you will see, it takes a pretty contrived situation, but indeed I've got one :-) I have a software system which can use postgres if the user so wishes. We have a wrapper

Re: [PATCHES] PSQLRC environment variable.

2004-03-09 Thread Tom Lane
Bruce Momjian [EMAIL PROTECTED] writes: Tom Lane wrote: Uh, why is that a good idea? Well, suppose you want all your users to use the same psqlrc file. Instead of creating symlinks for every user, you can just set PSQLRC in /etc/profile and everyone gets it. ... but people who want to make