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:41
Message-ID: E1ROeBh-0002UB-51@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_0_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/c49130ade4dac5d8dff724cf15b0f0cdb9cf7d24

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

Browse pgsql-committers by date

  From Date Subject
Next Message Thom Brown 2011-11-10 23:56:46 Re: [COMMITTERS] pgsql: Enable CHECK constraints to be declared NOT VALID
Previous Message Tom Lane 2011-11-10 23:37:40 pgsql: Throw nice error if server is too old to support psql's \ef or \