Re: [PATCHES] PSQLRC environment variable.

2004-04-22 Thread Bruce Momjian
Peter Eisentraut wrote: > Bruce Momjian wrote: > > Applied. > > Replace rename it to psqlrc instead of psql.rc. Yea, I debated psql.rc and psqlrc, but chose psql.rc. If you like psqlrc better, that's fine with me. Patch attached and applied. -- Bruce Momjian| http:/

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-21 Thread Bruce Momjian
Applied. --- Bruce Momjian wrote: > 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 s

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 dir

Re: [PATCHES] PSQLRC environment variable.

2004-03-14 Thread Bruce Momjian
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? > > The ones I know of

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 gen

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 e

Re: [PATCHES] PSQLRC environment variable.

2004-03-13 Thread James Tanis
In message <[EMAIL PROTECTED]>, Tom Lane avows: %--- Begin Cite ---% > But if they do have their own .psqlrc, doesn't that mean that you fail > to apply the change you need? It seems like this mechanism doesn't If they have their own, then I trust them to do what they want (ie they can then add

Re: [PATCHES] PSQLRC environment variable.

2004-03-13 Thread James Tanis
In message <[EMAIL PROTECTED]>, Tom Lane avows: %--- Begin Cite ---% > James Tanis <[EMAIL PROTECTED]> writes: > > In the tradition of telnet, xinit, and others, I've created a patch wh > ich > > allows users to override the location of .psqlrc by setting the PSQLRC > > environment variable. > >

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

Re: [PATCHES] PSQLRC environment variable.

2004-03-10 Thread Bruce Momjian
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 and everyone gets

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

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 wr

Re: [PATCHES] PSQLRC environment variable.

2004-03-09 Thread Bruce Momjian
Tom Lane wrote: > James Tanis <[EMAIL PROTECTED]> writes: > > 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. > > Uh, why is that a good idea? Well, suppose you want all

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 va

Re: [PATCHES] PSQLRC environment variable.

2004-03-09 Thread Tom Lane
James Tanis <[EMAIL PROTECTED]> writes: > 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. Uh, why is that a good idea? regards, tom lane

[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 i