Re: basic postgres questions...

From: Ray Stell <stellr(at)cns(dot)vt(dot)edu>
To: bruce <bedouglas(at)earthlink(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: basic postgres questions...
Date: 2007-05-16 15:31:59
Message-ID: 20070516153159.GA23924@cns.vt.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, May 16, 2007 at 08:21:59AM -0700, bruce wrote:
> hey.. .
>
> can someone point me to the cmds that i'd use in order to see what databases
> are created in my postgres app. i need to see what's here, and then i need

template1=# select datname, oid from pg_database;
datname | oid
-----------+-------
postgres | 10793
template1 | 1
template0 | 10792
wiki | 26158
(4 rows)

template1=# \l
List of databases
Name | Owner | Encoding
-----------+---------+----------
postgres | pgadmin | UTF8
template0 | pgadmin | UTF8
template1 | pgadmin | UTF8
wiki | pgadmin | UTF8
(4 rows)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Henry 2007-05-16 16:30:03 Committing in a trigger
Previous Message bruce 2007-05-16 15:21:59 basic postgres questions...