Re: small windows psqlrc re-wording

2022-09-10 Thread Robert Treat
On Fri, Sep 9, 2022 at 1:52 PM Tom Lane wrote: > > I wrote: > > On testing that in HEAD, I read > > > Both the system-wide startup file and the user's personal startup file > > can be made psql-version-specific by appending a dash and the > > PostgreSQL major or minor release number

Re: small windows psqlrc re-wording

2022-09-09 Thread Tom Lane
I wrote: > On testing that in HEAD, I read > Both the system-wide startup file and the user's personal startup file > can be made psql-version-specific by appending a dash and the > PostgreSQL major or minor release number to the file name, for example > ~/.psqlrc-16 or

Re: small windows psqlrc re-wording

2022-09-08 Thread Tom Lane
Julien Rouhaud writes: > On Wed, Sep 07, 2022 at 01:10:11PM -0400, Tom Lane wrote: > - for example ~/.psqlrc-9.2 or > - ~/.psqlrc-9.2.5. The most specific > + for example ~/.psqlrc-15 or > + ~/.psqlrc-15.2. The most specific > This bit is a bit saddening. It's probably good to

Re: small windows psqlrc re-wording

2022-09-08 Thread Julien Rouhaud
On Wed, Sep 07, 2022 at 01:10:11PM -0400, Tom Lane wrote: > After looking at the text more carefully, I thought it could use > a deal more help than Robert has given it. I propose the attached. It looks good to me. - for example ~/.psqlrc-9.2 or - ~/.psqlrc-9.2.5. The most specific +

Re: small windows psqlrc re-wording

2022-09-07 Thread Tom Lane
After looking at the text more carefully, I thought it could use a deal more help than Robert has given it. I propose the attached. regards, tom lane diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 186f8c506a..f8112c1500 100644 ---

Re: small windows psqlrc re-wording

2022-07-28 Thread Tom Lane
Julien Rouhaud writes: > On Thu, Jul 28, 2022 at 10:04:12AM -0400, Tom Lane wrote: >> If all supported versions do have home directories now, should we >> instead think about aligning the Windows behavior with everywhere >> else? > As far as I know the expected usage on Windows is still

Re: small windows psqlrc re-wording

2022-07-28 Thread Julien Rouhaud
On Thu, Jul 28, 2022 at 10:04:12AM -0400, Tom Lane wrote: > Julien Rouhaud writes: > > On Wed, Jul 27, 2022 at 02:42:11PM -0400, Robert Treat wrote: > >> The attached patch tweaks the wording around finding the psqlrc file > >> on windows, with the primary goal of removing the generally incorrect

Re: small windows psqlrc re-wording

2022-07-28 Thread Tom Lane
Julien Rouhaud writes: > On Wed, Jul 27, 2022 at 02:42:11PM -0400, Robert Treat wrote: >> The attached patch tweaks the wording around finding the psqlrc file >> on windows, with the primary goal of removing the generally incorrect >> statement that windows has no concept of a home directory. >

Re: small windows psqlrc re-wording

2022-07-28 Thread Julien Rouhaud
Hi, On Wed, Jul 27, 2022 at 02:42:11PM -0400, Robert Treat wrote: > > The attached patch tweaks the wording around finding the psqlrc file > on windows, with the primary goal of removing the generally incorrect > statement that windows has no concept of a home directory. Windows only has a

small windows psqlrc re-wording

2022-07-27 Thread Robert Treat
Howdy folks, The attached patch tweaks the wording around finding the psqlrc file on windows, with the primary goal of removing the generally incorrect statement that windows has no concept of a home directory. Robert Treat https://xzilla.net windows-psqlrc.patch Description: Binary data