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.

Can't connect to Greenplum server (psycopg2.ProgrammingError: column d.datcollate does not exist)

See original GitHub issue

So, after getting past the jedi issue, I got pgcli to work on a local PostgreSQL instance. I’m now trying to connect to a Greenplum database (a distributed database built on top of PostgreSQL. Anything that can talk to vanilla Postgres should be able to talk to Greenplum…I’ve had no issues with, eg, pgAdmin or psycopg2). Here’s what happens:

$ pgcli postgresql://[username]:[password]@[host]/[dbname]
Traceback (most recent call last):
  File "/usr/local/bin/pgcli", line 9, in <module>
    load_entry_point('pgcli==0.10.0', 'console_scripts', 'pgcli')()
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/pgcli/main.py", line 86, in cli
    refresh_completions(pgexecute, completer)
  File "/usr/local/lib/python2.7/site-packages/pgcli/main.py", line 180, in refresh_completions
    completer.extend_database_names(pgexecute.databases())
  File "/usr/local/lib/python2.7/site-packages/pgcli/pgexecute.py", line 138, in databases
    cur.execute(self.databases_query)
psycopg2.ProgrammingError: column d.datcollate does not exist
LINE 4:        d.datcollate as "Collate",

Googling seems to turn up nothing.

Thanks again for your time.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
amjithcommented, Jun 29, 2016

This is now available in v1.0. Please upgrade.

pip install -U pgcli
0reactions
rakeshsinghcommented, Jan 22, 2016

+1 Using pgcli with Redshift, and getting the same error

Read more comments on GitHub >

github_iconTop Results From Across the Web

psycopg2.ProgrammingError: column "your name" does not exist
to the PostgreSQL Database in Python I get this error: psycopg2.ProgrammingError: column "your name" does not exist , where 'your name' is the ......
Read more >
psql | Pivotal Greenplum Docs
If the connection could not be made for any reason (insufficient privileges, server is not running, etc.), psql will return an error and...
Read more >
postgresql error ... <class 'psycopg2.ProgrammingError ...
Hi, I'm getting the following error in my local installation with postgresql when using auth.define_tables(migrate=True): <class 'psycopg2.
Read more >
Greenplum 6 - Changes - Amazon S3
Ability to define a COLLATE clause to a column (if collatable data type). ○ If not specified, the column data type's default collation...
Read more >
ProgrammingError: column res_users.login_date does not exist
Hello I did upgrade from OpenERP Server 6.1-20121104-003211 to OpenERP Server 7.0-20131119-002500. No errors during this process.However I can not login to ...
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