summaryrefslogtreecommitdiff
path: root/bin/pg-version
blob: b6cddb61269e79a5478f3be5d0b82b925d90af2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -w

use strict;
use FS::UID qw(adminsuidsetup dbh);

my $user = shift or die &usage;
adminsuidsetup($user);

print "pg_server_version: ". dbh->{'pg_server_version'}. "\n";

sub usage {
  "\n\nUsage: pg-version username\n";
};