Saya tidak tahu di mana Anda menemukan sintaks itu, jelas tidak di manual . Seperti yang Anda lihat di sana
partisi dibuat menggunakan create table .. as partition of
di Postgres:
Tentukan tabelnya:
CREATE TABLE countrymeasurements
(
countrycode int NOT NULL,
countryname character varying(30) NOT NULL,
languagename character varying (30) NOT NULL,
daysofoperation character varying(30) NOT NULL,
salesparts bigint,
replaceparts bigint
)
PARTITION BY LIST(countrycode);
Tentukan partisi:
create table india
partition of countrymeasurements
for values in (1);
create table japan
partition of countrymeasurements
for values in (2);
create table china
partition of countrymeasurements
for values in (3);
create table malaysia
partition of countrymeasurements
for values in (4);