From 3aeb6a720c8843f72b0d15c270c151b7bcf1aa55 Mon Sep 17 00:00:00 2001 From: Darik Gamble Date: Thu, 9 Apr 2015 12:38:07 -0400 Subject: [PATCH] search_path query returns implicit schemas (e.g. pg_catalog) --- pgcli/pgexecute.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py index 4c246bb5..7e1007ce 100644 --- a/pgcli/pgexecute.py +++ b/pgcli/pgexecute.py @@ -66,8 +66,10 @@ def register_hstore_typecaster(conn): class PGExecute(object): + # The boolean argument to the current_schemas function indicates whether + # implicit schemas, e.g. pg_catalog search_path_query = ''' - SELECT * FROM unnest(current_schemas(false))''' + SELECT * FROM unnest(current_schemas(true))''' schemata_query = ''' SELECT nspname