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.

Error when trying to connect to redshift db

See original GitHub issue

After installing pgcli using brew, I get the following error when I try to connect to a redshift DB:

Traceback (most recent call last):
  File "/usr/local/Cellar/pgcli/0.17.0/libexec/bin/pgcli", line 9, in <module>
    load_entry_point('pgcli==0.17.0', 'console_scripts', 'pgcli')()
  File "/usr/local/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/Cellar/pgcli/0.17.0/libexec/lib/python2.7/site-packages/pgcli/main.py", line 416, in cli
    pgcli.run_cli()
  File "/usr/local/Cellar/pgcli/0.17.0/libexec/lib/python2.7/site-packages/pgcli/main.py", line 197, in run_cli
    self.refresh_completions()
  File "/usr/local/Cellar/pgcli/0.17.0/libexec/lib/python2.7/site-packages/pgcli/main.py", line 351, in refresh_completions
    completer.set_search_path(pgexecute.search_path())
  File "/usr/local/Cellar/pgcli/0.17.0/libexec/lib/python2.7/site-packages/pgcli/pgexecute.py", line 244, in search_path
    cur.execute(self.search_path_query)
psycopg2.ProgrammingError: function unnest(name[]) does not exist
HINT:  No function matches the given name and argument types. You may need to add explicit type casts.

Any idea what might be causing this?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:5 (2 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
dannyeuucommented, Mar 4, 2016

@amjith There are something to do with redshift? support or a new CLI for that? RedShift is being each time more usefull, we migrate some PG do RedShift here in my enviroment.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Amazon Redshift connection errors
Invalid operation connection error · 1. Open the Amazon Redshift console. · 2. Choose the Config tab. · 3. Modify the parameter group...
Read more >
can't connect to redshift database - Stack Overflow
I'm trying to connect to Redshift database from SQL Workbench/J using Postgre JDBC drivers but I can't get through. I get this error...
Read more >
Troubleshooting Amazon Redshift connection problems
Troubleshooting · Step 1. Test the connection · Step 2. Check for VPC peering or DNS error · Step 3. Check the VPC...
Read more >
Amazon Redshift Connection Error - How to Troubleshoot the ...
This indicates a permissions issue with accessing the Amazon Redshift cluster. To resolve this, we do the following: For cluster in an Amazon ......
Read more >
Amazon Redshift Connection Error - using Connect In-DB tool
SQLDriverConnect: [Amazon] [Amazon Redshift] (10) Error occured while trying to connect: [SQLState 08S01] could not connect to server: ...
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