Hello,
I want to create a primary key using an existing unique index. I have already created the index concurrently and I have already validated a not null constraint on the same column.
"If PRIMARY KEY is specified, and the index's columns are not already marked NOT NULL, then this command will attempt to do ALTER COLUMN SET NOT NULL against each such column. That requires a full table scan to verify the column(s) contain no nulls. In all other cases, this is a fast operation."
Best regards
--
Marco Piovan