psql: server version check for \dO - Mailing list pgsql-hackers

From Josh Kupershmidt
Subject psql: server version check for \dO
Date
Msg-id CAK3UJRGt8TdJ+8iA777j4NFfsXVxJ=Rhn8QckmP8QUPHLzQyRg@mail.gmail.com
Whole thread Raw
Responses Re: psql: server version check for \dO
List 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

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Draft release notes complete
Next
From: Joe Conway
Date:
Subject: Re: memory leak regression 9.1 versus 8.1