summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Kristensen <john.kristensen@dpipwe.tas.gov.au>2017-03-17 10:53:32 +1100
committerJohn Kristensen <john.kristensen@dpipwe.tas.gov.au>2017-03-17 10:53:32 +1100
commitbe44558886f46ca166930a9acd39c5ba2c089ea4 (patch)
treef15f46d6dc770cf058549d579a8ce02cb007f633
parentMerge pull request #2022 from matrix-org/erikj/no_op_sync (diff)
downloadsynapse-be44558886f46ca166930a9acd39c5ba2c089ea4.tar.xz
Don't assume postgres tables are in the public schema during db port
When fetching the list of tables from the postgres database during the
db port, it is assumed that the tables are in the public schema. This is
not always the case, so lets just rely on postgres to determine the
default schema to use.
-rwxr-xr-xscripts/synapse_port_db4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/synapse_port_db b/scripts/synapse_port_db
index ea367a1281..2e5d666707 100755
--- a/scripts/synapse_port_db
+++ b/scripts/synapse_port_db
@@ -447,9 +447,7 @@ class Porter(object):
 
             postgres_tables = yield self.postgres_store._simple_select_onecol(
                 table="information_schema.tables",
-                keyvalues={
-                    "table_schema": "public",
-                },
+                keyvalues={},
                 retcol="distinct table_name",
             )