Re: Can't get list of databases with \list - Mailing list pgsql-novice

From Tom Lane
Subject Re: Can't get list of databases with \list
Date
Msg-id 7628.1257190201@sss.pgh.pa.us
Whole thread Raw
In response to Can't get list of databases with \list  (Christopher Frank <c.frank@gmail.com>)
Responses Re: Can't get list of databases with \list  (Christopher Frank <c.frank@gmail.com>)
List pgsql-novice
Christopher Frank <c.frank@gmail.com> writes:
> Issuing a query of "\list" using jdbc doesn't seem to work:

Nope, it won't, because \list is a psql-ism.

If you want to exactly duplicate that you could run psql with -E and
look at the queries it issues and copy them (but beware that they are
backend-version-dependent).  However, I was under the impression that
JDBC had its own set of standard metadata inquiry operations.  You'd
probably be better off using those if they cover what you need.

I'm not sure how many JDBC hackers hang out here; you might be better
advised to ask on the pgsql-jdbc list.

            regards, tom lane

pgsql-novice by date:

Previous
From: JORGE MALDONADO
Date:
Subject: GETTING INFO FROM SEQUENCE OBJECTS
Next
From: Tom Lane
Date:
Subject: Re: Install problems for postgresql-8.4.1