mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
In pg_upgrade, limit schema name filter to include toast tables. Bug
introduced recently when trying to filter out temp tables. Backpatch to 9.0 and 9.1.
This commit is contained in:
@ -328,9 +328,11 @@ get_rel_infos(migratorContext *ctx, const DbInfo *dbinfo,
|
||||
" ON c.reltablespace = t.oid "
|
||||
"WHERE (( "
|
||||
/* exclude pg_catalog and pg_temp_ (could be orphaned tables) */
|
||||
" n.nspname !~ '^pg_' "
|
||||
" AND n.nspname != 'information_schema' "
|
||||
" AND c.oid >= %u "
|
||||
" n.nspname != 'pg_catalog' "
|
||||
" AND n.nspname !~ '^pg_temp_' "
|
||||
" AND n.nspname !~ '^pg_toast_temp_' "
|
||||
" AND n.nspname != 'information_schema' "
|
||||
" AND c.oid >= %u "
|
||||
" ) OR ( "
|
||||
" n.nspname = 'pg_catalog' "
|
||||
" AND relname IN "
|
||||
|
Reference in New Issue
Block a user