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

From Christopher Frank
Subject Re: Can't get list of databases with \list
Date
Msg-id bedec1780911021305r3e1a794co77f1adba11434c5d@mail.gmail.com
Whole thread Raw
In response to Re: Can't get list of databases with \list  (Richard Broersma <richard.broersma@gmail.com>)
Responses Re: Can't get list of databases with \list  (Richard Broersma <richard.broersma@gmail.com>)
List pgsql-novice
On Mon, Nov 2, 2009 at 3:51 PM, Richard Broersma <richard.broersma@gmail.com> wrote:
On Mon, Nov 2, 2009 at 12:34 PM, Christopher Frank <c.frank@gmail.com> wrote:

>> 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
>
> As for JDBC, there may be something that gives equivalent information, but I
> couldn't find it.

http://java.sun.com/javase/6/docs/api/java/sql/DatabaseMetaData.html

getCatalogs()


--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

I had tried that but it only returned one database, the database to which I was already connected. There should have been 3 others.

pgsql-novice by date:

Previous
From: Richard Broersma
Date:
Subject: Re: Can't get list of databases with \list
Next
From: Richard Broersma
Date:
Subject: Re: Can't get list of databases with \list