Logical retrieval fails to create "postgres" database
Goal
Fix importing of data when postgres database is specified, currently it fails.
TODO / How to implement
kwaiting for server to shut down....2020-08-31 13:12:42.123 UTC [35] LOG: aborting any active transactions
y2020-08-31 13:12:42.125 UTC [35] LOG: background worker "logical replication launcher" (PID 42) exited with exit code 1
52020-08-31 13:12:42.125 UTC [37] LOG: shutting down
D2020-08-31 13:12:42.135 UTC [35] LOG: database system is shut down
done
server stopped
6PostgreSQL init process complete; ready for start up.
U2020-08-31 13:12:42.233 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
P2020-08-31 13:12:42.234 UTC [1] LOG: listening on IPv6 address "::", port 5432
c2020-08-31 13:12:42.238 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
`2020-08-31 13:12:42.252 UTC [44] LOG: database system was shut down at 2020-08-31 13:12:42 UTC
U2020-08-31 13:12:42.255 UTC [1] LOG: database system is ready to accept connections
L2020-08-31 13:12:46.911 UTC [62] ERROR: database "postgres" already exists
�2020-08-31 13:12:46.911 UTC [62] STATEMENT: CREATE DATABASE postgres WITH TEMPLATE = template0 ENCODING = 'UTF8' LC_COLLATE = 'en_US.UTF-8' LC_CTYPE = 'en_US.UTF-8';
Acceptance criteria
Edited by Anatoly Stansler