summaryrefslogtreecommitdiffstats
path: root/pgcli
diff options
context:
space:
mode:
Diffstat (limited to 'pgcli')
-rw-r--r--pgcli/main.py3
-rw-r--r--pgcli/packages/pgliterals/pgliterals.json2
-rw-r--r--pgcli/pgcompleter.py8
3 files changed, 8 insertions, 5 deletions
diff --git a/pgcli/main.py b/pgcli/main.py
index ecf041bb..2202c1a7 100644
--- a/pgcli/main.py
+++ b/pgcli/main.py
@@ -1248,7 +1248,8 @@ def cli(
else:
print("Config file is now located at", config_full_path)
print(
- "Please move the existing config file ~/.pgclirc to", config_full_path,
+ "Please move the existing config file ~/.pgclirc to",
+ config_full_path,
)
if list_dsn:
try:
diff --git a/pgcli/packages/pgliterals/pgliterals.json b/pgcli/packages/pgliterals/pgliterals.json
index 5c292e6d..df00817a 100644
--- a/pgcli/packages/pgliterals/pgliterals.json
+++ b/pgcli/packages/pgliterals/pgliterals.json
@@ -327,8 +327,6 @@
"FIRST_VALUE",
"FLOOR",
"FORMAT",
- "GENERATE_SERIES",
- "GENERATE_SUBSCRIPTS",
"GET_BIT",
"GET_BYTE",
"HEIGHT",
diff --git a/pgcli/pgcompleter.py b/pgcli/pgcompleter.py
index 79be274e..227e25c6 100644
--- a/pgcli/pgcompleter.py
+++ b/pgcli/pgcompleter.py
@@ -140,7 +140,7 @@ class PGCompleter(Completer):
return "'{}'".format(self.unescape_name(name))
def unescape_name(self, name):
- """ Unquote a string."""
+ """Unquote a string."""
if name and name[0] == '"' and name[-1] == '"':
name = name[1:-1]
@@ -703,7 +703,11 @@ class PGCompleter(Completer):
not f.is_aggregate
and not f.is_window
and not f.is_extension
- and (f.is_public or f.schema_name == suggestion.schema)
+ and (
+ f.is_public
+ or f.schema_name in self.search_path
+ or f.schema_name == suggestion.schema
+ )
)
else: