pg 1.4.4-x64-mingw-ucrt → 1.4.6-x64-mingw-ucrt
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.appveyor.yml +14 -8
- data/.github/workflows/binary-gems.yml +42 -11
- data/.github/workflows/source-gem.yml +24 -18
- data/.gitignore +8 -2
- data/.travis.yml +2 -2
- data/{History.rdoc → History.md} +174 -150
- data/README.ja.md +266 -0
- data/README.md +272 -0
- data/Rakefile +13 -4
- data/Rakefile.cross +7 -11
- data/certs/larskanis-2023.pem +24 -0
- data/ext/errorcodes.def +4 -0
- data/ext/errorcodes.txt +2 -1
- data/ext/pg.c +3 -0
- data/ext/pg_connection.c +110 -27
- data/lib/3.1/pg_ext.so +0 -0
- data/lib/3.2/pg_ext.so +0 -0
- data/lib/pg/connection.rb +21 -19
- data/lib/pg/exceptions.rb +7 -0
- data/lib/pg/version.rb +1 -1
- data/lib/pg.rb +0 -6
- data/lib/x64-mingw-ucrt/libpq.dll +0 -0
- data/pg.gemspec +4 -2
- data/rakelib/task_extension.rb +1 -1
- data/translation/.po4a-version +7 -0
- data/translation/po/all.pot +875 -0
- data/translation/po/ja.po +868 -0
- data/translation/po4a.cfg +9 -0
- data.tar.gz.sig +0 -0
- metadata +89 -31
- metadata.gz.sig +0 -0
- data/README.ja.rdoc +0 -13
- data/README.rdoc +0 -233
    
        data/{History.rdoc → History.md}
    RENAMED
    
    | @@ -1,64 +1,88 @@ | |
| 1 | 
            -
             | 
| 1 | 
            +
            ## v1.4.6 [2023-02-26] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 2 2 |  | 
| 3 | 
            -
            -  | 
| 3 | 
            +
            - Add japanese README file. [#502](https://github.com/ged/ruby-pg/pull/502)
         | 
| 4 | 
            +
            - Improve `discard_results` to not block under memory pressure. [#500](https://github.com/ged/ruby-pg/pull/500)
         | 
| 5 | 
            +
            - Use a dedicated error class `PG::LostCopyState` for errors due to another query within `copy_data` and mention that it's probably due to another query.
         | 
| 6 | 
            +
              Previously the "no COPY in progress" `PG::Error` was less specific. [#499](https://github.com/ged/ruby-pg/pull/499)
         | 
| 7 | 
            +
            - Make sure an error in `put_copy_end` of `copy_data`  doesn't lose the original exception.
         | 
| 8 | 
            +
            - Disable nonblocking mode while large object calls. [#498](https://github.com/ged/ruby-pg/pull/498)
         | 
| 9 | 
            +
              Since pg-1.3.0 libpq's "lo_*" calls failed when a bigger amount of data was transferred.
         | 
| 10 | 
            +
              This specifically forced the `active_storage-postgresql` gem to use pg-1.2.3.
         | 
| 11 | 
            +
            - Add rdoc options to gemspec, so that "gem install" generates complete offline documentation.
         | 
| 12 | 
            +
            - Add binary Windows gems for Ruby 3.2.
         | 
| 13 | 
            +
            - Update Windows fat binary gem to PostgreSQL-15.2 and OpenSSL-3.0.8.
         | 
| 14 | 
            +
             | 
| 15 | 
            +
             | 
| 16 | 
            +
            ## v1.4.5 [2022-11-17] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 17 | 
            +
             | 
| 18 | 
            +
            - Return the libpq default port when blank in conninfo. [#492](https://github.com/ged/ruby-pg/pull/492)
         | 
| 19 | 
            +
            - Add PG::DEF_PGPORT constant and use it in specs. [#492](https://github.com/ged/ruby-pg/pull/492)
         | 
| 20 | 
            +
            - Fix name resolution when empty or `nil` port is given.
         | 
| 21 | 
            +
            - Update error codes to PostgreSQL-15.
         | 
| 22 | 
            +
            - Update Windows fat binary gem to PostgreSQL-15.1 AND OpenSSL-1.1.1s.
         | 
| 23 | 
            +
             | 
| 24 | 
            +
             | 
| 25 | 
            +
            ## v1.4.4 [2022-10-11] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            - Revert to let libpq do the host iteration while connecting. [#485](https://github.com/ged/ruby-pg/pull/485)
         | 
| 4 28 | 
             
              Ensure that parameter `connect_timeout` is still respected.
         | 
| 5 | 
            -
            - Handle multiple hosts in the connection string, where only one host has writable session. #476
         | 
| 6 | 
            -
            - Add some useful information to PG::Connection#inspect. #487
         | 
| 7 | 
            -
            - Support new pgresult_stream_any API in sequel_pg-1.17.0. #481
         | 
| 29 | 
            +
            - Handle multiple hosts in the connection string, where only one host has writable session. [#476](https://github.com/ged/ruby-pg/pull/476)
         | 
| 30 | 
            +
            - Add some useful information to PG::Connection#inspect. [#487](https://github.com/ged/ruby-pg/pull/487)
         | 
| 31 | 
            +
            - Support new pgresult_stream_any API in sequel_pg-1.17.0. [#481](https://github.com/ged/ruby-pg/pull/481)
         | 
| 8 32 | 
             
            - Update Windows fat binary gem to PostgreSQL-14.5.
         | 
| 9 33 |  | 
| 10 34 |  | 
| 11 | 
            -
             | 
| 35 | 
            +
            ## v1.4.3 [2022-08-09] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 12 36 |  | 
| 13 | 
            -
            - Avoid memory bloat possible in put_copy_data in pg-1.4.0 to 1.4.2. #473
         | 
| 14 | 
            -
            - Use Encoding::BINARY for JOHAB, removing some useless code. #472
         | 
| 37 | 
            +
            - Avoid memory bloat possible in put_copy_data in pg-1.4.0 to 1.4.2. [#473](https://github.com/ged/ruby-pg/pull/473)
         | 
| 38 | 
            +
            - Use Encoding::BINARY for JOHAB, removing some useless code. [#472](https://github.com/ged/ruby-pg/pull/472)
         | 
| 15 39 |  | 
| 16 40 |  | 
| 17 | 
            -
             | 
| 41 | 
            +
            ## v1.4.2 [2022-07-27] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 18 42 |  | 
| 19 43 | 
             
            Bugfixes:
         | 
| 20 44 |  | 
| 21 | 
            -
            - Properly handle empty host parameter when connecting. #471
         | 
| 45 | 
            +
            - Properly handle empty host parameter when connecting. [#471](https://github.com/ged/ruby-pg/pull/471)
         | 
| 22 46 | 
             
            - Update Windows fat binary gem to OpenSSL-1.1.1q.
         | 
| 23 47 |  | 
| 24 48 |  | 
| 25 | 
            -
             | 
| 49 | 
            +
            ## v1.4.1 [2022-06-24] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 26 50 |  | 
| 27 51 | 
             
            Bugfixes:
         | 
| 28 52 |  | 
| 29 | 
            -
            - Fix another ruby-2.7 keyword warning. #465
         | 
| 30 | 
            -
            - Allow PG::Error to be created without arguments. #466
         | 
| 53 | 
            +
            - Fix another ruby-2.7 keyword warning. [#465](https://github.com/ged/ruby-pg/pull/465)
         | 
| 54 | 
            +
            - Allow PG::Error to be created without arguments. [#466](https://github.com/ged/ruby-pg/pull/466)
         | 
| 31 55 |  | 
| 32 56 |  | 
| 33 | 
            -
             | 
| 57 | 
            +
            ## v1.4.0 [2022-06-20] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 34 58 |  | 
| 35 59 | 
             
            Added:
         | 
| 36 60 |  | 
| 37 | 
            -
            - Add PG::Connection#hostaddr, present since PostgreSQL-12. #453
         | 
| 38 | 
            -
            - Add PG::Connection.conninfo_parse to wrap PQconninfoParse. #453
         | 
| 61 | 
            +
            - Add PG::Connection#hostaddr, present since PostgreSQL-12. [#453](https://github.com/ged/ruby-pg/pull/453)
         | 
| 62 | 
            +
            - Add PG::Connection.conninfo_parse to wrap PQconninfoParse. [#453](https://github.com/ged/ruby-pg/pull/453)
         | 
| 39 63 |  | 
| 40 64 | 
             
            Bugfixes:
         | 
| 41 65 |  | 
| 42 | 
            -
            - Try IPv6 and IPv4 addresses, if DNS resolves to both. #452
         | 
| 43 | 
            -
            - Re-add block-call semantics to PG::Connection.new accidently removed in pg-1.3.0. #454
         | 
| 44 | 
            -
            - Handle client error after all data consumed in #copy_data for output. #455
         | 
| 45 | 
            -
            - Avoid spurious keyword argument warning on Ruby 2.7. #456
         | 
| 46 | 
            -
            - Change connection setup to respect connect_timeout parameter. #459
         | 
| 47 | 
            -
            - Fix indefinite hang in case of connection error on Windows #458
         | 
| 48 | 
            -
            - Set connection attribute of PG::Error in various places where it was missing. #461
         | 
| 49 | 
            -
            - Fix transaction leak on early break/return. #463
         | 
| 66 | 
            +
            - Try IPv6 and IPv4 addresses, if DNS resolves to both. [#452](https://github.com/ged/ruby-pg/pull/452)
         | 
| 67 | 
            +
            - Re-add block-call semantics to PG::Connection.new accidently removed in pg-1.3.0. [#454](https://github.com/ged/ruby-pg/pull/454)
         | 
| 68 | 
            +
            - Handle client error after all data consumed in #copy_data for output. [#455](https://github.com/ged/ruby-pg/pull/455)
         | 
| 69 | 
            +
            - Avoid spurious keyword argument warning on Ruby 2.7. [#456](https://github.com/ged/ruby-pg/pull/456)
         | 
| 70 | 
            +
            - Change connection setup to respect connect_timeout parameter. [#459](https://github.com/ged/ruby-pg/pull/459)
         | 
| 71 | 
            +
            - Fix indefinite hang in case of connection error on Windows [#458](https://github.com/ged/ruby-pg/pull/458)
         | 
| 72 | 
            +
            - Set connection attribute of PG::Error in various places where it was missing. [#461](https://github.com/ged/ruby-pg/pull/461)
         | 
| 73 | 
            +
            - Fix transaction leak on early break/return. [#463](https://github.com/ged/ruby-pg/pull/463)
         | 
| 50 74 | 
             
            - Update Windows fat binary gem to OpenSSL-1.1.1o and PostgreSQL-14.4.
         | 
| 51 75 |  | 
| 52 76 | 
             
            Enhancements:
         | 
| 53 77 |  | 
| 54 | 
            -
            - Don't flush at each put_copy_data call, but flush at get_result. #462
         | 
| 78 | 
            +
            - Don't flush at each put_copy_data call, but flush at get_result. [#462](https://github.com/ged/ruby-pg/pull/462)
         | 
| 55 79 |  | 
| 56 80 |  | 
| 57 | 
            -
             | 
| 81 | 
            +
            ## v1.3.5 [2022-03-31] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 58 82 |  | 
| 59 83 | 
             
            Bugfixes:
         | 
| 60 84 |  | 
| 61 | 
            -
            - Handle PGRES_COMMAND_OK in pgresult_stream_any. #447
         | 
| 85 | 
            +
            - Handle PGRES_COMMAND_OK in pgresult_stream_any. [#447](https://github.com/ged/ruby-pg/pull/447)
         | 
| 62 86 | 
             
              Fixes usage when trying to stream the result of a procedure call that returns no results.
         | 
| 63 87 |  | 
| 64 88 | 
             
            Enhancements:
         | 
| @@ -67,74 +91,74 @@ Enhancements: | |
| 67 91 | 
             
              Keeping define_default_types for compatibility.
         | 
| 68 92 | 
             
            - BasicTypeRegistry: return self instead of objects by accident.
         | 
| 69 93 | 
             
              This allows call chaining.
         | 
| 70 | 
            -
            - Add some April fun. #449
         | 
| 94 | 
            +
            - Add some April fun. [#449](https://github.com/ged/ruby-pg/pull/449)
         | 
| 71 95 |  | 
| 72 96 | 
             
            Documentation:
         | 
| 73 97 | 
             
            - Refine documentation of conn.socket_io and conn.connect_poll
         | 
| 74 98 |  | 
| 75 99 |  | 
| 76 | 
            -
             | 
| 100 | 
            +
            ## v1.3.4 [2022-03-10] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 77 101 |  | 
| 78 102 | 
             
            Bugfixes:
         | 
| 79 103 |  | 
| 80 | 
            -
            - Don't leak IO in case of connection errors. #439
         | 
| 104 | 
            +
            - Don't leak IO in case of connection errors. [#439](https://github.com/ged/ruby-pg/pull/439)
         | 
| 81 105 | 
             
              Previously it was kept open until the PG::Connection was garbage collected.
         | 
| 82 | 
            -
            - Fix a performance regession in conn.get_result noticed in single row mode. #442
         | 
| 83 | 
            -
            - Fix occasional error Errno::EBADF (Bad file descriptor) while connecting. #444
         | 
| 84 | 
            -
            - Fix compatibility of res.stream_each* methods with Fiber.scheduler. #446
         | 
| 85 | 
            -
            - Remove FL_TEST and FL_SET, which are MRI-internal. #437
         | 
| 106 | 
            +
            - Fix a performance regession in conn.get_result noticed in single row mode. [#442](https://github.com/ged/ruby-pg/pull/442)
         | 
| 107 | 
            +
            - Fix occasional error Errno::EBADF (Bad file descriptor) while connecting. [#444](https://github.com/ged/ruby-pg/pull/444)
         | 
| 108 | 
            +
            - Fix compatibility of res.stream_each* methods with Fiber.scheduler. [#446](https://github.com/ged/ruby-pg/pull/446)
         | 
| 109 | 
            +
            - Remove FL_TEST and FL_SET, which are MRI-internal. [#437](https://github.com/ged/ruby-pg/pull/437)
         | 
| 86 110 |  | 
| 87 111 | 
             
            Enhancements:
         | 
| 88 112 |  | 
| 89 | 
            -
            - Allow pgresult_stream_any to be used by sequel_pg. #443
         | 
| 113 | 
            +
            - Allow pgresult_stream_any to be used by sequel_pg. [#443](https://github.com/ged/ruby-pg/pull/443)
         | 
| 90 114 |  | 
| 91 115 |  | 
| 92 | 
            -
             | 
| 116 | 
            +
            ## v1.3.3 [2022-02-22] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 93 117 |  | 
| 94 118 | 
             
            Bugfixes:
         | 
| 95 119 |  | 
| 96 | 
            -
            - Fix omission of the third digit of IPv4 addresses in connection URI. #435
         | 
| 97 | 
            -
            - Fix wrong permission of certs/larskanis-2022.pem in the pg-1.3.2.gem. #432
         | 
| 120 | 
            +
            - Fix omission of the third digit of IPv4 addresses in connection URI. [#435](https://github.com/ged/ruby-pg/pull/435)
         | 
| 121 | 
            +
            - Fix wrong permission of certs/larskanis-2022.pem in the pg-1.3.2.gem. [#432](https://github.com/ged/ruby-pg/pull/432)
         | 
| 98 122 |  | 
| 99 123 |  | 
| 100 | 
            -
             | 
| 124 | 
            +
            ## v1.3.2 [2022-02-14] Lars Kanis <lars@greiz-reinsdorf.de>
         | 
| 101 125 |  | 
| 102 126 | 
             
            Bugfixes:
         | 
| 103 127 |  | 
| 104 | 
            -
            - Cancel only active query after failing transaction. #430
         | 
| 128 | 
            +
            - Cancel only active query after failing transaction. [#430](https://github.com/ged/ruby-pg/pull/430)
         | 
| 105 129 | 
             
              This avoids an incompatibility with pgbouncer since pg-1.3.0.
         | 
| 106 | 
            -
            - Fix String objects with non-applied encoding when using COPY or record decoders. #427
         | 
| 130 | 
            +
            - Fix String objects with non-applied encoding when using COPY or record decoders. [#427](https://github.com/ged/ruby-pg/pull/427)
         | 
| 107 131 | 
             
            - Update Windows fat binary gem to PostgreSQL-14.2.
         | 
| 108 132 |  | 
| 109 133 | 
             
            Enhancements:
         | 
| 110 134 |  | 
| 111 135 | 
             
            - Improve extconf.rb checks to reduces the number of compiler calls.
         | 
| 112 | 
            -
            - Add a check for PGRES_PIPELINE_SYNC, to make sure the library version and the header files are PostgreSQL-14+. #429
         | 
| 136 | 
            +
            - Add a check for PGRES_PIPELINE_SYNC, to make sure the library version and the header files are PostgreSQL-14+. [#429](https://github.com/ged/ruby-pg/pull/429)
         | 
| 113 137 |  | 
| 114 138 |  | 
| 115 | 
            -
             | 
| 139 | 
            +
            ## v1.3.1 [2022-02-01] Michael Granger <ged@FaerieMUD.org>
         | 
| 116 140 |  | 
| 117 141 | 
             
            Bugfixes:
         | 
| 118 142 |  | 
| 119 | 
            -
            - Fix wrong handling of socket writability on Windows introduced in #417.
         | 
| 143 | 
            +
            - Fix wrong handling of socket writability on Windows introduced in [#417](https://github.com/ged/ruby-pg/pull/417).
         | 
| 120 144 | 
             
              This caused starvation in conn.put_copy_data.
         | 
| 121 | 
            -
            - Fix error in PG.version_string(true). #419
         | 
| 122 | 
            -
            - Fix a regression in pg 1.3.0 where Ruby 2.x busy-looping any fractional seconds for every wait. #420
         | 
| 145 | 
            +
            - Fix error in PG.version_string(true). [#419](https://github.com/ged/ruby-pg/pull/419)
         | 
| 146 | 
            +
            - Fix a regression in pg 1.3.0 where Ruby 2.x busy-looping any fractional seconds for every wait. [#420](https://github.com/ged/ruby-pg/pull/420)
         | 
| 123 147 |  | 
| 124 148 | 
             
            Enhancements:
         | 
| 125 149 |  | 
| 126 150 | 
             
            - Raise an error when conn.copy_data is used in nonblocking mode.
         | 
| 127 151 |  | 
| 128 152 |  | 
| 129 | 
            -
             | 
| 153 | 
            +
            ## v1.3.0 [2022-01-20] Michael Granger <ged@FaerieMUD.org>
         | 
| 130 154 |  | 
| 131 155 | 
             
            Install Enhancements:
         | 
| 132 | 
            -
            - Print some install help if libpq wasn't found. #396
         | 
| 156 | 
            +
            - Print some install help if libpq wasn't found. [#396](https://github.com/ged/ruby-pg/pull/396)
         | 
| 133 157 | 
             
              This should help to pick the necessary package without googling.
         | 
| 134 158 | 
             
            - Update Windows fat binary gem to OpenSSL-1.1.1m and PostgreSQL-14.1.
         | 
| 135 159 | 
             
            - Add binary Windows gems for Ruby 3.0 and 3.1.
         | 
| 136 | 
            -
            - 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
         | 
| 137 | 
            -
            - Fall back to pkg-config if pg_config is not found. #380
         | 
| 160 | 
            +
            - 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](https://github.com/ged/ruby-pg/pull/373)
         | 
| 161 | 
            +
            - Fall back to pkg-config if pg_config is not found. [#380](https://github.com/ged/ruby-pg/pull/380)
         | 
| 138 162 | 
             
            - Add option to extconf.rb to disable nogvl-wrapping of libpq functions.
         | 
| 139 163 | 
             
              All methods (except PG::Connection.ping) are nonblocking now, so that GVL unlock is in theory no longer necessary.
         | 
| 140 164 | 
             
              However it can have some advantage in concurrency, so that GVL unlock is still enabled by default.
         | 
| @@ -142,8 +166,8 @@ Install Enhancements: | |
| 142 166 | 
             
              - gem inst pg -- --disable-gvl-unlock
         | 
| 143 167 |  | 
| 144 168 | 
             
            API Enhancements:
         | 
| 145 | 
            -
            - Add full compatibility to Fiber.scheduler introduced in Ruby-3.0. #397
         | 
| 146 | 
            -
              - Add async_connect and async_send methods and add specific specs for Fiber.scheduler #342
         | 
| 169 | 
            +
            - Add full compatibility to Fiber.scheduler introduced in Ruby-3.0. [#397](https://github.com/ged/ruby-pg/pull/397)
         | 
| 170 | 
            +
              - Add async_connect and async_send methods and add specific specs for Fiber.scheduler [#342](https://github.com/ged/ruby-pg/pull/342)
         | 
| 147 171 | 
             
              - Add async_get_result and async_get_last_result
         | 
| 148 172 | 
             
              - Add async_get_copy_data
         | 
| 149 173 | 
             
              - Implement async_put_copy_data/async_put_copy_end
         | 
| @@ -157,35 +181,35 @@ API Enhancements: | |
| 157 181 | 
             
              - Avoid PG.connect blocking while address resolution by automatically providing the +hostaddr+ parameter and resolving in Ruby instead of libpq.
         | 
| 158 182 | 
             
              - On Windows Fiber.scheduler support requires Ruby-3.1+.
         | 
| 159 183 | 
             
                It is also only partly usable since may ruby IO methods are not yet scheduler aware on Windows.
         | 
| 160 | 
            -
            - Add support for pipeline mode of PostgreSQL-14. #401
         | 
| 161 | 
            -
            - Allow specification of multiple hosts in PostgreSQL URI. #387
         | 
| 184 | 
            +
            - Add support for pipeline mode of PostgreSQL-14. [#401](https://github.com/ged/ruby-pg/pull/401)
         | 
| 185 | 
            +
            - Allow specification of multiple hosts in PostgreSQL URI. [#387](https://github.com/ged/ruby-pg/pull/387)
         | 
| 162 186 | 
             
            - Add new method conn.backend_key - used to implement our own cancel method.
         | 
| 163 187 |  | 
| 164 188 | 
             
            Type cast enhancements:
         | 
| 165 | 
            -
            - Add PG::BasicTypeMapForQueries::BinaryData for encoding of bytea columns. #348
         | 
| 166 | 
            -
            - Reduce time to build coder maps and permit to reuse them for several type maps per PG::BasicTypeRegistry::CoderMapsBundle.new(conn) . #376
         | 
| 189 | 
            +
            - Add PG::BasicTypeMapForQueries::BinaryData for encoding of bytea columns. [#348](https://github.com/ged/ruby-pg/pull/348)
         | 
| 190 | 
            +
            - Reduce time to build coder maps and permit to reuse them for several type maps per PG::BasicTypeRegistry::CoderMapsBundle.new(conn) . [#376](https://github.com/ged/ruby-pg/pull/376)
         | 
| 167 191 | 
             
            - Make BasicTypeRegistry a class and use a global default instance of it.
         | 
| 168 192 | 
             
              Now a local type registry can be instanciated and given to the type map, to avoid changing shared global states.
         | 
| 169 193 | 
             
            - Allow PG::BasicTypeMapForQueries to take a Proc as callback for undefined types.
         | 
| 170 194 |  | 
| 171 195 | 
             
            Other Enhancements:
         | 
| 172 | 
            -
            - Convert all PG classes implemented in C to TypedData objects. #349
         | 
| 173 | 
            -
            - Support ObjectSpace.memsize_of(obj) on all classes implemented in C. #393
         | 
| 174 | 
            -
            - Make all PG objects implemented in C memory moveable and therefore GC.compact friendly. #349
         | 
| 196 | 
            +
            - Convert all PG classes implemented in C to TypedData objects. [#349](https://github.com/ged/ruby-pg/pull/349)
         | 
| 197 | 
            +
            - Support ObjectSpace.memsize_of(obj) on all classes implemented in C. [#393](https://github.com/ged/ruby-pg/pull/393)
         | 
| 198 | 
            +
            - Make all PG objects implemented in C memory moveable and therefore GC.compact friendly. [#349](https://github.com/ged/ruby-pg/pull/349)
         | 
| 175 199 | 
             
            - Update errorcodes and error classes to PostgreSQL-14.0.
         | 
| 176 200 | 
             
            - Add PG::CONNECTION_* constants for conn.status of newer PostgreSQL versions.
         | 
| 177 | 
            -
            - Add better support for logical replication. #339
         | 
| 201 | 
            +
            - Add better support for logical replication. [#339](https://github.com/ged/ruby-pg/pull/339)
         | 
| 178 202 | 
             
            - Change conn.socket_io to read+write mode and to a BasicSocket object instead of IO.
         | 
| 179 203 | 
             
            - Use rb_io_wait() and the conn.socket_io object if available for better compatibility to Fiber.scheduler .
         | 
| 180 204 | 
             
              Fall back to rb_wait_for_single_fd() on ruby < 3.0.
         | 
| 181 | 
            -
            - On Windows use a specialized wait function as a workaround for very poor performance of rb_io_wait(). #416
         | 
| 205 | 
            +
            - On Windows use a specialized wait function as a workaround for very poor performance of rb_io_wait(). [#416](https://github.com/ged/ruby-pg/pull/416)
         | 
| 182 206 |  | 
| 183 207 | 
             
            Bugfixes:
         | 
| 184 208 | 
             
            - Release GVL while calling PQping which is a blocking method, but it didn't release GVL so far.
         | 
| 185 | 
            -
            - Fix Connection#transaction to no longer block on interrupts, for instance when pressing Ctrl-C and cancel a running query. #390
         | 
| 186 | 
            -
            - Avoid casting of OIDs to fix compat with Redshift database. #369
         | 
| 209 | 
            +
            - Fix Connection#transaction to no longer block on interrupts, for instance when pressing Ctrl-C and cancel a running query. [#390](https://github.com/ged/ruby-pg/pull/390)
         | 
| 210 | 
            +
            - Avoid casting of OIDs to fix compat with Redshift database. [#369](https://github.com/ged/ruby-pg/pull/369)
         | 
| 187 211 | 
             
            - Call conn.block before each conn.get_result call to avoid possible blocking in case of a slow network and multiple query results.
         | 
| 188 | 
            -
            - Sporadic Errno::ENOTSOCK when using conn.socket_io on Windows #398
         | 
| 212 | 
            +
            - Sporadic Errno::ENOTSOCK when using conn.socket_io on Windows [#398](https://github.com/ged/ruby-pg/pull/398)
         | 
| 189 213 |  | 
| 190 214 | 
             
            Deprecated:
         | 
| 191 215 | 
             
            - Add deprecation warning to PG::BasicTypeRegistry.register_type and siblings.
         | 
| @@ -200,37 +224,37 @@ Repository: | |
| 200 224 | 
             
            - Add Github Actions CI and testing of source and binary gems.
         | 
| 201 225 |  | 
| 202 226 |  | 
| 203 | 
            -
             | 
| 227 | 
            +
            ## v1.2.3 [2020-03-18] Michael Granger <ged@FaerieMUD.org>
         | 
| 204 228 |  | 
| 205 229 | 
             
            Bugfixes:
         | 
| 206 230 |  | 
| 207 231 | 
             
            - Fix possible segfault at `PG::Coder#encode`, `decode` or their implicit calls through
         | 
| 208 | 
            -
              a typemap after GC.compact. #327
         | 
| 209 | 
            -
            - Fix possible segfault in `PG::TypeMapByClass` after GC.compact. #328
         | 
| 232 | 
            +
              a typemap after GC.compact. [#327](https://github.com/ged/ruby-pg/pull/327)
         | 
| 233 | 
            +
            - Fix possible segfault in `PG::TypeMapByClass` after GC.compact. [#328](https://github.com/ged/ruby-pg/pull/328)
         | 
| 210 234 |  | 
| 211 235 |  | 
| 212 | 
            -
             | 
| 236 | 
            +
            ## v1.2.2 [2020-01-06] Michael Granger <ged@FaerieMUD.org>
         | 
| 213 237 |  | 
| 214 238 | 
             
            Enhancements:
         | 
| 215 239 |  | 
| 216 240 | 
             
            - Add a binary gem for Ruby 2.7.
         | 
| 217 241 |  | 
| 218 242 |  | 
| 219 | 
            -
             | 
| 243 | 
            +
            ## v1.2.1 [2020-01-02] Michael Granger <ged@FaerieMUD.org>
         | 
| 220 244 |  | 
| 221 245 | 
             
            Enhancements:
         | 
| 222 246 |  | 
| 223 247 | 
             
            - Added internal API for sequel_pg compatibility.
         | 
| 224 248 |  | 
| 225 249 |  | 
| 226 | 
            -
             | 
| 250 | 
            +
            ## v1.2.0 [2019-12-20] Michael Granger <ged@FaerieMUD.org>
         | 
| 227 251 |  | 
| 228 252 | 
             
            Repository:
         | 
| 229 253 | 
             
            - Our primary repository has been moved to Github https://github.com/ged/ruby-pg .
         | 
| 230 | 
            -
              Most of the issues from https://bitbucket.org/ged/ruby-pg have been migrated. #43
         | 
| 254 | 
            +
              Most of the issues from https://bitbucket.org/ged/ruby-pg have been migrated. [#43](https://github.com/ged/ruby-pg/pull/43)
         | 
| 231 255 |  | 
| 232 256 | 
             
            API enhancements:
         | 
| 233 | 
            -
            - Add PG::Result#field_name_type= and siblings to allow symbols to be used as field names. #306
         | 
| 257 | 
            +
            - Add PG::Result#field_name_type= and siblings to allow symbols to be used as field names. [#306](https://github.com/ged/ruby-pg/pull/306)
         | 
| 234 258 | 
             
            - Add new methods for error reporting:
         | 
| 235 259 | 
             
              - PG::Connection#set_error_context_visibility
         | 
| 236 260 | 
             
              - PG::Result#verbose_error_message
         | 
| @@ -239,29 +263,29 @@ API enhancements: | |
| 239 263 | 
             
            - New constants: PG_DIAG_SEVERITY_NONLOCALIZED, PQERRORS_SQLSTATE, PQSHOW_CONTEXT_NEVER, PQSHOW_CONTEXT_ERRORS, PQSHOW_CONTEXT_ALWAYS
         | 
| 240 264 |  | 
| 241 265 | 
             
            Type cast enhancements:
         | 
| 242 | 
            -
            - Add PG::TextEncoder::Record and PG::TextDecoder::Record for en/decoding of Composite Types. #258, #36
         | 
| 266 | 
            +
            - Add PG::TextEncoder::Record and PG::TextDecoder::Record for en/decoding of Composite Types. [#258](https://github.com/ged/ruby-pg/pull/258), [#36](https://github.com/ged/ruby-pg/pull/36)
         | 
| 243 267 | 
             
            - Add PG::BasicTypeRegistry.register_coder to register instances instead of classes.
         | 
| 244 268 | 
             
              This is useful to register parametrized en/decoders like PG::TextDecoder::Record .
         | 
| 245 269 | 
             
            - Add PG::BasicTypeMapForQueries#encode_array_as= to switch between various interpretations of ruby arrays.
         | 
| 246 270 | 
             
            - Add Time, Array<Time>, Array<BigDecimal> and Array<IPAddr> encoders to PG::BasicTypeMapForQueries
         | 
| 247 | 
            -
            - Exchange sprintf based float encoder by very fast own implementation with more natural format. #301
         | 
| 271 | 
            +
            - Exchange sprintf based float encoder by very fast own implementation with more natural format. [#301](https://github.com/ged/ruby-pg/pull/301)
         | 
| 248 272 | 
             
            - Define encode and decode methods only in en/decoders that implement it, so that they can be queried by respond_to? .
         | 
| 249 273 | 
             
            - Improve PG::TypeMapByColumn#inspect
         | 
| 250 | 
            -
            - Accept Integer and Float as input to TextEncoder::Numeric . #310
         | 
| 274 | 
            +
            - Accept Integer and Float as input to TextEncoder::Numeric . [#310](https://github.com/ged/ruby-pg/pull/310)
         | 
| 251 275 |  | 
| 252 276 | 
             
            Other enhancements:
         | 
| 253 277 | 
             
            - Allocate the data part and the ruby object of PG::Result in one step, so that we don't need to check for valid data.
         | 
| 254 | 
            -
              This removes PG::Result.allocate and PG::Result.new, which were callable but without any practical use. #42
         | 
| 278 | 
            +
              This removes PG::Result.allocate and PG::Result.new, which were callable but without any practical use. [#42](https://github.com/ged/ruby-pg/pull/42)
         | 
| 255 279 | 
             
            - Make use of PQresultMemorySize() of PostgreSQL-12 and fall back to our internal estimator.
         | 
| 256 280 | 
             
            - Improve performance of PG::Result#stream_each_tuple .
         | 
| 257 | 
            -
            - Store client encoding in data part of PG::Connection and PG::Result objects, so that we no longer use ruby's internal encoding bits. #280
         | 
| 281 | 
            +
            - Store client encoding in data part of PG::Connection and PG::Result objects, so that we no longer use ruby's internal encoding bits. [#280](https://github.com/ged/ruby-pg/pull/280)
         | 
| 258 282 | 
             
            - Update Windows fat binary gem to OpenSSL-1.1.1d and PostgreSQL-12.1.
         | 
| 259 283 | 
             
            - Add support for TruffleRuby. It is regularly tested as part of our CI.
         | 
| 260 284 | 
             
            - Enable +frozen_string_literal+ in all pg's ruby files
         | 
| 261 285 |  | 
| 262 286 | 
             
            Bugfixes:
         | 
| 263 287 | 
             
            - Update the license in gemspec to "BSD-2-Clause".
         | 
| 264 | 
            -
              It was incorrectly labeled "BSD-3-Clause". #40
         | 
| 288 | 
            +
              It was incorrectly labeled "BSD-3-Clause". [#40](https://github.com/ged/ruby-pg/pull/40)
         | 
| 265 289 | 
             
            - Respect PG::Coder#flags in PG::Coder#to_h.
         | 
| 266 290 | 
             
            - Fix PG::Result memsize reporting after #clear.
         | 
| 267 291 | 
             
            - Release field names to GC on PG::Result#clear.
         | 
| @@ -275,7 +299,7 @@ Deprecated: | |
| 275 299 | 
             
            Removed:
         | 
| 276 300 | 
             
            - Remove PG::Connection#guess_result_memsize= which was temporary added in pg-1.1.
         | 
| 277 301 | 
             
            - Remove PG::Result.allocate and PG::Result.new (see enhancements).
         | 
| 278 | 
            -
            - Remove support of tainted objects. #307
         | 
| 302 | 
            +
            - Remove support of tainted objects. [#307](https://github.com/ged/ruby-pg/pull/307)
         | 
| 279 303 | 
             
            - Remove support of ruby-2.0 and 2.1. Minimum is ruby-2.2 now.
         | 
| 280 304 |  | 
| 281 305 | 
             
            Documentation:
         | 
| @@ -286,30 +310,30 @@ Documentation: | |
| 286 310 | 
             
            - Fix documentation of many constants
         | 
| 287 311 |  | 
| 288 312 |  | 
| 289 | 
            -
             | 
| 313 | 
            +
            ## v1.1.4 [2019-01-08] Michael Granger <ged@FaerieMUD.org>
         | 
| 290 314 |  | 
| 291 315 | 
             
            - Fix PG::BinaryDecoder::Timestamp on 32 bit systems. # 284
         | 
| 292 316 | 
             
            - Add new error-codes of PostgreSQL-11.
         | 
| 293 317 | 
             
            - Add ruby-2.6 support for Windows fat binary gems and remove ruby-2.0 and 2.1.
         | 
| 294 318 |  | 
| 295 319 |  | 
| 296 | 
            -
             | 
| 320 | 
            +
            ## v1.1.3 [2018-09-06] Michael Granger <ged@FaerieMUD.org>
         | 
| 297 321 |  | 
| 298 322 | 
             
            - Revert opimization that was sometimes causing EBADF in rb_wait_for_single_fd().
         | 
| 299 323 |  | 
| 300 324 |  | 
| 301 | 
            -
             | 
| 325 | 
            +
            ## v1.1.2 [2018-08-28] Michael Granger <ged@FaerieMUD.org>
         | 
| 302 326 |  | 
| 303 327 | 
             
            - Don't generate aliases for JOHAB encoding.
         | 
| 304 328 | 
             
              This avoids linking to deprecated/private function rb_enc(db)_alias().
         | 
| 305 329 |  | 
| 306 330 |  | 
| 307 | 
            -
             | 
| 331 | 
            +
            ## v1.1.1 [2018-08-27] Michael Granger <ged@FaerieMUD.org>
         | 
| 308 332 |  | 
| 309 333 | 
             
            - Reduce deprecation warnings to only one message per deprecation.
         | 
| 310 334 |  | 
| 311 335 |  | 
| 312 | 
            -
             | 
| 336 | 
            +
            ## v1.1.0 [2018-08-24] Michael Granger <ged@FaerieMUD.org>
         | 
| 313 337 |  | 
| 314 338 | 
             
            Deprecated (disable warnings per PG_SKIP_DEPRECATION_WARNING=1):
         | 
| 315 339 | 
             
            - Forwarding conn.exec to conn.exec_params is deprecated.
         | 
| @@ -335,7 +359,7 @@ Result retrieval enhancements: | |
| 335 359 | 
             
            - Make the estimated PG::Result size available to ObjectSpace.memsize_of(result) .
         | 
| 336 360 |  | 
| 337 361 | 
             
            Type cast enhancements:
         | 
| 338 | 
            -
            - Replace Ruby code by a faster C implementation of the SimpleDecoder's timestamp decode functions. github #20
         | 
| 362 | 
            +
            - Replace Ruby code by a faster C implementation of the SimpleDecoder's timestamp decode functions. github [#20](https://github.com/ged/ruby-pg/pull/20)
         | 
| 339 363 | 
             
            - Interpret years with up to 7 digists and BC dates by timestamp decoder.
         | 
| 340 364 | 
             
            - Add text timestamp decoders for UTC vs. local timezone variations.
         | 
| 341 365 | 
             
            - Add text timestamp encoders for UTC timezone.
         | 
| @@ -350,12 +374,12 @@ Source code enhancements: | |
| 350 374 | 
             
            - Fix headers and permission bits of various repository files.
         | 
| 351 375 |  | 
| 352 376 | 
             
            Bugfixes:
         | 
| 353 | 
            -
            - Properly decode array with prepended dimensions. #272
         | 
| 377 | 
            +
            - Properly decode array with prepended dimensions. [#272](https://github.com/ged/ruby-pg/pull/272)
         | 
| 354 378 | 
             
              For now dimension decorations are ignored, but a correct Array is returned.
         | 
| 355 | 
            -
            - Array-Decoder: Avoid leaking memory when an Exception is raised while parsing. Fixes #279
         | 
| 379 | 
            +
            - Array-Decoder: Avoid leaking memory when an Exception is raised while parsing. Fixes [#279](https://github.com/ged/ruby-pg/pull/279)
         | 
| 356 380 |  | 
| 357 381 |  | 
| 358 | 
            -
             | 
| 382 | 
            +
            ## v1.0.0 [2018-01-10] Michael Granger <ged@FaerieMUD.org>
         | 
| 359 383 |  | 
| 360 384 | 
             
            Deprecated:
         | 
| 361 385 | 
             
            - Deprecate Ruby older than 2.2.
         | 
| @@ -372,16 +396,16 @@ Enhancements: | |
| 372 396 | 
             
              OpenSSL 1.1.0g.
         | 
| 373 397 |  | 
| 374 398 | 
             
            Bugfixes:
         | 
| 375 | 
            -
            - Fix URI detection for connection strings. #265 (thanks to jjoos)
         | 
| 399 | 
            +
            - Fix URI detection for connection strings. [#265](https://github.com/ged/ruby-pg/pull/265) (thanks to jjoos)
         | 
| 376 400 | 
             
            - MINGW: Workaround segfault due to GCC linker error in conjunction with MSVC.
         | 
| 377 401 | 
             
              This happens when linking to PostgreSQL-10.0-x64 from EnterpriseDB.
         | 
| 378 402 |  | 
| 379 403 | 
             
            Documentation fixes:
         | 
| 380 | 
            -
            - Add PostgreSQL version since when the given function is supported. #263
         | 
| 404 | 
            +
            - Add PostgreSQL version since when the given function is supported. [#263](https://github.com/ged/ruby-pg/pull/263)
         | 
| 381 405 | 
             
            - Better documentation to `encoder` and `decoder` arguments of COPY related methods.
         | 
| 382 406 |  | 
| 383 407 |  | 
| 384 | 
            -
             | 
| 408 | 
            +
            ## v0.21.0 [2017-06-12] Michael Granger <ged@FaerieMUD.org>
         | 
| 385 409 |  | 
| 386 410 | 
             
            Enhancements:
         | 
| 387 411 | 
             
            - Move add_dll_directory to the Runtime namespace for newest versions
         | 
| @@ -397,7 +421,7 @@ New Samples: | |
| 397 421 | 
             
            - Add an example of the nicer #copy_data way of doing `COPY`.
         | 
| 398 422 |  | 
| 399 423 |  | 
| 400 | 
            -
             | 
| 424 | 
            +
            ## v0.20.0 [2017-03-10] Michael Granger <ged@FaerieMUD.org>
         | 
| 401 425 |  | 
| 402 426 | 
             
            Enhancements:
         | 
| 403 427 | 
             
            - Update error codes to PostgreSQL-9.6
         | 
| @@ -406,22 +430,22 @@ Enhancements: | |
| 406 430 | 
             
            - Add support for RubyInstaller2 to Windows binary gems.
         | 
| 407 431 |  | 
| 408 432 | 
             
            Bugfixes:
         | 
| 409 | 
            -
            - Use secure JSON methods for JSON (de)serialisation. #248
         | 
| 433 | 
            +
            - Use secure JSON methods for JSON (de)serialisation. [#248](https://github.com/ged/ruby-pg/pull/248)
         | 
| 410 434 | 
             
            - Fix Result#inspect on a cleared result.
         | 
| 411 | 
            -
            - Fix test case that failed on Ruby-2.4. #255
         | 
| 435 | 
            +
            - Fix test case that failed on Ruby-2.4. [#255](https://github.com/ged/ruby-pg/pull/255)
         | 
| 412 436 |  | 
| 413 437 | 
             
            Documentation fixes:
         | 
| 414 438 | 
             
            - Talk about Integer instead of Fixnum.
         | 
| 415 439 | 
             
            - Fix method signature of Coder#encode.
         | 
| 416 440 |  | 
| 417 441 |  | 
| 418 | 
            -
             | 
| 442 | 
            +
            ## v0.19.0 [2016-09-21] Michael Granger <ged@FaerieMUD.org>
         | 
| 419 443 |  | 
| 420 444 | 
             
            - Deprecate Ruby 1.9
         | 
| 421 445 |  | 
| 422 446 | 
             
            Enhancements:
         | 
| 423 447 | 
             
            - Respect and convert character encoding of all strings sent
         | 
| 424 | 
            -
              to the server. #231
         | 
| 448 | 
            +
              to the server. [#231](https://github.com/ged/ruby-pg/pull/231)
         | 
| 425 449 | 
             
            - Add PostgreSQL-9.5 functions PQsslInUse(), PQsslAttribute()
         | 
| 426 450 | 
             
              and PQsslAttributeNames().
         | 
| 427 451 | 
             
            - Various documentation fixes and improvements.
         | 
| @@ -434,24 +458,24 @@ Enhancements: | |
| 434 458 | 
             
            - Allow build from git per bundler.
         | 
| 435 459 |  | 
| 436 460 | 
             
            Bugfixes:
         | 
| 437 | 
            -
            - Release GVL while calling PQsetClientEncoding(). #245
         | 
| 438 | 
            -
            - Add __EXTENSIONS__ to Solaris/SmartOS for Ruby >= 2.3.x. #236
         | 
| 461 | 
            +
            - Release GVL while calling PQsetClientEncoding(). [#245](https://github.com/ged/ruby-pg/pull/245)
         | 
| 462 | 
            +
            - Add __EXTENSIONS__ to Solaris/SmartOS for Ruby >= 2.3.x. [#236](https://github.com/ged/ruby-pg/pull/236)
         | 
| 439 463 | 
             
            - Fix wrong exception when running SQL while in Connection#copy_data
         | 
| 440 464 | 
             
              block for output
         | 
| 441 465 |  | 
| 442 466 |  | 
| 443 | 
            -
             | 
| 467 | 
            +
            ## v0.18.4 [2015-11-13] Michael Granger <ged@FaerieMUD.org>
         | 
| 444 468 |  | 
| 445 469 | 
             
            Enhancements:
         | 
| 446 | 
            -
            - Fixing compilation problems with Microsoft Visual Studio 2008. GH #10
         | 
| 447 | 
            -
            - Avoid name clash with xcode and jemalloc. PR#22, PR#23
         | 
| 470 | 
            +
            - Fixing compilation problems with Microsoft Visual Studio 2008. GH [#10](https://github.com/ged/ruby-pg/pull/10)
         | 
| 471 | 
            +
            - Avoid name clash with xcode and jemalloc. PR[#22](https://github.com/ged/ruby-pg/pull/22), PR[#23](https://github.com/ged/ruby-pg/pull/23)
         | 
| 448 472 |  | 
| 449 473 | 
             
            Bugfixes:
         | 
| 450 474 | 
             
            - Avoid segfault, when quote_ident or TextEncoder::Identifier
         | 
| 451 | 
            -
              is called with Array containing non-strings. #226
         | 
| 475 | 
            +
              is called with Array containing non-strings. [#226](https://github.com/ged/ruby-pg/pull/226)
         | 
| 452 476 |  | 
| 453 477 |  | 
| 454 | 
            -
             | 
| 478 | 
            +
            ## v0.18.3 [2015-09-03] Michael Granger <ged@FaerieMUD.org>
         | 
| 455 479 |  | 
| 456 480 | 
             
            Enhancements:
         | 
| 457 481 | 
             
            - Use rake-compiler-dock to build windows gems easily.
         | 
| @@ -459,12 +483,12 @@ Enhancements: | |
| 459 483 |  | 
| 460 484 | 
             
            Bugfixes:
         | 
| 461 485 | 
             
            - Fix data type resulting in wrong base64 encoding.
         | 
| 462 | 
            -
            - Change instance_of checks to kind_of for subclassing. #220
         | 
| 486 | 
            +
            - Change instance_of checks to kind_of for subclassing. [#220](https://github.com/ged/ruby-pg/pull/220)
         | 
| 463 487 | 
             
            - TextDecoder::Date returns an actual Ruby Date instead of a Time
         | 
| 464 488 | 
             
              (thanks to Thomas Ramfjord)
         | 
| 465 489 |  | 
| 466 490 |  | 
| 467 | 
            -
             | 
| 491 | 
            +
            ## v0.18.2 [2015-05-14] Michael Granger <ged@FaerieMUD.org>
         | 
| 468 492 |  | 
| 469 493 | 
             
            Enhancements:
         | 
| 470 494 |  | 
| @@ -474,22 +498,22 @@ Enhancements: | |
| 474 498 | 
             
            Bugfixes:
         | 
| 475 499 |  | 
| 476 500 | 
             
            - Speedups and fixes for PG::TextDecoder::Identifier and quoting behavior
         | 
| 477 | 
            -
            - Revert addition of PG::Connection#hostaddr [#202].
         | 
| 478 | 
            -
            - Fix decoding of fractional timezones and timestamps [#203]
         | 
| 501 | 
            +
            - Revert addition of PG::Connection#hostaddr [[#202](https://github.com/ged/ruby-pg/pull/202)].
         | 
| 502 | 
            +
            - Fix decoding of fractional timezones and timestamps [[#203](https://github.com/ged/ruby-pg/pull/203)]
         | 
| 479 503 | 
             
            - Fixes for non-C99 compilers
         | 
| 480 504 | 
             
            - Avoid possible symbol name clash when linking against static libpq.
         | 
| 481 505 |  | 
| 482 506 |  | 
| 483 | 
            -
             | 
| 507 | 
            +
            ## v0.18.1 [2015-01-05] Michael Granger <ged@FaerieMUD.org>
         | 
| 484 508 |  | 
| 485 | 
            -
            Correct the minimum compatible Ruby version to 1.9.3. #199
         | 
| 509 | 
            +
            Correct the minimum compatible Ruby version to 1.9.3. [#199](https://github.com/ged/ruby-pg/pull/199)
         | 
| 486 510 |  | 
| 487 511 |  | 
| 488 | 
            -
             | 
| 512 | 
            +
            ## v0.18.0 [2015-01-01] Michael Granger <ged@FaerieMUD.org>
         | 
| 489 513 |  | 
| 490 514 | 
             
            Bugfixes:
         | 
| 491 | 
            -
            - Fix OID to Integer mapping (it is unsigned now). #187
         | 
| 492 | 
            -
            - Fix possible segfault in conjunction with notice receiver. #185
         | 
| 515 | 
            +
            - Fix OID to Integer mapping (it is unsigned now). [#187](https://github.com/ged/ruby-pg/pull/187)
         | 
| 516 | 
            +
            - Fix possible segfault in conjunction with notice receiver. [#185](https://github.com/ged/ruby-pg/pull/185)
         | 
| 493 517 |  | 
| 494 518 | 
             
            Enhancements:
         | 
| 495 519 |  | 
| @@ -508,7 +532,7 @@ Enhancements: | |
| 508 532 |  | 
| 509 533 |  | 
| 510 534 |  | 
| 511 | 
            -
             | 
| 535 | 
            +
            ## v0.17.1 [2013-12-18] Michael Granger <ged@FaerieMUD.org>
         | 
| 512 536 |  | 
| 513 537 | 
             
            Bugfixes:
         | 
| 514 538 |  | 
| @@ -524,11 +548,11 @@ Documentation fixes: | |
| 524 548 | 
             
            - Fix documentation for PG::Connection::conndefaults.
         | 
| 525 549 |  | 
| 526 550 |  | 
| 527 | 
            -
             | 
| 551 | 
            +
            ## v0.17.0 [2013-09-15] Michael Granger <ged@FaerieMUD.org>
         | 
| 528 552 |  | 
| 529 553 | 
             
            Bugfixes:
         | 
| 530 554 |  | 
| 531 | 
            -
            - Fix crash by calling PQsend* and PQisBusy without GVL (#171).
         | 
| 555 | 
            +
            - Fix crash by calling PQsend* and PQisBusy without GVL ([#171](https://github.com/ged/ruby-pg/pull/171)).
         | 
| 532 556 |  | 
| 533 557 | 
             
            Enhancements:
         | 
| 534 558 |  | 
| @@ -539,18 +563,18 @@ Enhancements: | |
| 539 563 | 
             
              to stack method calls.
         | 
| 540 564 |  | 
| 541 565 |  | 
| 542 | 
            -
             | 
| 566 | 
            +
            ## v0.16.0 [2013-07-22] Michael Granger <ged@FaerieMUD.org>
         | 
| 543 567 |  | 
| 544 568 | 
             
            Bugfixes:
         | 
| 545 569 |  | 
| 546 570 | 
             
            - Avoid warnings about uninitialized instance variables.
         | 
| 547 571 | 
             
            - Use a more standard method of adding library and include directories.
         | 
| 548 | 
            -
              This fixes build on AIX (Github #7) and Solaris (#164).
         | 
| 572 | 
            +
              This fixes build on AIX (Github [#7](https://github.com/ged/ruby-pg/pull/7)) and Solaris ([#164](https://github.com/ged/ruby-pg/pull/164)).
         | 
| 549 573 | 
             
            - Cancel the running query, if a thread is about to be killed (e.g. by CTRL-C).
         | 
| 550 574 | 
             
            - Fix GVL issue with wait_for_notify/notifies and notice callbacks.
         | 
| 551 575 | 
             
            - Set proper encoding on the string returned by quote_ident, escape_literal
         | 
| 552 | 
            -
              and escape_identifier (#163).
         | 
| 553 | 
            -
            - Use nil as PG::Error#result in case of a NULL-result from libpq (#166).
         | 
| 576 | 
            +
              and escape_identifier ([#163](https://github.com/ged/ruby-pg/pull/163)).
         | 
| 577 | 
            +
            - Use nil as PG::Error#result in case of a NULL-result from libpq ([#166](https://github.com/ged/ruby-pg/pull/166)).
         | 
| 554 578 | 
             
            - Recalculate the timeout of conn#wait_for_notify and conn#block in case
         | 
| 555 579 | 
             
              of socket events that require re-runs of select().
         | 
| 556 580 |  | 
| @@ -560,20 +584,20 @@ Documentation fixes: | |
| 560 584 |  | 
| 561 585 | 
             
            Enhancements:
         | 
| 562 586 |  | 
| 563 | 
            -
            - Add unique exception classes for each PostgreSQL error type (#5).
         | 
| 564 | 
            -
            - Return result of the block in conn#transaction instead of nil (#158).
         | 
| 587 | 
            +
            - Add unique exception classes for each PostgreSQL error type ([#5](https://github.com/ged/ruby-pg/pull/5)).
         | 
| 588 | 
            +
            - Return result of the block in conn#transaction instead of nil ([#158](https://github.com/ged/ruby-pg/pull/158)).
         | 
| 565 589 | 
             
            - Allow 'rake compile' and 'rake gem' on non mercurial repos.
         | 
| 566 | 
            -
            - Add support for PG_DIAG_*_NAME error fields of PostgreSQL-9.3 (#161).
         | 
| 590 | 
            +
            - Add support for PG_DIAG_*_NAME error fields of PostgreSQL-9.3 ([#161](https://github.com/ged/ruby-pg/pull/161)).
         | 
| 567 591 |  | 
| 568 592 |  | 
| 569 | 
            -
             | 
| 593 | 
            +
            ## v0.15.1 [2013-04-08] Michael Granger <ged@FaerieMUD.org>
         | 
| 570 594 |  | 
| 571 595 | 
             
            Bugfixes:
         | 
| 572 596 |  | 
| 573 597 | 
             
            - Shorten application_name to avoid warnings about truncated identifier.
         | 
| 574 598 |  | 
| 575 599 |  | 
| 576 | 
            -
             | 
| 600 | 
            +
            ## v0.15.0 [2013-03-03] Michael Granger <ged@FaerieMUD.org>
         | 
| 577 601 |  | 
| 578 602 | 
             
            Bugfixes:
         | 
| 579 603 |  | 
| @@ -598,7 +622,7 @@ Enhancements: | |
| 598 622 | 
             
            - Refactor different variants of waiting for the connection socket.
         | 
| 599 623 | 
             
            - Make use of rb_thread_fd_select() on Ruby 1.9 and avoid deprecated
         | 
| 600 624 | 
             
              rb_thread_select().
         | 
| 601 | 
            -
            - Add an example of how to insert array data using a prepared statement (#145).
         | 
| 625 | 
            +
            - Add an example of how to insert array data using a prepared statement ([#145](https://github.com/ged/ruby-pg/pull/145)).
         | 
| 602 626 | 
             
            - Add continuous integration tests on travis-ci.org.
         | 
| 603 627 | 
             
            - Add PG::Result#each_row for iterative over result sets by row. Thanks to
         | 
| 604 628 | 
             
              Aaron Patterson for the patch.
         | 
| @@ -611,11 +635,11 @@ Specs: | |
| 611 635 | 
             
            - Avoid fork() in specs to allow usage on Windows and JRuby.
         | 
| 612 636 |  | 
| 613 637 |  | 
| 614 | 
            -
             | 
| 638 | 
            +
            ## v0.14.1 [2012-09-02] Michael Granger <ged@FaerieMUD.org>
         | 
| 615 639 |  | 
| 616 640 | 
             
            Important bugfix:
         | 
| 617 641 |  | 
| 618 | 
            -
            - Fix stack overflow bug in PG::Result#values and #column_values (#135). Thanks
         | 
| 642 | 
            +
            - Fix stack overflow bug in PG::Result#values and #column_values ([#135](https://github.com/ged/ruby-pg/pull/135)). Thanks
         | 
| 619 643 | 
             
              to everyone who reported the bug, and Lars Kanis especially for figuring out
         | 
| 620 644 | 
             
              the problem.
         | 
| 621 645 |  | 
| @@ -628,13 +652,13 @@ Documentation fixes: | |
| 628 652 | 
             
            - Add note about the usage scope of the result object received by the
         | 
| 629 653 | 
             
              #set_notice_receiver block. (Lars Kanis)
         | 
| 630 654 | 
             
            - Add PGRES_COPY_BOTH to documentation of PG::Result#result_status. (Lars Kanis)
         | 
| 631 | 
            -
            - Add some documentation to PG::Result#fnumber (fix for #139)
         | 
| 655 | 
            +
            - Add some documentation to PG::Result#fnumber (fix for [#139](https://github.com/ged/ruby-pg/pull/139))
         | 
| 632 656 |  | 
| 633 657 |  | 
| 634 | 
            -
             | 
| 658 | 
            +
            ## v0.14.0 [2012-06-17] Michael Granger <ged@FaerieMUD.org>
         | 
| 635 659 |  | 
| 636 660 | 
             
            Bugfixes:
         | 
| 637 | 
            -
              #47, #104
         | 
| 661 | 
            +
              [#47](https://github.com/ged/ruby-pg/pull/47), [#104](https://github.com/ged/ruby-pg/pull/104)
         | 
| 638 662 |  | 
| 639 663 |  | 
| 640 664 | 
             
            New Methods for PostgreSQL 9 and async API support:
         | 
| @@ -659,20 +683,20 @@ monitoring for replication lag, shipping WAL files for replication, | |
| 659 683 | 
             
            automated tablespace partitioning, etc. See the samples/ directory.
         | 
| 660 684 |  | 
| 661 685 |  | 
| 662 | 
            -
             | 
| 686 | 
            +
            ## v0.13.2 [2012-02-22] Michael Granger <ged@FaerieMUD.org>
         | 
| 663 687 |  | 
| 664 688 | 
             
            - Make builds against PostgreSQL earlier than 8.3 fail with a descriptive
         | 
| 665 689 | 
             
              message instead of a compile failure.
         | 
| 666 690 |  | 
| 667 691 |  | 
| 668 | 
            -
             | 
| 692 | 
            +
            ## v0.13.1 [2012-02-12] Michael Granger <ged@FaerieMUD.org>
         | 
| 669 693 |  | 
| 670 694 | 
             
            - Made use of a finished PG::Connection raise a PG::Error instead of
         | 
| 671 | 
            -
              a fatal error (#110).
         | 
| 672 | 
            -
            - Added missing BSDL license file (#108)
         | 
| 695 | 
            +
              a fatal error ([#110](https://github.com/ged/ruby-pg/pull/110)).
         | 
| 696 | 
            +
            - Added missing BSDL license file ([#108](https://github.com/ged/ruby-pg/pull/108))
         | 
| 673 697 |  | 
| 674 698 |  | 
| 675 | 
            -
             | 
| 699 | 
            +
            ## v0.13.0 [2012-02-09] Michael Granger <ged@FaerieMUD.org>
         | 
| 676 700 |  | 
| 677 701 | 
             
            Reorganization of modules/classes to be better Ruby citizens (with backward-compatible aliases):
         | 
| 678 702 | 
             
            - Created toplevel namespace 'PG' to correspond with the gem name.
         | 
| @@ -701,23 +725,23 @@ Bugfixes: | |
| 701 725 |  | 
| 702 726 |  | 
| 703 727 |  | 
| 704 | 
            -
             | 
| 728 | 
            +
            ## v0.12.2 [2012-01-03] Michael Granger <ged@FaerieMUD.org>
         | 
| 705 729 |  | 
| 706 730 | 
             
            - Fix for the 1.8.7 breakage introduced by the st.h fix for alternative Ruby
         | 
| 707 | 
            -
              implementations (#97 and #98). Thanks to Lars Kanis for the patch.
         | 
| 708 | 
            -
            - Encode error messages with the connection's encoding under 1.9 (#96)
         | 
| 731 | 
            +
              implementations ([#97](https://github.com/ged/ruby-pg/pull/97) and [#98](https://github.com/ged/ruby-pg/pull/98)). Thanks to Lars Kanis for the patch.
         | 
| 732 | 
            +
            - Encode error messages with the connection's encoding under 1.9 ([#96](https://github.com/ged/ruby-pg/pull/96))
         | 
| 709 733 |  | 
| 710 734 |  | 
| 711 | 
            -
             | 
| 735 | 
            +
            ## v0.12.1 [2011-12-14] Michael Granger <ged@FaerieMUD.org>
         | 
| 712 736 |  | 
| 713 737 | 
             
            - Made rake-compiler a dev dependency, as Rubygems doesn't use the Rakefile
         | 
| 714 738 | 
             
              for compiling the extension. Thanks to eolamey@bitbucket and Jeremy Evans
         | 
| 715 739 | 
             
              for pointing this out.
         | 
| 716 740 | 
             
            - Added an explicit include for ruby/st.h for implementations that need it
         | 
| 717 | 
            -
              (fixes #95).
         | 
| 741 | 
            +
              (fixes [#95](https://github.com/ged/ruby-pg/pull/95)).
         | 
| 718 742 |  | 
| 719 743 |  | 
| 720 | 
            -
             | 
| 744 | 
            +
            ## v0.12.0 [2011-12-07] Michael Granger <ged@FaerieMUD.org>
         | 
| 721 745 |  | 
| 722 746 | 
             
            - PGconn#wait_for_notify
         | 
| 723 747 | 
             
              * send nil as the payload argument if the NOTIFY didn't have one.
         | 
| @@ -728,7 +752,7 @@ Bugfixes: | |
| 728 752 | 
             
              (Brian Weaver).
         | 
| 729 753 | 
             
            - Fixes for Win32 async queries (Rafał Bigaj)
         | 
| 730 754 | 
             
            - Memory leak fixed: Closing opened WSA event. (rafal)
         | 
| 731 | 
            -
            - Fixes for #66 Win32 asynchronous queries hang on connection
         | 
| 755 | 
            +
            - Fixes for [#66](https://github.com/ged/ruby-pg/pull/66) Win32 asynchronous queries hang on connection
         | 
| 732 756 | 
             
              error. (rafal)
         | 
| 733 757 | 
             
            - Fixed a typo in PGconn#error_message's documentation
         | 
| 734 758 | 
             
            - fixing unused variable warnings for ruby 1.9.3 (Aaron Patterson)
         | 
| @@ -737,7 +761,7 @@ Bugfixes: | |
| 737 761 | 
             
            - Updates for the Win32 binary gem builds (Lars Kanis)
         | 
| 738 762 |  | 
| 739 763 |  | 
| 740 | 
            -
             | 
| 764 | 
            +
            ## v0.11.0 [2011-02-09] Michael Granger <ged@FaerieMUD.org>
         | 
| 741 765 |  | 
| 742 766 | 
             
            Enhancements:
         | 
| 743 767 |  | 
| @@ -746,19 +770,19 @@ Enhancements: | |
| 746 770 | 
             
              the patch.
         | 
| 747 771 |  | 
| 748 772 |  | 
| 749 | 
            -
             | 
| 773 | 
            +
            ## v0.10.1 [2011-01-19] Michael Granger <ged@FaerieMUD.org>
         | 
| 750 774 |  | 
| 751 775 | 
             
            Bugfixes:
         | 
| 752 776 |  | 
| 753 777 | 
             
            * Add an include guard for pg.h
         | 
| 754 778 | 
             
            * Simplify the common case require of the ext
         | 
| 755 779 | 
             
            * Include the extconf header
         | 
| 756 | 
            -
            * Fix compatibility with versions of PostgreSQL without PQgetCancel. (fixes #36)
         | 
| 757 | 
            -
            * Fix require for natively-compiled extension under Windows. (fixes #55)
         | 
| 758 | 
            -
            * Change rb_yield_splat() to rb_yield_values() for compatibility with Rubinius. (fixes #54)
         | 
| 780 | 
            +
            * Fix compatibility with versions of PostgreSQL without PQgetCancel. (fixes [#36](https://github.com/ged/ruby-pg/pull/36))
         | 
| 781 | 
            +
            * Fix require for natively-compiled extension under Windows. (fixes [#55](https://github.com/ged/ruby-pg/pull/55))
         | 
| 782 | 
            +
            * Change rb_yield_splat() to rb_yield_values() for compatibility with Rubinius. (fixes [#54](https://github.com/ged/ruby-pg/pull/54))
         | 
| 759 783 |  | 
| 760 784 |  | 
| 761 | 
            -
             | 
| 785 | 
            +
            ## v0.10.0 [2010-12-01] Michael Granger <ged@FaerieMUD.org>
         | 
| 762 786 |  | 
| 763 787 | 
             
            Enhancements:
         | 
| 764 788 |  | 
| @@ -770,11 +794,11 @@ Bugfixes: | |
| 770 794 | 
             
            * Fixed issue with PGconn#wait_for_notify that caused it to miss notifications that happened after
         | 
| 771 795 | 
             
              the LISTEN but before the wait_for_notify.
         | 
| 772 796 |  | 
| 773 | 
            -
             | 
| 797 | 
            +
            ## v0.9.0 [2010-02-28] Michael Granger <ged@FaerieMUD.org>
         | 
| 774 798 |  | 
| 775 799 | 
             
            Bugfixes.
         | 
| 776 800 |  | 
| 777 | 
            -
             | 
| 801 | 
            +
            ## v0.8.0 [2009-03-28] Jeff Davis <davis.jeffrey@gmail.com>
         | 
| 778 802 |  | 
| 779 803 | 
             
            Bugfixes, better Windows support.
         | 
| 780 804 |  |