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: (view raw, whole thread or download thread mbox)
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;



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-2017 The PostgreSQL Global Development Group