Select Page

ERROR: permission denied for sequence

ProblemPHP Warning:  pg_query(): Query failed: ERROR:  permission denied for sequencename in PostgreSql


To fix this problem, change the owner to the role that needs to access this sequence

ALTER TABLE sequencename OWNER TO rolename;

Change sequencename to your sequence name and rolename to the owner

Last Updated On April 07, 2018

Leave a reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.