Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update psycopg to 3.2.0 #5179

Closed
wants to merge 3 commits into from
Closed

Conversation

pyup-bot
Copy link
Collaborator

This PR updates psycopg[c] from 3.1.19 to 3.2.0.

Changelog

3.2

^^^^^^^^^^^

- Add support for integer, floating point, boolean `NumPy scalar types`__
(:ticket:`332`).
- Add `!timeout` and `!stop_after` parameters to `Connection.notifies()`
(:ticket:`340`).
- Allow dumpers to return `!None`, to be converted to NULL (:ticket:`377`).
- Add :ref:`raw-query-cursors` to execute queries using placeholders in
PostgreSQL format (`$1`, `$2`...) (:tickets:`560, 839`).
- Add `psycopg.capabilities` object to :ref:`inspect the libpq capabilities
<capabilities>` (:ticket:`772`).
- Add `~rows.scalar_row` to return scalar values from a query (:ticket:`723`).
- Prepared statements are now :ref:`compatible with PgBouncer <pgbouncer>`.
(:ticket:`589`).
- Add `~Connection.set_autocommit()` on sync connections, and similar
transaction control methods available on the async connections.
- Add support for libpq functions to close prepared statements and portals
introduced in libpq v17 (:ticket:`603`).
- Add support for libpq encrypted and non-blocking query cancellation
functions introduced in libpq v17 (:ticket:`754`).
- The `!context` parameter of `sql` objects `~sql.Composable.as_string()` and
`~sql.Composable.as_bytes()` methods is now optional (:ticket:`716`).
- Disable receiving more than one result on the same cursor in pipeline mode,
to iterate through `~Cursor.nextset()`. The behaviour was different than
in non-pipeline mode and not totally reliable (:ticket:`604`).
The `Cursor` now only preserves the results set of the last
`~Cursor.execute()`, consistently with non-pipeline mode.
- Add `~Connection.cancel_safe()` for encrypted and non-blocking cancellation
If possible, use such method internally upon `KeyboardInterrupt` and `Copy`
termination (:ticket:`754`).
- Add support for libpq function to retrieve results in chunks introduced in
libpq v17 (:ticket:`793`).
- Add a `size` parameter to `~Cursor.stream()` to enable results retrieval by
chunks instead of row-by-row (:ticket:`794`).
- Add support for libpq function to change role passwords introduced in
libpq v17 (:ticket:`818`).

.. __: https://numpy.org/doc/stable/reference/arrays.scalars.html#built-in-scalar-types

3.1.20

^^^^^^^^^^^^^^

- Use the simple query protocol to execute COMMIT/ROLLBACK when possible.
This should make querying the PgBouncer admin database easier
(:ticket:`820`).
- Avoid unneeded escaping checks and memory over-allocation in text copy
(:ticket:`829`).
- Bundle binary package with OpenSSL 3.3.x (:ticket:`847`).
Links

@pyup-bot
Copy link
Collaborator Author

pyup-bot commented Jul 1, 2024

Closing this in favor of #5180

@pyup-bot pyup-bot closed this Jul 1, 2024
@pydanny pydanny deleted the pyup-update-psycopg-3.1.19-to-3.2.0 branch July 1, 2024 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant