Postgres table owner change script

Postgres can be a pain sometimes with regards to table ownership. Sometimes you need to change the owner of all tables, however posgres does not allow you to do this. I've faced this a couple of times so thought it was time to write a script to do the work for me.

This is a small php script that will change the owner of all tables in a database.

AttachmentSize
pg_table_owner.php_.txt660 bytes