If you had log_statement set to something other than 'none', the create
database statement will appear in your database logs.
If you don't have it set, today would be a great day to set it to 'ddl'.
https://stream.boxwatch.ru/docs/17/runtime-config-logging.html#RUNTIME-CONFIG-LOGGING-WHAT
Cheers,
Greg
--
Crunchy Data - https://www.crunchydata.com
Enterprise Postgres Software Products & Tech Support