Re: fix for psql's \dd version check

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: fix for psql's \dd version check
Date: 2011-11-12 04:34:35
Message-ID: CA+TgmoZ9A=jZTaTGtv72BBe5_JUc6-U=wsQMJ4d2WJxA++wCeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Nov 11, 2011 at 6:59 PM, Josh Kupershmidt <schmiddy(at)gmail(dot)com> wrote:
> 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.

Thanks, committed with some comments.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Nikhil Sontakke 2011-11-12 04:55:12 Re: Re: pg_dump: schema with OID XXXXX does not exist - was Concurrent CREATE TABLE/DROP SCHEMA leaves inconsistent leftovers
Previous Message Jeroen Vermeulen 2011-11-12 04:21:10 Re: foreign key locks, 2nd attempt