pgsql: Throw nice error if server is too old to support psql's \ef or \

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Throw nice error if server is too old to support psql's \ef or \
Date: 2011-11-10 23:37:40
Message-ID: E1ROeBg-0002U9-Vw@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Throw nice error if server is too old to support psql's \ef or \sf command.

Previously, you'd get "function pg_catalog.pg_get_functiondef(integer) does
not exist", which is at best rather unprofessional-looking. Back-patch
to 8.4 where \ef was introduced.

Josh Kupershmidt

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/07d5205582daa0a2b1472404f7929536d702e947

Modified Files
--------------
src/bin/psql/command.c | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2011-11-10 23:37:41 pgsql: Throw nice error if server is too old to support psql's \ef or \
Previous Message Robert Haas 2011-11-10 23:04:13 pgsql: Correct documentation for trace_userlocks.