]> granicus.if.org Git - postgresql/commit
Throw nice error if server is too old to support psql's \ef or \sf command.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Nov 2011 23:36:49 +0000 (18:36 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Nov 2011 23:36:49 +0000 (18:36 -0500)
commit6f3dc00e24aa2a8e7e2c5e5095b6223712b8204c
tree341d9b2614b0625427bb7615f0308beba135fd91
parent788cb1c2e8c68d054b7b5bb43f659347acf09278
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
src/bin/psql/command.c