Browse files

Exclude pg_temp_nnn/pg_toast_temp_nnn schemas, not just xxx_temp_1. F…

…ixes #37.
  • Loading branch information...
1 parent 06525e0 commit 77039dad7fcdcb36f4812a317e2d5753423ed40e @jmafc jmafc committed Jun 27, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 pyrseas/dbobject/
@@ -71,8 +71,9 @@ class SchemaDict(DbObjectDict):
"""SELECT nspname AS name,
obj_description(n.oid, 'pg_namespace') AS description
FROM pg_namespace n
- WHERE nspname NOT IN ('information_schema',
- 'pg_temp_1', 'pg_toast', 'pg_toast_temp_1')
+ WHERE nspname NOT IN ('information_schema', 'pg_toast')
+ AND nspname NOT LIKE 'pg_temp\_%'
+ AND nspname NOT LIKE 'pg_toast_temp\_%'
ORDER BY nspname"""
def from_map(self, inmap, newdb):

0 comments on commit 77039da

Please sign in to comment.