]> 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:55 +0000 (18:36 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Nov 2011 23:36:55 +0000 (18:36 -0500)
commit07d5205582daa0a2b1472404f7929536d702e947
tree5b1df5a775263eadefd625c424d7a42b9a91e0b2
parent91e8cb61a576ee48e224da1303ef37edc9067cc6
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