OWNER TO

Description

Changes the Owner of an existing function.

Click here to navigate to the PostgreSQL documentation page for this syntax.

The Alter function owner must be handled manually

Grammar Syntax

ALTER FUNCTION name [ ( [ [ argmode ] [ argname ] argtype [, ...] ] ) ]
    OWNER TO { new_owner | CURRENT_ROLE | CURRENT_USER | SESSION_USER }

Sample Source Patterns

PostgreSQL

ALTER FUNCTION public.pg_schema_size(text) OWNER TO gpadmin;

Snowflake

-- ** MSC-WARNING - MSC-PG0000 - USER PRIVILEGES MUST BE HANDLED MANUALLY **
--ALTER FUNCTION public.pg_schema_size(text) OWNER TO gpadmin
                                                           ;

Last updated