From be44558886f46ca166930a9acd39c5ba2c089ea4 Mon Sep 17 00:00:00 2001 From: John Kristensen Date: Fri, 17 Mar 2017 10:53:32 +1100 Subject: [PATCH] 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. --- scripts/synapse_port_db | 4 +--- 1 file changed, 1 insertion(+), 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", )