pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: monika.koenig@bonn.de
To: pgsql-admin@postgresql.org
Subject: Re: dumb question: how to get a list of databases?
Date: 3 Dec 2002 03:34:45 -0800
Message-ID: <cba90948.0212030334.5f813266@posting.google.com> (raw)
References: <9MEG9.2902$PK6.160071979@newssvr14.news.prodigy.com>

Jack Flak <jack@jackflak.net> wrote in message news:<9MEG9.2902$PK6.160071979@newssvr14.news.prodigy.com>...
> Greetings group,
> 
> How do I get a list of current, existing databases (catalogs) for my 
> current installation?
> 
> Also: how do I find out my current version in linux?  I ran this:
> 
>    /usr/local/pgsql/bin/psql --version
> 
> and I got this:
> 
>    psql (PostgreSQL) 7.1
> 
> So it looks like I'm currently running 7.1.  Is this the only way to 
> find out?
> 
> Thanks for your time.
> 
> 
> (Email address is invalid to prevent more spam)
you can use a simple sql to find it out.

try: select datname from pg_database ;



view thread (2+ messages)  latest in thread

Message-ID: <cba90948.0212030334.5f813266@posting.google.com>
Permalink:  ../cba90948.0212030334.5f813266@posting.google.com/
Also on:    postgresql.org/message-id/cba90948.0212030334.5f813266@posting.google.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: monika.koenig@bonn.de
  Subject: Re: dumb question: how to get a list of databases?
  In-Reply-To: <cba90948.0212030334.5f813266@posting.google.com>
  References: <9MEG9.2902$PK6.160071979@newssvr14.news.prodigy.com> <cba90948.0212030334.5f813266@posting.google.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox