Re: psql: server version check for \dO

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: psql: server version check for \dO
Date: 2012-05-10 07:13:45
Message-ID: CABUevExAZpKZXfn5pwdVDs2OUkE3HYZG4CD=rxCOawzJUDDMDQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, May 10, 2012 at 7:09 AM, Josh Kupershmidt <schmiddy(at)gmail(dot)com> wrote:
> Hi all,
>
> I think psql's \dO command is missing the server version check which
> similar commands such as \dx use. Right now \dO errors out with:
>
> test=# \dO
> ERROR:  relation "pg_catalog.pg_collation" does not exist
>
> when talking to servers older than 9.1, which don't have pg_collation.
> Simple patch for listCollations() attached.

Indeed. Thanks, applied and backpatched to 9.1.

--
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2012-05-10 07:50:14 Re: Draft release notes complete
Previous Message Tom Lane 2012-05-10 06:38:06 Re: bgwriter idle-mode behavior (was Re: Latch for the WAL writer)