From: Kern Sibbald Date: Sat, 9 Dec 2017 10:53:26 +0000 (+0100) Subject: Use correct SQL table encoding for Postgresql 10.x X-Git-Tag: Release-9.0.7~11 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9a00193e3365f782493e66c97173ef1459a99142;p=bacula%2Fbacula Use correct SQL table encoding for Postgresql 10.x --- diff --git a/bacula/src/cats/create_postgresql_database.in b/bacula/src/cats/create_postgresql_database.in index ac15d524e8..deff1017c5 100644 --- a/bacula/src/cats/create_postgresql_database.in +++ b/bacula/src/cats/create_postgresql_database.in @@ -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