Getting started with Psycopg 3#
This section of the documentation will explain how to install Psycopg and how to perform normal activities such as querying the database or loading data using COPY.
Important
If you are familiar with psycopg2 please take a look at Differences from psycopg2 to see what is changed.
- Installation
- Basic module usage
- Passing parameters to SQL queries
- Adapting basic Python types
- Adapting other PostgreSQL types
- Transactions management
- Using COPY TO and COPY FROM
- Differences from
psycopg2
- Server-side binding
- Extended query Protocol
- Multiple statements in the same query
- Multiple results returned from multiple statements
- Different cast rules
- You cannot use
IN %s
with a tuple - You cannot use
IS %s
- Cursors subclasses
- Different adaptation system
- Copy is no longer file-based
with
connectioncallproc()
is goneclient_encoding
is gone- Transaction characteristics attributes don’t affect autocommit sessions
- No default infinity dates handling
- What’s new in Psycopg 3