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

Re: Database names and pg_dump

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Rickard <David(dot)Rickard(at)GTScompanies(dot)com>
Cc: pgsql-novice(at)postgresql(dot)org,Judith Strawser <judiths(at)GTScompanies(dot)com>
Subject: Re: Database names and pg_dump
Date: 2003-08-26 21:44:19
Message-ID: 16984.1061934259@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-novice
David Rickard <David(dot)Rickard(at)GTScompanies(dot)com> writes:
> Is there an equivalent file or utility that will provide the name of each 
> database within a PostGreSQL cluster?

SELECT datname FROM pg_database;

			regards, tom lane

In response to

pgsql-novice by date

Next:From: Ron JohnsonDate: 2003-08-26 21:47:01
Subject: Re: Database names and pg_dump
Previous:From: David RickardDate: 2003-08-26 21:38:15
Subject: Database names and pg_dump

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