mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
In pg_upgrade, avoid dumping orphaned temporary tables. This makes the
pg_upgrade schema matching pattern match pg_dump/pg_dumpall. Fix for 9.0, 9.1, and 9.2.
This commit is contained in:
@ -326,7 +326,10 @@ get_rel_infos(migratorContext *ctx, const DbInfo *dbinfo,
|
||||
" ON c.relnamespace = n.oid "
|
||||
" LEFT OUTER JOIN pg_catalog.pg_tablespace t "
|
||||
" ON c.reltablespace = t.oid "
|
||||
"WHERE (( n.nspname NOT IN ('pg_catalog', 'information_schema') "
|
||||
"WHERE (( "
|
||||
/* exclude pg_catalog and pg_temp_ (could be orphaned tables) */
|
||||
" n.nspname !~ '^pg_' "
|
||||
" AND n.nspname != 'information_schema' "
|
||||
" AND c.oid >= %u "
|
||||
" ) OR ( "
|
||||
" n.nspname = 'pg_catalog' "
|
||||
|
Reference in New Issue
Block a user