Print some install help if libpq wasn't found. #396
This should help to pick the necessary package without googling.
Update Windows fat binary gem to OpenSSL-1.1.1m and PostgreSQL-14.1.
Add binary Windows gems for Ruby 3.0 and 3.1.
Make the library path of libpq available in ruby as PG::POSTGRESQL_LIB_PATH and add it to the search paths on Windows similar to +rpath+ on Unix systems. #373
Fall back to pkg-config if pg_config is not found. #380
Add option to extconf.rb to disable nogvl-wrapping of libpq functions.
All methods (except PG::Connection.ping) are nonblocking now, so that GVL unlock is in theory no longer necessary.
However it can have some advantage in concurrency, so that GVL unlock is still enabled by default.
Use:
gem inst pg -- --disable-gvl-unlock
API Enhancements:
Add full compatibility to Fiber.scheduler introduced in Ruby-3.0. #397
Add async_connect and async_send methods and add specific specs for Fiber.scheduler #342
Add async_get_result and async_get_last_result
Add async_get_copy_data
Implement async_put_copy_data/async_put_copy_end
Implement async_reset method using the nonblocking libpq API
Add async_set_client_encoding which is compatible to scheduler
Add async_cancel as a nonblocking version of conn#cancel
Add async_encrypt_password
Run Connection.ping in a second thread.
Make discard_results scheduler friendly
Do all socket waiting through the conn.socket_io object.
Avoid PG.connect blocking while address resolution by automatically providing the +hostaddr+ parameter.
On Windows Fiber.scheduler support requires Ruby-3.1+.
It is also only partly usable since may ruby IO methods are not yet scheduler aware on Windows.
Add support for pipeline mode of PostgreSQL-14. #401
Allow specification of multiple hosts in PostgreSQL URI. #387
Add new method conn.backend_key - used to implement our own cancel method.
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)
Updates the requirements on pg to permit the latest version.
Changelog
Sourced from pg's changelog.
... (truncated)
Commits
6c436bd
Update History.rdoc for #420300e94e
Merge pull request #420 from ennova/ruby-2-wait-cpu20bab5e
Fix high CPU usage when waiting with a timeout on Ruby < 3.028a3bf7
Prepare History.rdoc for pg-1.3.17844548
Fix error PG.version_string(true)0232b28
Retry occasional failing test8a25ca4
Fix wrong handling of socket writability on Windows22e91a3
Add a new test for COPY'ing lots of data to the server84aca71
Bump VERSION to 1.3.18e8dd31
Raise an error when #copy_data is used in nonblocking modeDependabot 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)