fix for psql's \dd version check

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: fix for psql's \dd version check
Date: 2011-11-11 23:59:39
Message-ID: CAK3UJRFtfn4H9nFL1W0KFoCaEYL-QBJpVO5kJegyNMZmxKSPsw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Someone (me) didn't get the version check for part of psql's \dd
command quite right. I was using a 9.2 client on a 9.1 server and got
this when I ran \dd:

ERROR: function pg_catalog.pg_opfamily_is_visible(oid) does not exist
LINE 33: AND pg_catalog.pg_opfamily_is_visible(opf.oid)

since pg_opfamily_is_visible() is only available for 9.2 and up.
Attached is a simple fix.

Josh

Attachment Content-Type Size
dd_opfamily_version_check.diff application/octet-stream 805 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Thom Brown 2011-11-12 00:08:35 Re: VACUUM touching file but not updating relation
Previous Message Tom Lane 2011-11-11 23:48:55 Re: Allow substitute allocators for PGresult.