Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
    Fernando Lucio Canizo
    Hi all, I still haven't solved my problem with pgcli not running in Ubuntu 18.04 from August (!)
    Today I decided to check on a new machine... I thought: maybe my python installation is screwed on the machines I tested because the dist-upgrade
    So I launched a new VM an noticed pgcli is not even listed on 18.04
    Fernando Lucio Canizo
    Forget what I just wrote: I was missing an update on the new machine, everything works perfect. So my problem on the dist-upgraded machine could be fixed by deploying a new one
    Frank Sheiness
    where does one set a default search_path ?
    Thank you for pgcli
    Nice extention

    @fernandocanizo try 1)pip install --upgrade requests

    2)pip install psycopg2-binary

    3) pip install pgcli --no-binary :all: psycopg2


    Hi Team,

    I am new to pgcli project, just setup my DEV environment on Linux Mint 19 Tara today, when I run py.test, I'm getting same error mentioned by @gma2th


    hi all, just wanna share my setup :

    • set multiline
    • set vi as keybindings
    • use pspg as default pager

    [entering heaven]

    Unmesh K
    Hi - I am new to pgcli. I'm getting errors when trying to install it. Does pgcli work with Python 3 on Windows?
    Error I see on >pip install pgcli:Failed building wheel for setproctitle
    Running setup.py clean for setproctitle
    Failed to build setproctitle
    jupyter-console 5.2.0 has requirement prompt-toolkit<2.0.0,>=1.0.0, but you'll have prompt-toolkit 2.0.7 which is incompatible.
    ipython 6.5.0 has requirement prompt-toolkit<2.0.0,>=1.0.15, but you'll have prompt-toolkit 2.0.7 which is incompatible.
    Adi Nemer
    quick question
    do i have to install postgre to use the cli or can i use it to access remote postgre servers
    Matheus Rosa
    Hello @adinemer
    You don’t need to have PostgreSQL database installed. You can access remote databases. Here is our documentation page:
    Hey guys. I got module 'keyring.errors' has no attribute 'KeyringLocked when running pgcli -D xxx. Any advice?
    hi i have 1 question, can i do some query or something to get CREATE STATMENT for that table, i think i saw it can be done with pg_dump but am asking can i do it while in pgcli
    Hey all. What's the keyboard shortcut to accept the line suggestion with autocomplete?
    Hey there
    question: How can I make pip3 install pgcli use psycopg2-binary instead of building it from source?
    Adam Hopkins
    Anyone seen PQconninfo not available in libpq < 9.3 after installing and trying to sign in?
    I am trying on an installation of Postgres 9.4
    I have been able to login fine from a different machine
    Roger Pack
    As a note the link to the google group https://groups.google.com/forum/#!forum/pgcli says "This group either doesn't exist, or you don't have permission to access it. If you're sure this group exists, contact the Owner of the group and ask them to give you access." cheers!
    Ben Williamson
    Is there a way to download pgcli as a dependency to a project and use the cli to run sql scripts on it?
    Amjith Ramanujam
    @ben-williamson-1999 That seems possible. What project are you thinking about embedding pgcli into?
    Ben Williamson
    @amjith I have an existing application which talks to an oracle database using SQLcl (among other things) and was exploring other products which could talk to the new postgresql database. The current solution executes the sqlcl.jar in the code and this needs to be substituted with pgcli. Was wondering if this was possible with the way pgcli is created.
    I'm a bit confused, the gallery shows every theme in dark/light mode but I can't find where to switch light/dark modes
    https://pastebin.com/KMhdnVu3 trying to fix this issue on Arch. No success so far. Would It be possible to fix that permanently?
    keyring.errors.KeyringLocked: Failed to unlock the collection!
    Running Seahorse brought no solution. I use no DM, just startx/i3wm
    solved the issue. pgcli config. not sure why keyring is default. well.. pgcli rocks!
    Martin Seidl
    pgcli posgresql://spk:sk@db.foo.de:5432/dbwhatev
    I've been using pgcli for years(?)
    and I recently did a fresh install of my system and re-installed pgcli, but now when I use the same connection string that was in my history sijnce forever, i get a psycopg2.ProgrammingError: invalid dsn: missing "=" after
    and the connection string
    it works with passing them separately like -p -w -u and so on
    Martin Seidl
    but for some reason with that, while it does connect, I have to re-enter the password
    Alexander Artemenko

    Guys, does pgcli have an option to not rollback current transaction?

    In psql this can be done by setting this option:

    \set ON_ERROR_ROLLBACK interactive
    Christopher Harrington

    As a note the link to the google group https://groups.google.com/forum/#!forum/pgcli says "This group either doesn't exist, or you don't have permission to access it. If you're sure this group exists, contact the Owner of the group and ask them to give you access." cheers!

    Echoing this; that group is either invite-only or dead


    Hi everyone !
    I have a little problem with pgcli, currently when I log with psql on PostgreSQL, he ask my password, logic, but when I do the same thing with pgcli, he logs me directly without any password, but, it's a problem because it's the same with "postgres" role.

    So anyone who go on my pc if i'm away can do some shit >.<

    Thank you in advance for your help !

    'NoneType' object has no attribute 'encoding'
    can not login
    Daniel Beecham
    I'm encountering this error: keyring.errors.KeyringLocked: Failed to unlock the collection!, has anyone seen this before?
    Daniel Beecham
    For some reason, I entered keyring = False in .config/pgcli/config (in the [main] section), started - it works, and when I remove the line again, it still works. Don't know what was wrong. Can't find anything resonable wrong from a strace. Oh well.