Skip to content

Update dependency pg to v1.7.0 - #14

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pg-1.x-lockfile
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/pg-1.x-lockfile

Conversation

@renovate

@renovate renovate Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
pg (changelog) 1.6.3 → 1.7.0 age confidence

Release Notes

ged/ruby-pg (pg)

v1.7.0

Compare Source

Added:

  • Add PG::Connection#embed_params and keyword :typename for its parameter casting. #​726
    This allows to generate SQL strings with embedded parameters for easier debugging.
  • Add PG::Connection#full_protocol_version which is new in PostgreSQL-18 #​695
  • Add PG::Result#each_tuple #​675
  • Add PG::TypeMap#query_param_encoders to retrieve encoders. #​726
  • Deduplicate result field name strings for better performance. #​750

Removed:

  • Remove compatibility to ruby < 3.1 and drops support of ruby-2.7 and ruby-3.0. #​749
  • Remove GLV unlocking at all functions which process data modifiable in a second thread. #​721
    This avoids possible premature garbage collection of query parameters and possible VM crash due to concurrent data manipulation.
  • Remove :static_symbol result field names. #​691
  • Remove enforced rpath addition when no rpath is configured in rbconfig. #​699

Fixes:

  • Limit memory allocation on invalid input into PG::BinaryDecoder::Array. #​743
  • Free COPY buffers when decoders raise to avoid possible memory leak in get_copy_data. #​742
  • Prevent SQL injection in set_client_encoding. #​741
  • Add GC_GUARD to temporary ruby objects for conninfo string to avoid it's GC'ed prematurely. #​739
  • Remove option "quirks_mode" from JSON en/decoder to fix compat with json-3.0 gem. #​737
  • Respect calendar type of Ruby and PostgreSQL. #​725
  • Fix broken set_notice_(receiver|processor) callback after GC.compact. #​734
  • Disable DNS resolution in ruby when a service file is used, so that the priority of parameters is equal to libpq. #​635
  • Use RARRAY_LENINT to avoid possible overflow. #​728
  • Fix possible integer overflow at PG::BinaryEncoder::CopyRow and PG::TextEncoder::CopyRow. #​714, #​715
  • Avoid possible integer overflow in query parameter encoding. #​719
  • Ensure conninfo is a valid C string before closing the connection to avoid a double free of PGconn. #​709
  • Raise on a too large input string to PG::TextEncoder::Bytea. #​717
  • Check PG::BinaryEncoder::CopyRow array input size instead of producing an invalid output.
  • Remove accidentally copied "static" keyword from Copy and Record encoder. #​711
  • Avoid possibility to replace typemap while being used in Copy and Record encoders and decoders. #​707
  • Add GC_GUARD's for encoding converted strings sent to the server. #​705
  • Fix incomplete transaction commit when thread is shutdown ungracefully. #​704
  • Assign VALUE after registration per rb_gc_register_address() #​703
  • Update dependencies for binary gems to PostgreSQL-18.6, OpenSSL-3.6.5, krb5-1.22.2 #​752

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants