ALTER TABLE, CREATE INDEX and CREATE OR REPLACE FUNCTION all require table/function ownership in PostgreSQL. Replace IF NOT EXISTS DDL with explicit existence checks so db_init works for unprivileged application users where the schema was created by a different role (e.g. postgres). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
38 KiB
38 KiB