]> git.sur5r.net Git - bacula/bacula/commitdiff
Use correct SQL table encoding for Postgresql 10.x
authorKern Sibbald <kern@sibbald.com>
Sat, 9 Dec 2017 10:53:26 +0000 (11:53 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 9 Dec 2017 14:13:42 +0000 (15:13 +0100)
bacula/src/cats/create_postgresql_database.in

index ac15d524e822a2658b3c8018b5c310ddd8e1d637..deff1017c5ef9ba381812005762cee54144ee48b 100644 (file)
@@ -21,15 +21,12 @@ PSQLVERSION=`psql -d template1 -c 'select version()' $* | awk '/PostgreSQL/ {pri
 # This must be updated for future versions of PostgreSQL
 #
 case ${PSQLVERSION} in
-   9.*)
+   8.[456789] | 9.* | 10.*)
        ENCODING="ENCODING 'SQL_ASCII' LC_COLLATE 'C' LC_CTYPE 'C'"
    ;;
-   8.[456789])
-       ENCODING="ENCODING 'SQL_ASCII' LC_COLLATE 'C' LC_CTYPE 'C'"
-    ;;
-    *)
+   *)
        ENCODING="ENCODING 'SQL_ASCII'"
-    ;;
+   ;;
 esac