Actions
Bug #23395
closedBug #23388: Server install fails with postgresql encoding error
Error in create database syntaxe: template AFTER owner
Status:
Released
Priority:
N/A
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No
Description
The syntax is not:
su postgres -c "psql -q -c \"CREATE DATABASE ${DB_NAME} TEMPLATE template0 WITH OWNER = ${DB_USER} ENCODING = UTF8\""
But
su postgres -c "psql -q -c \"CREATE DATABASE ${DB_NAME} WITH OWNER = ${DB_USER} TEMPLATE template0 ENCODING = UTF8\""
See: https://www.postgresql.org/docs/current/sql-createdatabase.html
Files
Actions