我正在尝试在容器中启动postgres db。下面的脚本仅创建数据库,而没有超出此范围。请提示出什么问题了。
CREATE DATABASE mydb;
CREATE USER mydb;
ALTER DATABASE mydb owner to mydb;
GRANT ALL PRIVILEGES ON DATABASE mydb TO mydb;
GRANT CONNECT ON DATABASE mydb to mydb;
CREATE SCHEMA mydb.mydb ;
ALTER SCHEMA my_db.mydb owner to mydb;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA mydb.mydb TO mydb ;
CREATE TABLE mydb.applist
(
"APPLICATION_ID" character varying(60) COLLATE pg_catalog."default" NOT NULL,
"APPLICATION_NAME" character varying(200) COLLATE pg_catalog."default",
)
WITH (
OIDS = FALSE
)
TABLESPACE pg_default;
建议更正。不会创建架构和表。