I'm trying to add an ID to the table
ALTER TABLE public.priz02
ADD COLUMN id SERIAL NOT NULL PRIMARY KEY;
but I get an error
sequence must have same owner as table it is linked to
Current user is postgres;
I'm trying to add an ID to the table
ALTER TABLE public.priz02
ADD COLUMN id SERIAL NOT NULL PRIMARY KEY;
but I get an error
sequence must have same owner as table it is linked to
Current user is postgres;
Copyright © 2021 Jogjafile Inc.
To fix this error, you should make sure that table and sequence owner is same before adding id column. Try this updated code;
Hope it works :)