Re: 'show databases' in psql way? - Mailing list pgsql-sql

From Greg Sabino Mullane
Subject Re: 'show databases' in psql way?
Date
Msg-id 63533a400e3d9e681c7b819780c5cd35@biglumber.com
Whole thread Raw
In response to 'show databases' in psql way?  (Erik Wasser <erik.wasser@iquer.net>)
List pgsql-sql
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> how can I list the databases in a postgresish way? I know
> about the '-l' switch of 'psql' but is there a DBI/SQL-query way?
Yes, the DBI way is to use the "data_sources" function. Works
just fine for Postgres:
my @dbs = DBI->data_sources('Pg');
- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200411012240
-----BEGIN PGP SIGNATURE-----
iD8DBQFBhwIHvJuQZxSWSsgRArd1AJ9hKXD+cSaM2L3RUXQdabuRofNFjwCfaHT0
+bRPuYhuED0mnlp1FRtvQQw=
=tsqe
-----END PGP SIGNATURE-----




pgsql-sql by date:

Previous
From: T E Schmitz
Date:
Subject: Re: Join Table
Next
From: Michael Fuhr
Date:
Subject: Re: Join Table