Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F378E475D3B for ; Tue, 3 Dec 2002 06:34:45 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 8888D475D01 for ; Tue, 3 Dec 2002 06:34:45 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 7AF8E43A847; Tue, 3 Dec 2002 06:34:45 -0500 (EST) From: monika.koenig@bonn.de (=?ISO-8859-2?Q?M.K=F6nig?=) X-Newsgroups: comp.databases.postgresql.admin Subject: Re: dumb question: how to get a list of databases? Date: 3 Dec 2002 03:34:45 -0800 Organization: http://groups.google.com/ Lines: 24 Message-ID: References: <9MEG9.2902$PK6.160071979@newssvr14.news.prodigy.com> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Complaints-To: groups-abuse@google.com To: pgsql-admin@postgresql.org X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/22 X-Sequence-Number: 6517 Jack Flak 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 ;