Support for Alter table only add primary key constraint - pg_restore to YSQL DB. #3812
Labels
area/ysql
Yugabyte SQL (YSQL)
community/request
Issues created by external users
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Jira Link: DB-2164
Hello, I am trying to migrate the Postgres database to YSQL DB. Created dump of postgres db using pg_dump and trying to restore in YSQL DB using pg_restore.
pg_dump creates the create table script without any constraints, add the constraints using Alter table scripts. But in YSQL DB 'ALTER TABLE ONLY ADD CONSTRAINT PRIMARY KEY' is not yet supported.
pg_restore: error: could not execute query: ERROR: This ALTER TABLE command is not yet supported.
Command was: ALTER TABLE ONLY
ADD CONSTRAINT PRIMARY KEY (field);
The text was updated successfully, but these errors were encountered: