Skip to content

Documentation should suggest psycopg3, not psycopg2 anymore #1062

@ratijas

Description

@ratijas

What happens?

Documentation about PostgreSQL integration suggests using psycopg2, which is an outdated version of the project.

It recommends installing psycopg2-binary and "pgspecial<2" together, but that just won't work, because

  • "pgspecial<2" depends on psycopg2, and
  • psycopg2-binary does not "provide" psycopg2 in terms of a package management, and
  • installing psycopg2 from source requires some config in $PATH and possibly other weirdness.

It also states: "JupySQL supports the following connectors.", but that's a link to an outdated version of sqlalchemy 1.4, while the relevant and actually installed/used one is 2.0.x! The new link would be https://docs.sqlalchemy.org/en/20/dialects/postgresql.html which lists "psycopg (a.k.a. psycopg 3)" amongst the options.

According to the devs of pgspecial, the answer to all those issue at once would be to just use psycopg 3 instead or 2.

To Reproduce

Follow the docs for PostgreSQL integration.

OS:

Linux

JupySQL Version:

0.11.1

Full Name:

Ivan Tkachenko

Affiliation:

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions