Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkgsrc change: Update HOMEPAGE to GitHUb. Here are quote from changes of two minor release, for full change, please refer: <https://github.com/ged/ruby-pg/blob/master/History.rdoc>. 1.4.0 (2022-06-20) Added: * Add PG::Connection#hostaddr, present since PostgreSQL-12. #453 * Add PG::Connection.conninfo_parse to wrap PQconninfoParse. #453 Bugfixes: * Try IPv6 and IPv4 addresses, if DNS resolves to both. #452 * Re-add block-call semantics to PG::Connection.new accidently removed in pg-1.3.0. #454 * Handle client error after all data consumed in #copy_data for output. #455 * Avoid spurious keyword argument warning on Ruby 2.7. #456 * Change connection setup to respect connect_timeout parameter. #459 * Fix indefinite hang in case of connection error on Windows #458 * Set connection attribute of PG::Error in various places where it was missing. #461 * Fix transaction leak on early break/return. #463 * Update Windows fat binary gem to OpenSSL-1.1.1o and PostgreSQL-14.4. Enhancements: * Don't flush at each put_copy_data call, but flush at get_result. #462 1.3.0 (2022-01-20) Install Enhancements: * 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. TritonDataCenter#373 * Fall back to pkg-config if pg_config is not found. TritonDataCenter#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 support for pipeline mode of PostgreSQL-14. #401 * Allow specification of multiple hosts in PostgreSQL URI. TritonDataCenter#387 * Add new method conn.backend_key - used to implement our own cancel method. Type cast enhancements: * Add PG::BasicTypeMapForQueries::BinaryData for encoding of bytea columns. TritonDataCenter#348 * Reduce time to build coder maps and permit to reuse them for several type maps per PG::BasicTypeRegistry::CoderMapsBundle.new(conn) . TritonDataCenter#376 * Make BasicTypeRegistry a class and use a global default instance of it. Now a local type registry can be instanciated and given to the type map, to avoid changing shared global states. * Allow PG::BasicTypeMapForQueries to take a Proc as callback for undefined types. Other Enhancements: * Convert all PG classes implemented in C to TypedData objects. TritonDataCenter#349 * Support ObjectSpace.memsize_of(obj) on all classes implemented in C. TritonDataCenter#393 * Make all PG objects implemented in C memory moveable and therefore GC.compact friendly. TritonDataCenter#349 * Update errorcodes and error classes to PostgreSQL-14.0. * Add PG::CONNECTION_* constants for conn.status of newer PostgreSQL versions. * Add better support for logical replication. TritonDataCenter#339 * Change conn.socket_io to read+write mode and to a BasicSocket object instead of IO. * Use rb_io_wait() and the conn.socket_io object if available for better compatibility to Fiber.scheduler . Fall back to rb_wait_for_single_fd() on ruby < 3.0. * On Windows use a specialized wait function as a workaround for very poor performance of rb_io_wait(). #416 Bugfixes: * Release GVL while calling PQping which is a blocking method, but it didn't release GVL so far. * Fix Connection#transaction to no longer block on interrupts, for instance when pressing Ctrl-C and cancel a running query. TritonDataCenter#390 * Avoid casting of OIDs to fix compat with Redshift database. TritonDataCenter#369 * Call conn.block before each conn.get_result call to avoid possible blocking in case of a slow network and multiple query results. * Sporadic Errno::ENOTSOCK when using conn.socket_io on Windows #398 Deprecated: * Add deprecation warning to PG::BasicTypeRegistry.register_type and siblings. Removed: * Remove support of ruby-2.2, 2.3 and 2.4. Minimum is ruby-2.5 now. * Remove support for PostgreSQL-9.2. Minimum is PostgreSQL-9.3 now. * Remove constant PG::REVISION, which was broken since pg-1.1.4. Repository: * Replace Hoe by Bundler for gem packaging * Add Github Actions CI and testing of source and binary gems.
- Loading branch information