CREATE TABLE IF NOT EXISTS schema1.table1
(
ID bigint NOT NULL,
eid bigint NOT NULL,
sID bigint,
oname character varying COLLATE pg_catalog."default" NOT NULL,
obtype integer NOT NULL,
parentid bigint,
pageorder integer,
obsubtype integer NOT NULL DEFAULT 0,
pstate integer NOT NULL DEFAULT 1,
lastmodifieddate timestamp without time zone,
lastmodifiedbyid bigint,
vstype integer,
opath character varying COLLATE pg_catalog."default",
arc boolean,
folder boolean,
fcategory bigint NOT NULL DEFAULT 915,
imotype boolean,
iostype boolean,
isemailmsg boolean NOT NULL DEFAULT false,
igtype boolean,
extension character varying COLLATE pg_catalog."default",
iher character varying COLLATE pg_catalog."default",
realpathoffset integer,
carvers0 bigint,
carvers1 bigint,
arctype boolean,
icont boolean,
email boolean,
emailattach boolean,
etype boolean,
hofamilyid bigint,
indstate integer NOT NULL DEFAULT 0,
logicalsize bigint,
addescription character varying COLLATE pg_catalog."default",
ouid uuid DEFAULT uuid_generate_v1(),
hperror boolean,
pdescrip character varying COLLATE pg_catalog."default",
CONSTRAINT pk_table1 PRIMARY KEY (ID),
CONSTRAINT omp_o_omp_e FOREIGN KEY (eid)
REFERENCES schema1.table2 (eid) MATCH SIMPLE
ON UPDATE NO ACTION
ON DELETE CASCADE
)
```WITH (```
``` FILLFACTOR = 30,```
``` autovacuum_analyze_scale_factor = 0,```
``` autovacuum_analyze_threshold = 10000,```
``` autovacuum_vacuum_scale_factor = 0,```
``` autovacuum_vacuum_threshold = 10000```
```)```
```TABLESPACE schema1_ts;```
ALTER TABLE IF EXISTS schema1.table1
OWNER to schema1;
```ALTER TABLE IF EXISTS schema1.table1```
``` ALTER COLUMN fcategory SET STATISTICS 10000;```