slony at estrider.com slony at estrider.com
Thu Oct 25 13:11:49 PDT 2007
   
There is a flaw in the slonik_build_env.pl script. The print test should 
be >=1 and not > 1. It currently will not print databases where there 
are only single tables or sequences.


So, it should be:

if ( scalar(@tablesWithIndexes) >= 1 ) {
  print '@KEYEDTABLES=(' . "\n";
  foreach my $table (sort @tablesWithIndexes) {
    print "\t\"$table\",\n";
  }
  print ");\n";
}
if ( scalar(@tablesWithoutIndexes) >= 1 ) {
  print '@SERIALTABLES=(' . "\n";
  foreach my $table (sort @tablesWithoutIndexes) {
    print "\t\"$table\",\n";
  }
  print ");\n";
}
if ( scalar(@sequences) >= 1 ) {
  print '@SEQUENCES=(' . "\n";
  foreach my $table (sort @sequences) {
    print "\t\"$table\",\n";
  }
  print ");\n";
}


More information about the Slony1-bugs mailing list