]> 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:37:05 +0000 (18:37 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 10 Nov 2011 23:37:05 +0000 (18:37 -0500)
commit2463f5da3ccd67b266ee7a9b8c0906221a501b9e
tree118373450e3e844cbad613fb417df1a95b47dfa3
parentfe3bc4e33195c3bb931d2a4a0b392696a14a1b9a
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