From 2795592e52c88e510ae4bcbc17b305d6adc0b2b6 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 14 Oct 2011 20:26:28 -0400 Subject: 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. --- doc/src/sgml/ref/psql-ref.sgml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 662eab7b6d0..4eefe3b4ab2 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -3332,8 +3332,10 @@ PSQL_EDITOR_LINENUMBER_ARG='--line ' Both the system-wide psqlrc file and the user's ~/.psqlrc file can be made version-specific by appending a dash and the PostgreSQL - release number, for example ~/.psqlrc-&version;. - A matching version-specific file will be read in preference to a + major or minor release number, for example + ~/.psqlrc-9.2 or + ~/.psqlrc-9.2.5. The most specific + version-matching file will be read in preference to a non-version-specific file. -- cgit v1.2.3