makes all utilities honour --verbose command line option.
--
Yours, Alexey V. Borzov, Webmaster of RDW.ru
$sinfo = "$sinfo user=$opt_user" if (defined($opt_user));
$sinfo = "$sinfo password=$opt_password" if (defined($opt_password));
-my $conn = Pg::connectdb(sinfo);
+my $conn = Pg::connectdb($sinfo);
my $inpf = new IO::File;
$inpf = STDIN;
+$RServ::quiet = !$verbose;
+
$res = ApplySnapshot ($conn, $inpf);
if ($res > 0)
my $conn = Pg::connectdb($minfo);
+$RServ::quiet = !$verbose;
+
$res = CleanLog($conn, $howold);
exit(1) if $res < 0;
print("Connecting to '$sinfo'\n") if ($debug || $verbose);
my $conn = Pg::connectdb($sinfo);
+$RServ::quiet = !$verbose;
+
$res = GetSyncID($conn);
die "ERROR\n" if $res < 0;
all: $(SQLS) $(TCLS) $(PERLS) $(SCRIPTS) $(SONAME)
%.sql: %.sql.in
- sed 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' $< >$@
+ sed 's,@MODULE_FILENAME@,$(pkglibdir)/$(SONAME),g' $< >$@
$(PERLS) $(TCLS) $(SCRIPTS): %: %.in
- sed -e 's,@MODULE_FILENAME@,$$libdir/$(NAME),g' \
+ sed -e 's,@MODULE_FILENAME@,$(pkglibdir)/$(SONAME),g' \
-e 's:@SQLDIR@:$(datadir)/contrib:g' \
-e 's:@BINDIR@:$(bindir):g' \
-e 's:@LIBDIR@:$(datadir)/contrib:g' $< >$@
my $conn = Pg::connectdb($minfo);
+$RServ::quiet = !$verbose;
+
$res = SyncSyncID($conn, $server, $syncid);
if ($res == 0)
my $outf = new IO::File;
$outf = STDOUT;
+$RServ::quiet = !$verbose;
+
$res = PrepareSnapshot ($conn, $outf, $server);
if ($res == 0)
my $mconn = Pg::connectdb($minfo);
my $sconn = Pg::connectdb($sinfo);
+$RServ::quiet = !$verbose;
+
SyncSync($mconn, $sconn);
my $outf = new IO::File;