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
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)
Bumps pg from 0.21.0 to 1.5.3.
Changelog
Sourced from pg's changelog.
... (truncated)
Commits
364e5f8
Add pg-1.5.3 to History.mddf9211d
Bump VERSION to 1.5.34764bc4
Merge pull request #531 from larskanis/fix-5302b09abb
Remove unnecessary check for NULL pointer2238724
Avoid doing complex operations in RB_OBJ_WRITE macro call38b4318
Fix possible segfault when creating new PG::Result2b87db5
Make some PG::Result method definitions staticf23782f
Merge pull request #529 from larskanis/fir-warn-on-trufferuby83990c6
Fix sporadic spec error on Windows9ded3b9
Fix error on warn with category on TrufflerubyDependabot 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)