diff options
author | ivan <ivan> | 2006-12-28 07:02:20 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-12-28 07:02:20 +0000 |
commit | 882a548260ac67b57b546e4f2e61e27cc56d4971 (patch) | |
tree | 550e5189466b1ee4aa58a1fb70a153c9319832c7 /bin | |
parent | 1c27ee0bb757186752fb3f88d6b71c6bb1dfd9b1 (diff) |
adding pg-version
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pg-version | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bin/pg-version b/bin/pg-version new file mode 100755 index 000000000..b6cddb612 --- /dev/null +++ b/bin/pg-version @@ -0,0 +1,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"; +}; |