Skip site navigation (1) Skip section navigation (2)

Re: Can't get list of databases with \list

From: Christopher Frank <c(dot)frank(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Can't get list of databases with \list
Date: 2009-11-02 21:05:52
Message-ID: bedec1780911021305r3e1a794co77f1adba11434c5d@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On Mon, Nov 2, 2009 at 3:51 PM, Richard Broersma <richard(dot)broersma(at)gmail(dot)com
> wrote:

> On Mon, Nov 2, 2009 at 12:34 PM, Christopher Frank <c(dot)frank(at)gmail(dot)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.

In response to

Responses

pgsql-novice by date

Next:From: Richard BroersmaDate: 2009-11-02 21:10:48
Subject: Re: Can't get list of databases with \list
Previous:From: Richard BroersmaDate: 2009-11-02 20:51:01
Subject: Re: Can't get list of databases with \list

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group