table_name; echo "Altering table $table_name\n"; pg_query("ALTER TABLE $table_name OWNER TO $new_owner") ; }