pg_get_database_ddl ( database regdatabase [, pretty boolean DEFAULT false] [, owner boolean DEFAULT true] [, tablespace boolean DEFAULT true] ) → setof text → setof text重建指定数据库的
CREATE DATABASE语句,随后返回用于连接数上限、模板状态和配置设置的 ALTER DATABASE语句。每条语句作为单独一行返回。当pretty为 true 时,启用美化输出。当owner为 false 时,省略OWNER子句。当tablespace为 false 时,省略TABLESPACE子句。