psql: server version check for \dO

From: Josh Kupershmidt <schmiddy(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: psql: server version check for \dO
Date: 2012-05-10 05:09:27
Message-ID: CAK3UJRGt8TdJ+8iA777j4NFfsXVxJ=Rhn8QckmP8QUPHLzQyRg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Josh

Attachment Content-Type Size
listCollations_versioncheck.diff text/x-patch 639 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2012-05-10 05:11:37 Re: memory leak regression 9.1 versus 8.1
Previous Message Bruce Momjian 2012-05-10 05:08:02 Re: Draft release notes complete