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

Re: Writing code to list Databases ?

From: Joe Conway <mail(at)joeconway(dot)com>
To: pgmoscatt(at)optushome(dot)com(dot)au
Cc: "\"PostgreSQL [INTERFACES] \" List" <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: Writing code to list Databases ?
Date: 2003-08-24 01:56:50
Message-ID: 3F481B62.1000303@joeconway.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
Peter Moscatt wrote:
> Are there routines that allow me to list databases within PostGres ?
> 

 From a shell prompt, use `psql -l`. The SQL command is:
   select datname from pg_database;

HTH,

Joe



In response to

pgsql-interfaces by date

Next:From: Michael MeskesDate: 2003-08-24 09:25:13
Subject: Re: ECPG Problem (Bug?)
Previous:From: Peter MoscattDate: 2003-08-24 01:55:11
Subject: Writing code to list Databases ?

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