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