1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Allow a major PG version psql .psqlrc file to be used if a minor

matching version file does not exist.  This avoids needing to rename
.psqlrc files after minor version upgrades.
This commit is contained in:
Bruce Momjian
2011-10-14 20:26:28 -04:00
parent d26e1ebaf5
commit 2795592e52
2 changed files with 17 additions and 8 deletions

View File

@ -3332,8 +3332,10 @@ PSQL_EDITOR_LINENUMBER_ARG='--line '
Both the system-wide <filename>psqlrc</filename> file and the user's
<filename>~/.psqlrc</filename> file can be made version-specific
by appending a dash and the <productname>PostgreSQL</productname>
release number, for example <filename>~/.psqlrc-&version;</filename>.
A matching version-specific file will be read in preference to a
major or minor release number, for example
<filename>~/.psqlrc-9.2</filename> or
<filename>~/.psqlrc-9.2.5</filename>. The most specific
version-matching file will be read in preference to a
non-version-specific file.
</para>
</listitem>