]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/create_postgresql_database.in
Change old get_Jobxxx to getJobxxx
[bacula/bacula] / bacula / src / cats / create_postgresql_database.in
index 896c2e6e0154005b498c889b1b5551af95dcfbf1..38f793c3e457f3ba10e883d8cd334426f8dee5e4 100644 (file)
@@ -10,7 +10,7 @@ db_name=@db_name@
 # use SQL_ASCII to be able to put any filename into
 #  the database even those created with unusual character sets
 
-PSQLVERSION=`$bindir/psql --version | head -n1 | cut -d ' ' -f 3 | cut -d '.' -f 1,2`
+PSQLVERSION=`$bindir/psql -d template1 -c 'select version()' | head -n1  | cut -d ' ' -f 2 | cut -d '.' -f 1,2`
 
 #
 # Note, LC_COLLATE and LC_TYPE are needed on 8.4 and beyond, but are