You could query for this info too.
my $sql = 'SELECT datname FROM pg_database'; my @databases = map { $_->[0] } @{ $dbh->selectall_arrayref( $sql ) };
That query works with my PostgreSQL 8.3.3, but I haven't tried the Perl code.
In reply to Re: Getting all the databases of a PostGreSQL database server.
by kyle
in thread Getting all the databases of a PostGreSQL database server.
by pankaj_it09
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |