Re: Can't get list of databases with \list
От
Christopher Frank
Тема
Re: Can't get list of databases with \list
Дата
Msg-id
bedec1780911021234r4872a79j636753de4b492683@mail.gmail.com
Ответ на
Re: Can't get list of databases with \list (Tom Lane)
Список
Дерево обсуждения
Can't get list of databases with \list Christopher Frank <c.frank@gmail.com>
Re: Can't get list of databases with \list Tom Lane <tgl@sss.pgh.pa.us>
Re: Can't get list of databases with \list Christopher Frank <c.frank@gmail.com>
Re: Can't get list of databases with \list Richard Broersma <richard.broersma@gmail.com>
Re: Can't get list of databases with \list Christopher Frank <c.frank@gmail.com>
Re: Can't get list of databases with \list Richard Broersma <richard.broersma@gmail.com>
On Mon, Nov 2, 2009 at 2:30 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
Christopher Frank <c.frank@gmail.com> writes:Nope, it won't, because \list is a psql-ism.
> Issuing a query of "\list" using jdbc doesn't seem to work:
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
Thanks Tom. Your recommendation eventually led me to this thread. The query mentioned there is basically what \list does, just a little simpler. It looks like I can probably use that without worrying about different versions.
As for JDBC, there may be something that gives equivalent information, but I couldn't find it.
В списке pgsql-novice по дате отправления