The extension was created by user deploy
with:
CREATE EXTENSION ltree;
now I need to move extension to another schema (still as a deploy
user, schema utils
is owned by deploy
user too). So I do:
ALTER EXTENSION ltree SET SCHEMA utils;
which fails with:
ERROR: must be owner of extension ltree
So 2 questions:
- Why does PG allow creating the extension for
deploy
user but not altering it by the same user? - How can I change the schema of the extension still being the
deploy
user?
Thanks.