Description of changes: Allow superuser to ALTER OWNER of datatype functions. Needed to unblock pg_dump/pg_restore of custom datatypes. pg_restore won't succeed for non-superuser roles regardless since create extension pg_tle requires superuser.
A fix for 002_pg_tle_dump_restore.pl is included. With the updated test, the original code fails as expected.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue #, if available: https://github.com/aws/pg_tle/issues/249
Description of changes: Allow superuser to ALTER OWNER of datatype functions. Needed to unblock pg_dump/pg_restore of custom datatypes. pg_restore won't succeed for non-superuser roles regardless since create extension pg_tle requires superuser.
A fix for 002_pg_tle_dump_restore.pl is included. With the updated test, the original code fails as expected.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.