/[rserv]/bin/Replicate
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /bin/Replicate

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by dpavlin, Wed Dec 20 17:22:35 2000 UTC revision 1.2 by dpavlin, Tue Aug 5 09:20:08 2003 UTC
# Line 1  Line 1 
1  # -*- perl -*-  #!/usr/bin/perl
2  # Replicate  # Replicate
3  # Vadim Mikheev, (c) 2000, PostgreSQL Inc.  # Vadim Mikheev, (c) 2000, PostgreSQL Inc.
4    
# Line 6  eval '(exit $?0)' && eval 'exec perl -S Line 6  eval '(exit $?0)' && eval 'exec perl -S
6      & eval 'exec perl -S $0 $argv:q'      & eval 'exec perl -S $0 $argv:q'
7      if 0;      if 0;
8    
9  use lib "@LIBDIR@";  use lib "/usr/share/postgresql/contrib";
10    
11  use IO::File;  use IO::File;
12  use Getopt::Long;  use Getopt::Long;
# Line 49  print "Slave connection is $sinfo\n" if Line 49  print "Slave connection is $sinfo\n" if
49  my $mconn = Pg::connectdb($minfo);  my $mconn = Pg::connectdb($minfo);
50  my $sconn = Pg::connectdb($sinfo);  my $sconn = Pg::connectdb($sinfo);
51    
52    $RServ::quiet = !$verbose;
53    
54  SyncSync($mconn, $sconn);  SyncSync($mconn, $sconn);
55    
56  my $outf = new IO::File;  my $outf = new IO::File;

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26