pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

Backslash commands won't work when [F5] Explain is enabled

Open Woynert opened this issue 2 years ago • 0 comments

Description

All backslash commands such as \? \i stop working when [F5] Explain is enabled.

It outputs the following error:

syntax error at or near "\"
LINE 1: EXPLAIN (ANALYZE, COSTS, VERBOSE, BUFFERS, FORMAT JSON) \?

Screencast

Notice it starts to work normaly once Explain is disabled. It seems it's passing the raw command without interpreting it.

https://user-images.githubusercontent.com/61242172/198751119-44d21a27-e5a6-4ca1-a7a8-d3e8e29a9729.mp4

Your environment

  • [x] Please provide your OS and version information.
OS:        Void Linux
KERNEL:    Linux 5.15.12_1 x86_64 GNU/Linux
  • [x] Please provide your CLI version.
Version: 3.5.0
  • [x] What is the output of pip freeze command.
~$ pip freeze
aiofiles @ file:///builddir/aiofiles-0.8.0/aiofiles-0.8.0-py3-none-any.whl
aiohttp==3.7.4
aiohttp-cors==0.7.0
appdirs==1.4.4
arandr==0.1.10
argcomplete==2.0.0
argon2-cffi==19.2.0
asttokens==2.0.8
async-generator==1.10
async-timeout==3.0.1
attrs==21.2.0
Automat==20.2.0
backcall==0.2.0
beautifulsoup4==4.11.1
bleach==4.1.0
certifi==2021.10.8
cffi==1.15.1
chardet==4.0.0
charset-normalizer==2.1.0
cli-helpers==2.2.1
click==8.1.3
colorama==0.4.4
configobj==5.0.6
constantly==15.1.0
cryptography==37.0.4
dbus-python==1.2.18
decorator==5.1.1
defusedxml==0.6.0
deluge==2.0.5
distro==1.7.0
entrypoints==0.3
evdev==1.2.0
executing==1.1.1
fastjsonschema==2.15.3
gns3-gui==2.2.33.1
gns3-net-converter==1.3.0
gns3-server==2.2.33.1
hyperlink==21.0.0
idna==3.2
incremental==21.3.0
ipykernel==5.5.4
ipython==8.5.0
ipython_genutils==0.2.0
ipywidgets==7.6.3
jedi==0.18.0
Jinja2==3.0.3
jsonschema @ file:///builddir/jsonschema-4.9.1/jsonschema-4.9.1-py3-none-any.whl
jupyter-client==6.1.12
jupyter-console==6.4.0
jupyter-core==4.7.1
jupyterlab-pygments==0.1.2
LibAppArmor==3.0.3
libvirt-python==8.6.0
lxml==4.8.0
Mako==1.1.3
Markdown==3.3.4
MarkupSafe==2.1.1
matplotlib-inline==0.1.6
menulibre==2.2.1
meson==0.62.2
mistune==0.8.4
multidict==5.1.0
mycli==1.24.3
nbclient==0.5.10
nbconvert==6.4.5
nbformat==5.3.0
nest-asyncio==1.5.4
notebook==6.4.10
numpy==1.23.2
packaging==21.3
pandocfilters==1.4.3
parso==0.8.3
patool==1.12
pendulum @ file:///builddir/pendulum-2.1.2/pendulum-2.1.2-cp310-cp310-manylinux_2_32_x86_64.whl
persepolis==3.2.0
pexpect==4.8.0
pgcli==3.5.0
pgspecial==2.0.1
pickleshare==0.7.5
Pillow==9.2.0
ply==3.11
prometheus-client==0.14.1
prompt-toolkit==3.0.30
psutil==5.9.1
psycopg==3.1.3
psycopg2==2.9.3
ptyprocess==0.7.0
pulsectl==22.1.3
pure-eval==0.2.2
py-cpuinfo==8.0.0
pyaes==1.6.1
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycairo==1.20.1
pycparser==2.20
pyfiglet==0.8.post0
Pygments==2.13.0
PyGObject==3.42.0
pyliblo==0.10.0
PyMySQL==1.0.2
pyOpenSSL==22.0.0
pyparsing==2.4.7
pyperclip==1.8.2
PyQt5==5.15.7
PyQt5-sip==12.11.0
pyrsistent==0.18.1
PySocks==1.7.1
python-dateutil==2.8.2
python-magic==0.4.25
pytzdata @ file:///builddir/pytzdata-2020.1/pytzdata-2020.1-py2.py3-none-any.whl
pyxdg==0.28
PyYAML==6.0
pyzmq==24.0.1
ranger-fm==1.9.3
regex==2022.6.2
rencode==1.0.6
requests==2.28.1
requests-futures==1.0.0
scour==0.38.2
Send2Trash==1.8.0
service-identity==18.1.0
setproctitle==1.2.1
six==1.16.0
soupsieve==1.9.5
sqlparse==0.3.0
stack-data==0.5.1
stem==1.8.0
tabulate==0.8.10
termdown==1.17.0
terminado==0.9.4
testpath==0.4.4
tornado==6.1
torrequest==0.1.0
traitlets==5.0.5
trash-cli==0.22.4.16
Twisted==22.1.0
typing_extensions @ file:///builddir/typing_extensions-4.2.0/typing_extensions-4.2.0-py3-none-any.whl
urllib3==1.26.7
volctl==0.9.2
wcwidth==0.2.5
webencodings==0.5.1
widgetsnbextension==3.5.1
yarl==1.6.3
youtube-dl==2021.12.17
zope.interface==5.4.0

Woynert avatar Oct 28 '22 23:10 Woynert