how to change owner of a table in psql code example Example: postgres alter table owner ALTER TABLE <tablename> OWNER TO <username>