Tue Jul 15 15:42:01 PDT 2008
- Previous message: [Slony1-commit] slony1-engine/tools start_slon.sh
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Update of /home/cvsd/slony1/slony1-engine/tools
In directory main.slony.info:/tmp/cvs-serv12140
Modified Files:
test_slony_state-dbi.pl
Log Message:
Provide better error handling for DSN handling for the remote nodes.
Per Gurjeet Singh
Index: test_slony_state-dbi.pl
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/tools/test_slony_state-dbi.pl,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** test_slony_state-dbi.pl 2 Jan 2007 19:34:11 -0000 1.5
--- test_slony_state-dbi.pl 15 Jul 2008 22:41:59 -0000 1.6
***************
*** 73,78 ****
--- 73,81 ----
sub test_node {
my ($node, $dsn) = @_;
+ $dsn="dbi:Pg:$dsn";
print "\nTests for node $node - DSN = $dsn\n========================================\n";
+ $dbh = DBI->connect($dsn) or add_problem($node, "Could not connect.",
+ qq(Could not connect to node $node using DSN: $dsn)) and return;
my $listener_query = "select relpages, reltuples from pg_catalog.pg_class where relname = 'pg_listener';";
- Previous message: [Slony1-commit] slony1-engine/tools start_slon.sh
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list