Adds OID to see the error cause

create_drop_db_gh
gindibay 2023-10-05 22:30:06 +03:00
parent 76f1d242c9
commit 8f08074720
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ CREATE DATABASE mydatabase
ALLOW_CONNECTIONS = true ALLOW_CONNECTIONS = true
IS_TEMPLATE = false; IS_TEMPLATE = false;
SELECT pd.datname, pd.encoding, SELECT pd.oid,pd.datname, pd.encoding,
pd.datistemplate, pd.datallowconn, pd.datconnlimit, pd.datistemplate, pd.datallowconn, pd.datconnlimit,
pd.datcollate , pd. datctype , pd.datacl, rolname AS database_owner, pd.datcollate , pd. datctype , pd.datacl, rolname AS database_owner,
pa.rolname AS database_owner, pt.spcname AS tablespace pa.rolname AS database_owner, pt.spcname AS tablespace