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:
@ -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>
|
||||
|
Reference in New Issue
Block a user