Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…ixes #37.
  • Loading branch information...
commit 77039dad7fcdcb36f4812a317e2d5753423ed40e 1 parent 06525e0
@jmafc jmafc authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 pyrseas/dbobject/
5 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):
Please sign in to comment.
Something went wrong with that request. Please try again.