== v1.3.0 [YYY-MM-DD] Michael Granger 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.1l and PostgreSQL-14.0. - Add a binary gem for Ruby 3.0. - 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. - 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. Type cast enhancements: - Add PG::BasicTypeMapForQueries::BinaryData for encoding of bytea columns. #348 - Reduce time to build coder maps and permit to reuse them for several type maps per PG::BasicTypeRegistry::CoderMapsBundle.new(conn) . #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. #349 - Support ObjectSpace.memsize_of(obj) on all classes implemented in C. #393 - Make all PG objects implemented in C memory moveable and therefore GC.compact friendly. #349 - Update errorcodes and error classes to PostgreSQL-14.0. - Add better support for logical replication. #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 and remove Windows specific wait functions. Fall back to rb_wait_for_single_fd() on ruby < 3.0, which works on Windows as well. 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. #390 - Avoid casting of OIDs to fix compat with Redshift database. #369 - Call conn.block before each conn.get_result call to avoid possible blocking in case of a slow network and multiple query results. 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. Repository: - Replace Hoe by Bundler for gem packaging - Add Github Actions CI and testing of source and binary gems. == v1.2.3 [2020-03-18] Michael Granger Bugfixes: - Fix possible segfault at `PG::Coder#encode`, `decode` or their implicit calls through a typemap after GC.compact. #327 - Fix possible segfault in `PG::TypeMapByClass` after GC.compact. #328 == v1.2.2 [2020-01-06] Michael Granger Enhancements: - Add a binary gem for Ruby 2.7. == v1.2.1 [2020-01-02] Michael Granger Enhancements: - Added internal API for sequel_pg compatibility. == v1.2.0 [2019-12-20] Michael Granger Repository: - Our primary repository has been moved to Github https://github.com/ged/ruby-pg . Most of the issues from https://bitbucket.org/ged/ruby-pg have been migrated. #43 API enhancements: - Add PG::Result#field_name_type= and siblings to allow symbols to be used as field names. #306 - Add new methods for error reporting: - PG::Connection#set_error_context_visibility - PG::Result#verbose_error_message - PG::Result#result_verbose_error_message (alias) - Update errorcodes and error classes to PostgreSQL-12.0. - New constants: PG_DIAG_SEVERITY_NONLOCALIZED, PQERRORS_SQLSTATE, PQSHOW_CONTEXT_NEVER, PQSHOW_CONTEXT_ERRORS, PQSHOW_CONTEXT_ALWAYS Type cast enhancements: - Add PG::TextEncoder::Record and PG::TextDecoder::Record for en/decoding of Composite Types. #258, #36 - Add PG::BasicTypeRegistry.register_coder to register instances instead of classes. This is useful to register parametrized en/decoders like PG::TextDecoder::Record . - Add PG::BasicTypeMapForQueries#encode_array_as= to switch between various interpretations of ruby arrays. - Add Time, Array