question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Column p.proisagg does not exist

See original GitHub issue

Description

So after getting a fresh installation of a PostgreSQL server and login into with pgcli I get the following error:

➜ pgcli -h localhost -p 5432 -U postgres -W postgres -d postgres
Password: 
Exception in thread completion_refresh:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/share/pgcli/pgcli/completion_refresher.py", line 58, in _bg_refresh
    refresher(completer, executor)
  File "/usr/share/pgcli/pgcli/completion_refresher.py", line 100, in refresh_functions
    completer.extend_functions(executor.functions())
  File "/usr/share/pgcli/pgcli/pgcompleter.py", line 133, in extend_functions
    for f in func_data:
  File "/usr/share/pgcli/pgcli/pgexecute.py", line 384, in functions
    cur.execute(self.functions_query)
psycopg2.ProgrammingError: column p.proisagg does not exist
LINE 6:                 p.proisagg is_aggregate,
                        ^
HINT:  Perhaps you meant to reference the column "p.prolang".

Nonetheless this error I can keep using pgcli.

Your environment

Ubuntu 16.04.5 LTS

pgcli -v    
Version: 0.20.1
postgres> select version();
+----------------------------------------------------------------------------------------------------------------------------------+
| version                                                                                                                          |
|----------------------------------------------------------------------------------------------------------------------------------|
| PostgreSQL 11.1 (Debian 11.1-1.pgdg90+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516, 64-bit |
+----------------------------------------------------------------------------------------------------------------------------------+

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
j-bennetcommented, Jun 17, 2019

@Abhinickz Try updating: pip install -U pgcli. Your version is 1.9.1 and the fix was added in 2.0.2.

2reactions
aesyonducommented, Jan 19, 2021

@Abhinickz Try updating: pip install -U pgcli. Your version is 1.9.1 and the fix was added in 2.0.2.

Confirming that this works. I am using Ubuntu 18.04 via WSL2, and when I sudo apt install pgcli the version is 1.6. Using sudo apt install python3-pip and pip3 install pgcli the installed version is now 3.1.0.

EDIT: My postgresql version is 11.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PostgreSQL 11 error: column p.proisagg does not exist
prokind (PostgreSQL 11) is a char taking the values 'f', 'p', 'a' or 'w' (see Erwin's answer above). Thus, for every occurence of...
Read more >
ERROR: column p.proisagg does not exist · Issue #537 - GitHub
Seeing a warning/error that I don't see with latest official release 6.0.0. ... ERROR: column p.proisagg does not exist #537.
Read more >
Error: column p.proisagg does not exist in PostgreSQL 11
I've been using navicat version 12 and postgres version 11. Is there any conflict in terms of versioning between the two extension? Some ......
Read more >
column p.proisagg does not exist (3 Solutions!!) - YouTube
Databases: PostgreSQL 11 error: column p. proisagg does not existHelpful? Please support me on Patreon: ...
Read more >
phpPgAdmin / Bugs / #469 column p.proisagg does not exist
ERROR : column p.proisagg does not exist LINE 18: WHERE NOT p.proisagg ^ HINT: Perhaps you meant to reference the column "p.prolang".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found