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

Bump pg from 1.4.6 to 1.5.0 #1538

Closed
wants to merge 2 commits into from
Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 24, 2023

Bumps pg from 1.4.6 to 1.5.0.

Changelog

Sourced from pg's changelog.

v1.5.0 [2023-04-24] Lars Kanis lars@greiz-reinsdorf.de

Enhancements:

  • Better support for binary format:
    • Extend PG::Connection#copy_data to better support binary transfers #511
    • Add binary COPY encoder and decoder:
      • PG::BinaryEncoder::CopyRow
      • PG::BinaryDecoder::CopyRow
    • Add binary timestamp encoders:
      • PG::BinaryEncoder::TimestampUtc
      • PG::BinaryEncoder::TimestampLocal
      • PG::BinaryEncoder::Timestamp
    • Add PG::BinaryEncoder::Float4 and Float8
    • Add binary date type: #515
      • PG::BinaryEncoder::Date
      • PG::BinaryDecoder::Date
    • Add PG::Result#binary_tuples #511 It is useful for COPY and not deprecated in that context.
    • Add PG::TextEncoder::Bytea to BasicTypeRegistry #506
  • Ractor support: #519
    • Pg is now fully compatible with Ractor introduced in Ruby-3.0 and doesn't use any global mutable state.
    • All type en/decoders and type maps are shareable between ractors if they are made frozen by Ractor.make_shareable.
    • Also frozen PG::Result and PG::Tuple objects can be shared.
    • All frozen objects (except PG::Connection) can still be used to do communication with the PostgreSQL server or to read retrieved data.
    • PG::Connection is not shareable and must be created within each Ractor to establish a dedicated connection.
  • Use keyword arguments instead of hashes for Coder initialization and #to_h. #511
  • Add PG::Result.res_status as a class method and extend Result#res_status to return the status of self. #508
  • Reduce the number of files loaded at require 'pg' by using autoload. #513 Previously stdlib libraries date, json, ipaddr and bigdecimal were static dependencies, but now only socket is mandatory.
  • Improve garbage collector performance by adding write barriers to all PG classes. #518 Now they can be promoted to the old generation, which means they only get marked on major GC.
  • New method PG::Connection#check_socket to check the socket state. #521
  • Mark many internal constants as private. #522
  • Update Windows fat binary gem to OpenSSL-3.1.0.

Bugfixes:

  • Move nfields-check of stream-methods after result status check #507 This ensures that the nfield-check doesn't hide errors like statement timeout.

Removed:

  • Remove deprecated PG::BasicTypeRegistry.register_type and co. [Part of #519](ged/ruby-pg@2919ee1)
  • Add deprecation warning about PG::Coder initialization per Hash argument. #514 It is recommended to use keyword arguments instead.
  • The internal encoding cache was removed. #516 It shouldn't have a practical performance impact.

Repository:

... (truncated)

Commits
  • 70460e3 Update History.md
  • 3db190e Update release date for pg-1.15.0
  • 8e859ce Merge branch 'master' of github.com:ged/ruby-pg
  • 68ac787 Merge branch 'check_connection'
  • 0ea7a94 Merge pull request #522 from larskanis/private-const
  • 77cc9e6 Add PG::Connection#check_socket as a way to verify the socket is OK
  • d9e08a0 More privacy for our constants!
  • 2e663b3 Add check_connection to History.md
  • cf1a2e2 Add a recommendation to verify the usability of the connection
  • ce8b2cf Merge pull request #521 from larskanis/check_connection
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code labels Apr 24, 2023
dependabot bot and others added 2 commits April 24, 2023 18:52
Bumps [pg](https://github.com/ged/ruby-pg) from 1.4.6 to 1.5.0.
- [Release notes](https://github.com/ged/ruby-pg/releases)
- [Changelog](https://github.com/ged/ruby-pg/blob/master/History.md)
- [Commits](ged/ruby-pg@v1.4.6...v1.5.0)

---
updated-dependencies:
- dependency-name: pg
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@wwahammy wwahammy force-pushed the dependabot/bundler/pg-1.5.0 branch from 041dcb7 to b5634a0 Compare April 24, 2023 23:52
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 1, 2023

A newer version of pg exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@wwahammy
Copy link
Member

wwahammy commented May 1, 2023

@dependabot recreate

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 1, 2023

Superseded by #1542.

@dependabot dependabot bot closed this May 1, 2023
@dependabot dependabot bot deleted the dependabot/bundler/pg-1.5.0 branch May 1, 2023 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant