pg 1.4.4 → 1.5.9

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.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/Gemfile +6 -0
  4. data/{History.rdoc → History.md} +303 -151
  5. data/README.ja.md +300 -0
  6. data/README.md +286 -0
  7. data/Rakefile +16 -4
  8. data/Rakefile.cross +15 -14
  9. data/certs/kanis@comcard.de.pem +20 -0
  10. data/certs/larskanis-2023.pem +24 -0
  11. data/certs/larskanis-2024.pem +24 -0
  12. data/ext/errorcodes.def +8 -5
  13. data/ext/errorcodes.txt +3 -5
  14. data/ext/extconf.rb +7 -0
  15. data/ext/pg.c +15 -30
  16. data/ext/pg.h +10 -6
  17. data/ext/pg_binary_decoder.c +81 -0
  18. data/ext/pg_binary_encoder.c +224 -0
  19. data/ext/pg_coder.c +16 -7
  20. data/ext/pg_connection.c +220 -82
  21. data/ext/pg_copy_coder.c +315 -22
  22. data/ext/pg_record_coder.c +11 -10
  23. data/ext/pg_result.c +93 -19
  24. data/ext/pg_text_decoder.c +31 -10
  25. data/ext/pg_text_encoder.c +38 -19
  26. data/ext/pg_tuple.c +34 -31
  27. data/ext/pg_type_map.c +3 -2
  28. data/ext/pg_type_map_all_strings.c +2 -2
  29. data/ext/pg_type_map_by_class.c +5 -3
  30. data/ext/pg_type_map_by_column.c +7 -3
  31. data/ext/pg_type_map_by_oid.c +7 -4
  32. data/ext/pg_type_map_in_ruby.c +5 -2
  33. data/lib/pg/basic_type_map_based_on_result.rb +21 -1
  34. data/lib/pg/basic_type_map_for_queries.rb +19 -10
  35. data/lib/pg/basic_type_map_for_results.rb +26 -3
  36. data/lib/pg/basic_type_registry.rb +44 -34
  37. data/lib/pg/binary_decoder/date.rb +9 -0
  38. data/lib/pg/binary_decoder/timestamp.rb +26 -0
  39. data/lib/pg/binary_encoder/timestamp.rb +20 -0
  40. data/lib/pg/coder.rb +15 -13
  41. data/lib/pg/connection.rb +158 -64
  42. data/lib/pg/exceptions.rb +13 -0
  43. data/lib/pg/text_decoder/date.rb +21 -0
  44. data/lib/pg/text_decoder/inet.rb +9 -0
  45. data/lib/pg/text_decoder/json.rb +17 -0
  46. data/lib/pg/text_decoder/numeric.rb +9 -0
  47. data/lib/pg/text_decoder/timestamp.rb +30 -0
  48. data/lib/pg/text_encoder/date.rb +13 -0
  49. data/lib/pg/text_encoder/inet.rb +31 -0
  50. data/lib/pg/text_encoder/json.rb +17 -0
  51. data/lib/pg/text_encoder/numeric.rb +9 -0
  52. data/lib/pg/text_encoder/timestamp.rb +24 -0
  53. data/lib/pg/version.rb +1 -1
  54. data/lib/pg.rb +65 -15
  55. data/pg.gemspec +7 -3
  56. data/rakelib/task_extension.rb +1 -1
  57. data.tar.gz.sig +2 -4
  58. metadata +104 -46
  59. metadata.gz.sig +0 -0
  60. data/.appveyor.yml +0 -36
  61. data/.gems +0 -6
  62. data/.gemtest +0 -0
  63. data/.github/workflows/binary-gems.yml +0 -86
  64. data/.github/workflows/source-gem.yml +0 -131
  65. data/.gitignore +0 -13
  66. data/.hgsigs +0 -34
  67. data/.hgtags +0 -41
  68. data/.irbrc +0 -23
  69. data/.pryrc +0 -23
  70. data/.tm_properties +0 -21
  71. data/.travis.yml +0 -49
  72. data/README.ja.rdoc +0 -13
  73. data/README.rdoc +0 -233
  74. data/lib/pg/binary_decoder.rb +0 -23
  75. data/lib/pg/constants.rb +0 -12
  76. data/lib/pg/text_decoder.rb +0 -46
  77. data/lib/pg/text_encoder.rb +0 -59
@@ -1,64 +1,216 @@
1
- == v1.4.4 [2022-10-11] Lars Kanis <lars@greiz-reinsdorf.de>
1
+ ## v1.5.9 [2024-10-24] Lars Kanis <lars@greiz-reinsdorf.de>
2
2
 
3
- - Revert to let libpq do the host iteration while connecting. #485
3
+ - Enable thread safety in static OpenSSL build for Windows. [#595](https://github.com/ged/ruby-pg/pull/595)
4
+ - Remove raising `conect_timeout` from 1 to 2 seconds. [#590](https://github.com/ged/ruby-pg/pull/590)
5
+ - Fix binary copy_data in Ractor context. [#594](https://github.com/ged/ruby-pg/pull/594)
6
+ - Exclude CI files and hidden files from built gem. [#591](https://github.com/ged/ruby-pg/pull/591)
7
+ This is to simplify security inspection.
8
+ - Update error classes to PostgreSQL-17.
9
+ - Update Windows fat binary gem to OpenSSL-3.4.0 and PostgreSQL-17.0.
10
+
11
+
12
+ ## v1.5.8 [2024-09-06] Lars Kanis <lars@greiz-reinsdorf.de>
13
+
14
+ - Fix host list duplication every time conn.reset is used. [#586](https://github.com/ged/ruby-pg/pull/586)
15
+ - Add default decoder for anonymous record types to BasicTypeRegistry [#579](https://github.com/ged/ruby-pg/pull/579)
16
+ - Update Windows fat binary gem to OpenSSL-3.3.2 and PostgreSQL-16.4.
17
+
18
+
19
+ ## v1.5.7 [2024-07-28] Lars Kanis <lars@greiz-reinsdorf.de>
20
+
21
+ - Remove deprecated use of fptr->fd.[#562](https://github.com/ged/ruby-pg/pull/562)
22
+ Direct access is disallowed since ruby-3.4.
23
+ - Make `pgconn_connect_poll` close the socket prior to calling `PQconnectPoll`. [#564](https://github.com/ged/ruby-pg/pull/564)
24
+ This could result in an exception while connecting when used multi threaded.
25
+ - Fix several typos and improve spelling in documentation and code. [#566](https://github.com/ged/ruby-pg/pull/566)
26
+ - Add missing PG::RollbackTransaction as an option to exit conn.transaction. [#560](https://github.com/ged/ruby-pg/pull/560)
27
+ Usage like in rails: https://api.rubyonrails.org/classes/ActiveRecord/Rollback.html
28
+ - Don't print a warning when bigdecimal is required on ruby-3.4+ [#574](https://github.com/ged/ruby-pg/pull/574)
29
+ - Update Windows fat binary gem to OpenSSL-3.3.1 and PostgreSQL-16.3.
30
+
31
+
32
+ ## v1.5.6 [2024-03-01] Lars Kanis <lars@greiz-reinsdorf.de>
33
+
34
+ - Renew address resolution (DNS) in conn.reset. [#558](https://github.com/ged/ruby-pg/pull/558)
35
+ This is important, if DNS is used for load balancing, etc.
36
+ - Make bigdecimal an optional dependency. [#556](https://github.com/ged/ruby-pg/pull/556)
37
+ It's a gem in ruby-3.4+, so that users shouldn't be forced to use it.
38
+
39
+
40
+ ## v1.5.5 [2024-02-15] Lars Kanis <lars@greiz-reinsdorf.de>
41
+
42
+ - Explicitly retype timespec fields to int64_t to fix compatibility with 32bit arches. [#547](https://github.com/ged/ruby-pg/pull/547)
43
+ - Fix possible buffer overflows in PG::BinaryDecoder::CopyRow on 32 bit systems. [#548](https://github.com/ged/ruby-pg/pull/548)
44
+ - Add binary Windows gems for Ruby 3.3.
45
+ - Update Windows fat binary gem to OpenSSL-3.2.1 and PostgreSQL-16.2.
46
+
47
+
48
+ ## v1.5.4 [2023-09-01] Lars Kanis <lars@greiz-reinsdorf.de>
49
+
50
+ - Fix compiling the pg extension with MSVC 2022. [#535](https://github.com/ged/ruby-pg/pull/535)
51
+ - Set PG::Connection's encoding even if setting client_encoding on connection startup fails. [#541](https://github.com/ged/ruby-pg/pull/541)
52
+ - Don't set the server's client_encoding if it's unnecessary. [#542](https://github.com/ged/ruby-pg/pull/542)
53
+ This is important for connection proxies, who disallow configuration settings.
54
+ - Update Windows fat binary gem to OpenSSL-3.1.2 and PostgreSQL-15.4.
55
+
56
+
57
+ ## v1.5.3 [2023-04-28] Lars Kanis <lars@greiz-reinsdorf.de>
58
+
59
+ - Fix possible segfault when creating a new PG::Result with type map. [#530](https://github.com/ged/ruby-pg/pull/530)
60
+ - Add category to deprecation warnings of Coder.new, so that they are suppressed for most users. [#528](https://github.com/ged/ruby-pg/pull/528)
61
+
62
+
63
+ ## v1.5.2 [2023-04-26] Lars Kanis <lars@greiz-reinsdorf.de>
64
+
65
+ - Fix regression in copy_data regarding binary format when using no coder. [#527](https://github.com/ged/ruby-pg/pull/527)
66
+
67
+
68
+ ## v1.5.1 [2023-04-24] Lars Kanis <lars@greiz-reinsdorf.de>
69
+
70
+ - Don't overwrite flags of timestamp coders. [#524](https://github.com/ged/ruby-pg/pull/524)
71
+ Fixes a regression in rails: https://github.com/rails/rails/issues/48049
72
+
73
+
74
+ ## v1.5.0 [2023-04-24] Lars Kanis <lars@greiz-reinsdorf.de>
75
+
76
+ Enhancements:
77
+
78
+ - Better support for binary format:
79
+ - Extend PG::Connection#copy_data to better support binary transfers [#511](https://github.com/ged/ruby-pg/pull/511)
80
+ - Add binary COPY encoder and decoder:
81
+ * PG::BinaryEncoder::CopyRow
82
+ * PG::BinaryDecoder::CopyRow
83
+ - Add binary timestamp encoders:
84
+ * PG::BinaryEncoder::TimestampUtc
85
+ * PG::BinaryEncoder::TimestampLocal
86
+ * PG::BinaryEncoder::Timestamp
87
+ - Add PG::BinaryEncoder::Float4 and Float8
88
+ - Add binary date type: [#515](https://github.com/ged/ruby-pg/pull/515)
89
+ * PG::BinaryEncoder::Date
90
+ * PG::BinaryDecoder::Date
91
+ - Add PG::Result#binary_tuples [#511](https://github.com/ged/ruby-pg/pull/511)
92
+ It is useful for COPY and not deprecated in that context.
93
+ - Add PG::TextEncoder::Bytea to BasicTypeRegistry [#506](https://github.com/ged/ruby-pg/pull/506)
94
+ - Ractor support: [#519](https://github.com/ged/ruby-pg/pull/519)
95
+ - Pg is now fully compatible with Ractor introduced in Ruby-3.0 and doesn't use any global mutable state.
96
+ - All type en/decoders and type maps are shareable between ractors if they are made frozen by `Ractor.make_shareable`.
97
+ - Also frozen PG::Result and PG::Tuple objects can be shared.
98
+ - All frozen objects (except PG::Connection) can still be used to do communication with the PostgreSQL server or to read retrieved data.
99
+ - PG::Connection is not shareable and must be created within each Ractor to establish a dedicated connection.
100
+ - Use keyword arguments instead of hashes for Coder initialization and #to_h. [#511](https://github.com/ged/ruby-pg/pull/511)
101
+ - Add PG::Result.res_status as a class method and extend Result#res_status to return the status of self. [#508](https://github.com/ged/ruby-pg/pull/508)
102
+ - Reduce the number of files loaded at `require 'pg'` by using autoload. [#513](https://github.com/ged/ruby-pg/pull/513)
103
+ Previously stdlib libraries `date`, `json`, `ipaddr` and `bigdecimal` were static dependencies, but now only `socket` is mandatory.
104
+ - Improve garbage collector performance by adding write barriers to all PG classes. [#518](https://github.com/ged/ruby-pg/pull/518)
105
+ Now they can be promoted to the old generation, which means they only get marked on major GC.
106
+ - New method PG::Connection#check_socket to check the socket state. [#521](https://github.com/ged/ruby-pg/pull/521)
107
+ - Mark many internal constants as private. [#522](https://github.com/ged/ruby-pg/pull/522)
108
+ - Update Windows fat binary gem to OpenSSL-3.1.0.
109
+
110
+ Bugfixes:
111
+
112
+ - Move nfields-check of stream-methods after result status check [#507](https://github.com/ged/ruby-pg/pull/507)
113
+ This ensures that the nfield-check doesn't hide errors like statement timeout.
114
+
115
+ Removed:
116
+
117
+ - Remove deprecated PG::BasicTypeRegistry.register_type and co. [Part of #519](https://github.com/ged/ruby-pg/commit/2919ee1a0c6b216e18e1d06c95c2616ef69d2f97)
118
+ - Add deprecation warning about PG::Coder initialization per Hash argument. [#514](https://github.com/ged/ruby-pg/pull/514)
119
+ It is recommended to use keyword arguments instead.
120
+ - The internal encoding cache was removed. [#516](https://github.com/ged/ruby-pg/pull/516)
121
+ It shouldn't have a practical performance impact.
122
+
123
+ Repository:
124
+
125
+ - `rake test` tries to find PostgreSQL server commands by pg_config [#503](https://github.com/ged/ruby-pg/pull/503)
126
+ So there's no need to set the PATH manually any longer.
127
+
128
+
129
+ ## v1.4.6 [2023-02-26] Lars Kanis <lars@greiz-reinsdorf.de>
130
+
131
+ - Add japanese README file. [#502](https://github.com/ged/ruby-pg/pull/502)
132
+ - Improve `discard_results` to not block under memory pressure. [#500](https://github.com/ged/ruby-pg/pull/500)
133
+ - 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.
134
+ Previously the "no COPY in progress" `PG::Error` was less specific. [#499](https://github.com/ged/ruby-pg/pull/499)
135
+ - Make sure an error in `put_copy_end` of `copy_data` doesn't lose the original exception.
136
+ - Disable nonblocking mode while large object calls. [#498](https://github.com/ged/ruby-pg/pull/498)
137
+ Since pg-1.3.0 libpq's "lo_*" calls failed when a bigger amount of data was transferred.
138
+ This specifically forced the `active_storage-postgresql` gem to use pg-1.2.3.
139
+ - Add rdoc options to gemspec, so that "gem install" generates complete offline documentation.
140
+ - Add binary Windows gems for Ruby 3.2.
141
+ - Update Windows fat binary gem to PostgreSQL-15.2 and OpenSSL-3.0.8.
142
+
143
+
144
+ ## v1.4.5 [2022-11-17] Lars Kanis <lars@greiz-reinsdorf.de>
145
+
146
+ - Return the libpq default port when blank in conninfo. [#492](https://github.com/ged/ruby-pg/pull/492)
147
+ - Add PG::DEF_PGPORT constant and use it in specs. [#492](https://github.com/ged/ruby-pg/pull/492)
148
+ - Fix name resolution when empty or `nil` port is given.
149
+ - Update error codes to PostgreSQL-15.
150
+ - Update Windows fat binary gem to PostgreSQL-15.1 AND OpenSSL-1.1.1s.
151
+
152
+
153
+ ## v1.4.4 [2022-10-11] Lars Kanis <lars@greiz-reinsdorf.de>
154
+
155
+ - Revert to let libpq do the host iteration while connecting. [#485](https://github.com/ged/ruby-pg/pull/485)
4
156
  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
157
+ - Handle multiple hosts in the connection string, where only one host has writable session. [#476](https://github.com/ged/ruby-pg/pull/476)
158
+ - Add some useful information to PG::Connection#inspect. [#487](https://github.com/ged/ruby-pg/pull/487)
159
+ - Support new pgresult_stream_any API in sequel_pg-1.17.0. [#481](https://github.com/ged/ruby-pg/pull/481)
8
160
  - Update Windows fat binary gem to PostgreSQL-14.5.
9
161
 
10
162
 
11
- == v1.4.3 [2022-08-09] Lars Kanis <lars@greiz-reinsdorf.de>
163
+ ## v1.4.3 [2022-08-09] Lars Kanis <lars@greiz-reinsdorf.de>
12
164
 
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
165
+ - 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)
166
+ - Use Encoding::BINARY for JOHAB, removing some useless code. [#472](https://github.com/ged/ruby-pg/pull/472)
15
167
 
16
168
 
17
- == v1.4.2 [2022-07-27] Lars Kanis <lars@greiz-reinsdorf.de>
169
+ ## v1.4.2 [2022-07-27] Lars Kanis <lars@greiz-reinsdorf.de>
18
170
 
19
171
  Bugfixes:
20
172
 
21
- - Properly handle empty host parameter when connecting. #471
173
+ - Properly handle empty host parameter when connecting. [#471](https://github.com/ged/ruby-pg/pull/471)
22
174
  - Update Windows fat binary gem to OpenSSL-1.1.1q.
23
175
 
24
176
 
25
- == v1.4.1 [2022-06-24] Lars Kanis <lars@greiz-reinsdorf.de>
177
+ ## v1.4.1 [2022-06-24] Lars Kanis <lars@greiz-reinsdorf.de>
26
178
 
27
179
  Bugfixes:
28
180
 
29
- - Fix another ruby-2.7 keyword warning. #465
30
- - Allow PG::Error to be created without arguments. #466
181
+ - Fix another ruby-2.7 keyword warning. [#465](https://github.com/ged/ruby-pg/pull/465)
182
+ - Allow PG::Error to be created without arguments. [#466](https://github.com/ged/ruby-pg/pull/466)
31
183
 
32
184
 
33
- == v1.4.0 [2022-06-20] Lars Kanis <lars@greiz-reinsdorf.de>
185
+ ## v1.4.0 [2022-06-20] Lars Kanis <lars@greiz-reinsdorf.de>
34
186
 
35
187
  Added:
36
188
 
37
- - Add PG::Connection#hostaddr, present since PostgreSQL-12. #453
38
- - Add PG::Connection.conninfo_parse to wrap PQconninfoParse. #453
189
+ - Add PG::Connection#hostaddr, present since PostgreSQL-12. [#453](https://github.com/ged/ruby-pg/pull/453)
190
+ - Add PG::Connection.conninfo_parse to wrap PQconninfoParse. [#453](https://github.com/ged/ruby-pg/pull/453)
39
191
 
40
192
  Bugfixes:
41
193
 
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
194
+ - Try IPv6 and IPv4 addresses, if DNS resolves to both. [#452](https://github.com/ged/ruby-pg/pull/452)
195
+ - Re-add block-call semantics to PG::Connection.new accidentally removed in pg-1.3.0. [#454](https://github.com/ged/ruby-pg/pull/454)
196
+ - Handle client error after all data consumed in #copy_data for output. [#455](https://github.com/ged/ruby-pg/pull/455)
197
+ - Avoid spurious keyword argument warning on Ruby 2.7. [#456](https://github.com/ged/ruby-pg/pull/456)
198
+ - Change connection setup to respect connect_timeout parameter. [#459](https://github.com/ged/ruby-pg/pull/459)
199
+ - Fix indefinite hang in case of connection error on Windows [#458](https://github.com/ged/ruby-pg/pull/458)
200
+ - Set connection attribute of PG::Error in various places where it was missing. [#461](https://github.com/ged/ruby-pg/pull/461)
201
+ - Fix transaction leak on early break/return. [#463](https://github.com/ged/ruby-pg/pull/463)
50
202
  - Update Windows fat binary gem to OpenSSL-1.1.1o and PostgreSQL-14.4.
51
203
 
52
204
  Enhancements:
53
205
 
54
- - Don't flush at each put_copy_data call, but flush at get_result. #462
206
+ - Don't flush at each put_copy_data call, but flush at get_result. [#462](https://github.com/ged/ruby-pg/pull/462)
55
207
 
56
208
 
57
- == v1.3.5 [2022-03-31] Lars Kanis <lars@greiz-reinsdorf.de>
209
+ ## v1.3.5 [2022-03-31] Lars Kanis <lars@greiz-reinsdorf.de>
58
210
 
59
211
  Bugfixes:
60
212
 
61
- - Handle PGRES_COMMAND_OK in pgresult_stream_any. #447
213
+ - Handle PGRES_COMMAND_OK in pgresult_stream_any. [#447](https://github.com/ged/ruby-pg/pull/447)
62
214
  Fixes usage when trying to stream the result of a procedure call that returns no results.
63
215
 
64
216
  Enhancements:
@@ -67,74 +219,74 @@ Enhancements:
67
219
  Keeping define_default_types for compatibility.
68
220
  - BasicTypeRegistry: return self instead of objects by accident.
69
221
  This allows call chaining.
70
- - Add some April fun. #449
222
+ - Add some April fun. [#449](https://github.com/ged/ruby-pg/pull/449)
71
223
 
72
224
  Documentation:
73
225
  - Refine documentation of conn.socket_io and conn.connect_poll
74
226
 
75
227
 
76
- == v1.3.4 [2022-03-10] Lars Kanis <lars@greiz-reinsdorf.de>
228
+ ## v1.3.4 [2022-03-10] Lars Kanis <lars@greiz-reinsdorf.de>
77
229
 
78
230
  Bugfixes:
79
231
 
80
- - Don't leak IO in case of connection errors. #439
232
+ - Don't leak IO in case of connection errors. [#439](https://github.com/ged/ruby-pg/pull/439)
81
233
  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
234
+ - Fix a performance regression in conn.get_result noticed in single row mode. [#442](https://github.com/ged/ruby-pg/pull/442)
235
+ - Fix occasional error Errno::EBADF (Bad file descriptor) while connecting. [#444](https://github.com/ged/ruby-pg/pull/444)
236
+ - Fix compatibility of res.stream_each* methods with Fiber.scheduler. [#446](https://github.com/ged/ruby-pg/pull/446)
237
+ - Remove FL_TEST and FL_SET, which are MRI-internal. [#437](https://github.com/ged/ruby-pg/pull/437)
86
238
 
87
239
  Enhancements:
88
240
 
89
- - Allow pgresult_stream_any to be used by sequel_pg. #443
241
+ - Allow pgresult_stream_any to be used by sequel_pg. [#443](https://github.com/ged/ruby-pg/pull/443)
90
242
 
91
243
 
92
- == v1.3.3 [2022-02-22] Lars Kanis <lars@greiz-reinsdorf.de>
244
+ ## v1.3.3 [2022-02-22] Lars Kanis <lars@greiz-reinsdorf.de>
93
245
 
94
246
  Bugfixes:
95
247
 
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
248
+ - Fix omission of the third digit of IPv4 addresses in connection URI. [#435](https://github.com/ged/ruby-pg/pull/435)
249
+ - 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
250
 
99
251
 
100
- == v1.3.2 [2022-02-14] Lars Kanis <lars@greiz-reinsdorf.de>
252
+ ## v1.3.2 [2022-02-14] Lars Kanis <lars@greiz-reinsdorf.de>
101
253
 
102
254
  Bugfixes:
103
255
 
104
- - Cancel only active query after failing transaction. #430
256
+ - Cancel only active query after failing transaction. [#430](https://github.com/ged/ruby-pg/pull/430)
105
257
  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
258
+ - Fix String objects with non-applied encoding when using COPY or record decoders. [#427](https://github.com/ged/ruby-pg/pull/427)
107
259
  - Update Windows fat binary gem to PostgreSQL-14.2.
108
260
 
109
261
  Enhancements:
110
262
 
111
263
  - 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
264
+ - 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
265
 
114
266
 
115
- == v1.3.1 [2022-02-01] Michael Granger <ged@FaerieMUD.org>
267
+ ## v1.3.1 [2022-02-01] Michael Granger <ged@FaerieMUD.org>
116
268
 
117
269
  Bugfixes:
118
270
 
119
- - Fix wrong handling of socket writability on Windows introduced in #417.
271
+ - Fix wrong handling of socket writability on Windows introduced in [#417](https://github.com/ged/ruby-pg/pull/417).
120
272
  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
273
+ - Fix error in PG.version_string(true). [#419](https://github.com/ged/ruby-pg/pull/419)
274
+ - 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
275
 
124
276
  Enhancements:
125
277
 
126
278
  - Raise an error when conn.copy_data is used in nonblocking mode.
127
279
 
128
280
 
129
- == v1.3.0 [2022-01-20] Michael Granger <ged@FaerieMUD.org>
281
+ ## v1.3.0 [2022-01-20] Michael Granger <ged@FaerieMUD.org>
130
282
 
131
283
  Install Enhancements:
132
- - Print some install help if libpq wasn't found. #396
284
+ - Print some install help if libpq wasn't found. [#396](https://github.com/ged/ruby-pg/pull/396)
133
285
  This should help to pick the necessary package without googling.
134
286
  - Update Windows fat binary gem to OpenSSL-1.1.1m and PostgreSQL-14.1.
135
287
  - 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
288
+ - 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)
289
+ - Fall back to pkg-config if pg_config is not found. [#380](https://github.com/ged/ruby-pg/pull/380)
138
290
  - Add option to extconf.rb to disable nogvl-wrapping of libpq functions.
139
291
  All methods (except PG::Connection.ping) are nonblocking now, so that GVL unlock is in theory no longer necessary.
140
292
  However it can have some advantage in concurrency, so that GVL unlock is still enabled by default.
@@ -142,8 +294,8 @@ Install Enhancements:
142
294
  - gem inst pg -- --disable-gvl-unlock
143
295
 
144
296
  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
297
+ - Add full compatibility to Fiber.scheduler introduced in Ruby-3.0. [#397](https://github.com/ged/ruby-pg/pull/397)
298
+ - Add async_connect and async_send methods and add specific specs for Fiber.scheduler [#342](https://github.com/ged/ruby-pg/pull/342)
147
299
  - Add async_get_result and async_get_last_result
148
300
  - Add async_get_copy_data
149
301
  - Implement async_put_copy_data/async_put_copy_end
@@ -157,35 +309,35 @@ API Enhancements:
157
309
  - Avoid PG.connect blocking while address resolution by automatically providing the +hostaddr+ parameter and resolving in Ruby instead of libpq.
158
310
  - On Windows Fiber.scheduler support requires Ruby-3.1+.
159
311
  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
312
+ - Add support for pipeline mode of PostgreSQL-14. [#401](https://github.com/ged/ruby-pg/pull/401)
313
+ - Allow specification of multiple hosts in PostgreSQL URI. [#387](https://github.com/ged/ruby-pg/pull/387)
162
314
  - Add new method conn.backend_key - used to implement our own cancel method.
163
315
 
164
316
  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
317
+ - Add PG::BasicTypeMapForQueries::BinaryData for encoding of bytea columns. [#348](https://github.com/ged/ruby-pg/pull/348)
318
+ - 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
319
  - Make BasicTypeRegistry a class and use a global default instance of it.
168
- Now a local type registry can be instanciated and given to the type map, to avoid changing shared global states.
320
+ Now a local type registry can be instantiated and given to the type map, to avoid changing shared global states.
169
321
  - Allow PG::BasicTypeMapForQueries to take a Proc as callback for undefined types.
170
322
 
171
323
  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
324
+ - Convert all PG classes implemented in C to TypedData objects. [#349](https://github.com/ged/ruby-pg/pull/349)
325
+ - Support ObjectSpace.memsize_of(obj) on all classes implemented in C. [#393](https://github.com/ged/ruby-pg/pull/393)
326
+ - Make all PG objects implemented in C memory moveable and therefore GC.compact friendly. [#349](https://github.com/ged/ruby-pg/pull/349)
175
327
  - Update errorcodes and error classes to PostgreSQL-14.0.
176
328
  - Add PG::CONNECTION_* constants for conn.status of newer PostgreSQL versions.
177
- - Add better support for logical replication. #339
329
+ - Add better support for logical replication. [#339](https://github.com/ged/ruby-pg/pull/339)
178
330
  - Change conn.socket_io to read+write mode and to a BasicSocket object instead of IO.
179
331
  - Use rb_io_wait() and the conn.socket_io object if available for better compatibility to Fiber.scheduler .
180
332
  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
333
+ - 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
334
 
183
335
  Bugfixes:
184
336
  - 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
337
+ - 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)
338
+ - Avoid casting of OIDs to fix compat with Redshift database. [#369](https://github.com/ged/ruby-pg/pull/369)
187
339
  - 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
340
+ - Sporadic Errno::ENOTSOCK when using conn.socket_io on Windows [#398](https://github.com/ged/ruby-pg/pull/398)
189
341
 
190
342
  Deprecated:
191
343
  - Add deprecation warning to PG::BasicTypeRegistry.register_type and siblings.
@@ -200,37 +352,37 @@ Repository:
200
352
  - Add Github Actions CI and testing of source and binary gems.
201
353
 
202
354
 
203
- == v1.2.3 [2020-03-18] Michael Granger <ged@FaerieMUD.org>
355
+ ## v1.2.3 [2020-03-18] Michael Granger <ged@FaerieMUD.org>
204
356
 
205
357
  Bugfixes:
206
358
 
207
359
  - 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
360
+ a typemap after GC.compact. [#327](https://github.com/ged/ruby-pg/pull/327)
361
+ - Fix possible segfault in `PG::TypeMapByClass` after GC.compact. [#328](https://github.com/ged/ruby-pg/pull/328)
210
362
 
211
363
 
212
- == v1.2.2 [2020-01-06] Michael Granger <ged@FaerieMUD.org>
364
+ ## v1.2.2 [2020-01-06] Michael Granger <ged@FaerieMUD.org>
213
365
 
214
366
  Enhancements:
215
367
 
216
368
  - Add a binary gem for Ruby 2.7.
217
369
 
218
370
 
219
- == v1.2.1 [2020-01-02] Michael Granger <ged@FaerieMUD.org>
371
+ ## v1.2.1 [2020-01-02] Michael Granger <ged@FaerieMUD.org>
220
372
 
221
373
  Enhancements:
222
374
 
223
375
  - Added internal API for sequel_pg compatibility.
224
376
 
225
377
 
226
- == v1.2.0 [2019-12-20] Michael Granger <ged@FaerieMUD.org>
378
+ ## v1.2.0 [2019-12-20] Michael Granger <ged@FaerieMUD.org>
227
379
 
228
380
  Repository:
229
381
  - 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
382
+ Most of the issues from https://bitbucket.org/ged/ruby-pg have been migrated. [#43](https://github.com/ged/ruby-pg/pull/43)
231
383
 
232
384
  API enhancements:
233
- - Add PG::Result#field_name_type= and siblings to allow symbols to be used as field names. #306
385
+ - 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
386
  - Add new methods for error reporting:
235
387
  - PG::Connection#set_error_context_visibility
236
388
  - PG::Result#verbose_error_message
@@ -239,29 +391,29 @@ API enhancements:
239
391
  - New constants: PG_DIAG_SEVERITY_NONLOCALIZED, PQERRORS_SQLSTATE, PQSHOW_CONTEXT_NEVER, PQSHOW_CONTEXT_ERRORS, PQSHOW_CONTEXT_ALWAYS
240
392
 
241
393
  Type cast enhancements:
242
- - Add PG::TextEncoder::Record and PG::TextDecoder::Record for en/decoding of Composite Types. #258, #36
394
+ - 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
395
  - Add PG::BasicTypeRegistry.register_coder to register instances instead of classes.
244
396
  This is useful to register parametrized en/decoders like PG::TextDecoder::Record .
245
397
  - Add PG::BasicTypeMapForQueries#encode_array_as= to switch between various interpretations of ruby arrays.
246
398
  - 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
399
+ - Exchange sprintf based float encoder by very fast own implementation with more natural format. [#301](https://github.com/ged/ruby-pg/pull/301)
248
400
  - Define encode and decode methods only in en/decoders that implement it, so that they can be queried by respond_to? .
249
401
  - Improve PG::TypeMapByColumn#inspect
250
- - Accept Integer and Float as input to TextEncoder::Numeric . #310
402
+ - Accept Integer and Float as input to TextEncoder::Numeric . [#310](https://github.com/ged/ruby-pg/pull/310)
251
403
 
252
404
  Other enhancements:
253
405
  - 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
406
+ 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
407
  - Make use of PQresultMemorySize() of PostgreSQL-12 and fall back to our internal estimator.
256
408
  - 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
409
+ - 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
410
  - Update Windows fat binary gem to OpenSSL-1.1.1d and PostgreSQL-12.1.
259
411
  - Add support for TruffleRuby. It is regularly tested as part of our CI.
260
412
  - Enable +frozen_string_literal+ in all pg's ruby files
261
413
 
262
414
  Bugfixes:
263
415
  - Update the license in gemspec to "BSD-2-Clause".
264
- It was incorrectly labeled "BSD-3-Clause". #40
416
+ It was incorrectly labeled "BSD-3-Clause". [#40](https://github.com/ged/ruby-pg/pull/40)
265
417
  - Respect PG::Coder#flags in PG::Coder#to_h.
266
418
  - Fix PG::Result memsize reporting after #clear.
267
419
  - Release field names to GC on PG::Result#clear.
@@ -275,7 +427,7 @@ Deprecated:
275
427
  Removed:
276
428
  - Remove PG::Connection#guess_result_memsize= which was temporary added in pg-1.1.
277
429
  - Remove PG::Result.allocate and PG::Result.new (see enhancements).
278
- - Remove support of tainted objects. #307
430
+ - Remove support of tainted objects. [#307](https://github.com/ged/ruby-pg/pull/307)
279
431
  - Remove support of ruby-2.0 and 2.1. Minimum is ruby-2.2 now.
280
432
 
281
433
  Documentation:
@@ -286,30 +438,30 @@ Documentation:
286
438
  - Fix documentation of many constants
287
439
 
288
440
 
289
- == v1.1.4 [2019-01-08] Michael Granger <ged@FaerieMUD.org>
441
+ ## v1.1.4 [2019-01-08] Michael Granger <ged@FaerieMUD.org>
290
442
 
291
443
  - Fix PG::BinaryDecoder::Timestamp on 32 bit systems. # 284
292
444
  - Add new error-codes of PostgreSQL-11.
293
445
  - Add ruby-2.6 support for Windows fat binary gems and remove ruby-2.0 and 2.1.
294
446
 
295
447
 
296
- == v1.1.3 [2018-09-06] Michael Granger <ged@FaerieMUD.org>
448
+ ## v1.1.3 [2018-09-06] Michael Granger <ged@FaerieMUD.org>
297
449
 
298
450
  - Revert opimization that was sometimes causing EBADF in rb_wait_for_single_fd().
299
451
 
300
452
 
301
- == v1.1.2 [2018-08-28] Michael Granger <ged@FaerieMUD.org>
453
+ ## v1.1.2 [2018-08-28] Michael Granger <ged@FaerieMUD.org>
302
454
 
303
455
  - Don't generate aliases for JOHAB encoding.
304
456
  This avoids linking to deprecated/private function rb_enc(db)_alias().
305
457
 
306
458
 
307
- == v1.1.1 [2018-08-27] Michael Granger <ged@FaerieMUD.org>
459
+ ## v1.1.1 [2018-08-27] Michael Granger <ged@FaerieMUD.org>
308
460
 
309
461
  - Reduce deprecation warnings to only one message per deprecation.
310
462
 
311
463
 
312
- == v1.1.0 [2018-08-24] Michael Granger <ged@FaerieMUD.org>
464
+ ## v1.1.0 [2018-08-24] Michael Granger <ged@FaerieMUD.org>
313
465
 
314
466
  Deprecated (disable warnings per PG_SKIP_DEPRECATION_WARNING=1):
315
467
  - Forwarding conn.exec to conn.exec_params is deprecated.
@@ -335,7 +487,7 @@ Result retrieval enhancements:
335
487
  - Make the estimated PG::Result size available to ObjectSpace.memsize_of(result) .
336
488
 
337
489
  Type cast enhancements:
338
- - Replace Ruby code by a faster C implementation of the SimpleDecoder's timestamp decode functions. github #20
490
+ - 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
491
  - Interpret years with up to 7 digists and BC dates by timestamp decoder.
340
492
  - Add text timestamp decoders for UTC vs. local timezone variations.
341
493
  - Add text timestamp encoders for UTC timezone.
@@ -350,12 +502,12 @@ Source code enhancements:
350
502
  - Fix headers and permission bits of various repository files.
351
503
 
352
504
  Bugfixes:
353
- - Properly decode array with prepended dimensions. #272
505
+ - Properly decode array with prepended dimensions. [#272](https://github.com/ged/ruby-pg/pull/272)
354
506
  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
507
+ - Array-Decoder: Avoid leaking memory when an Exception is raised while parsing. Fixes [#279](https://github.com/ged/ruby-pg/pull/279)
356
508
 
357
509
 
358
- == v1.0.0 [2018-01-10] Michael Granger <ged@FaerieMUD.org>
510
+ ## v1.0.0 [2018-01-10] Michael Granger <ged@FaerieMUD.org>
359
511
 
360
512
  Deprecated:
361
513
  - Deprecate Ruby older than 2.2.
@@ -372,16 +524,16 @@ Enhancements:
372
524
  OpenSSL 1.1.0g.
373
525
 
374
526
  Bugfixes:
375
- - Fix URI detection for connection strings. #265 (thanks to jjoos)
527
+ - Fix URI detection for connection strings. [#265](https://github.com/ged/ruby-pg/pull/265) (thanks to jjoos)
376
528
  - MINGW: Workaround segfault due to GCC linker error in conjunction with MSVC.
377
529
  This happens when linking to PostgreSQL-10.0-x64 from EnterpriseDB.
378
530
 
379
531
  Documentation fixes:
380
- - Add PostgreSQL version since when the given function is supported. #263
532
+ - Add PostgreSQL version since when the given function is supported. [#263](https://github.com/ged/ruby-pg/pull/263)
381
533
  - Better documentation to `encoder` and `decoder` arguments of COPY related methods.
382
534
 
383
535
 
384
- == v0.21.0 [2017-06-12] Michael Granger <ged@FaerieMUD.org>
536
+ ## v0.21.0 [2017-06-12] Michael Granger <ged@FaerieMUD.org>
385
537
 
386
538
  Enhancements:
387
539
  - Move add_dll_directory to the Runtime namespace for newest versions
@@ -397,7 +549,7 @@ New Samples:
397
549
  - Add an example of the nicer #copy_data way of doing `COPY`.
398
550
 
399
551
 
400
- == v0.20.0 [2017-03-10] Michael Granger <ged@FaerieMUD.org>
552
+ ## v0.20.0 [2017-03-10] Michael Granger <ged@FaerieMUD.org>
401
553
 
402
554
  Enhancements:
403
555
  - Update error codes to PostgreSQL-9.6
@@ -406,22 +558,22 @@ Enhancements:
406
558
  - Add support for RubyInstaller2 to Windows binary gems.
407
559
 
408
560
  Bugfixes:
409
- - Use secure JSON methods for JSON (de)serialisation. #248
561
+ - Use secure JSON methods for JSON (de)serialisation. [#248](https://github.com/ged/ruby-pg/pull/248)
410
562
  - Fix Result#inspect on a cleared result.
411
- - Fix test case that failed on Ruby-2.4. #255
563
+ - Fix test case that failed on Ruby-2.4. [#255](https://github.com/ged/ruby-pg/pull/255)
412
564
 
413
565
  Documentation fixes:
414
566
  - Talk about Integer instead of Fixnum.
415
567
  - Fix method signature of Coder#encode.
416
568
 
417
569
 
418
- == v0.19.0 [2016-09-21] Michael Granger <ged@FaerieMUD.org>
570
+ ## v0.19.0 [2016-09-21] Michael Granger <ged@FaerieMUD.org>
419
571
 
420
572
  - Deprecate Ruby 1.9
421
573
 
422
574
  Enhancements:
423
575
  - Respect and convert character encoding of all strings sent
424
- to the server. #231
576
+ to the server. [#231](https://github.com/ged/ruby-pg/pull/231)
425
577
  - Add PostgreSQL-9.5 functions PQsslInUse(), PQsslAttribute()
426
578
  and PQsslAttributeNames().
427
579
  - Various documentation fixes and improvements.
@@ -434,24 +586,24 @@ Enhancements:
434
586
  - Allow build from git per bundler.
435
587
 
436
588
  Bugfixes:
437
- - Release GVL while calling PQsetClientEncoding(). #245
438
- - Add __EXTENSIONS__ to Solaris/SmartOS for Ruby >= 2.3.x. #236
589
+ - Release GVL while calling PQsetClientEncoding(). [#245](https://github.com/ged/ruby-pg/pull/245)
590
+ - Add __EXTENSIONS__ to Solaris/SmartOS for Ruby >= 2.3.x. [#236](https://github.com/ged/ruby-pg/pull/236)
439
591
  - Fix wrong exception when running SQL while in Connection#copy_data
440
592
  block for output
441
593
 
442
594
 
443
- == v0.18.4 [2015-11-13] Michael Granger <ged@FaerieMUD.org>
595
+ ## v0.18.4 [2015-11-13] Michael Granger <ged@FaerieMUD.org>
444
596
 
445
597
  Enhancements:
446
- - Fixing compilation problems with Microsoft Visual Studio 2008. GH #10
447
- - Avoid name clash with xcode and jemalloc. PR#22, PR#23
598
+ - Fixing compilation problems with Microsoft Visual Studio 2008. GH [#10](https://github.com/ged/ruby-pg/pull/10)
599
+ - 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
600
 
449
601
  Bugfixes:
450
602
  - Avoid segfault, when quote_ident or TextEncoder::Identifier
451
- is called with Array containing non-strings. #226
603
+ is called with Array containing non-strings. [#226](https://github.com/ged/ruby-pg/pull/226)
452
604
 
453
605
 
454
- == v0.18.3 [2015-09-03] Michael Granger <ged@FaerieMUD.org>
606
+ ## v0.18.3 [2015-09-03] Michael Granger <ged@FaerieMUD.org>
455
607
 
456
608
  Enhancements:
457
609
  - Use rake-compiler-dock to build windows gems easily.
@@ -459,12 +611,12 @@ Enhancements:
459
611
 
460
612
  Bugfixes:
461
613
  - Fix data type resulting in wrong base64 encoding.
462
- - Change instance_of checks to kind_of for subclassing. #220
614
+ - Change instance_of checks to kind_of for subclassing. [#220](https://github.com/ged/ruby-pg/pull/220)
463
615
  - TextDecoder::Date returns an actual Ruby Date instead of a Time
464
616
  (thanks to Thomas Ramfjord)
465
617
 
466
618
 
467
- == v0.18.2 [2015-05-14] Michael Granger <ged@FaerieMUD.org>
619
+ ## v0.18.2 [2015-05-14] Michael Granger <ged@FaerieMUD.org>
468
620
 
469
621
  Enhancements:
470
622
 
@@ -474,22 +626,22 @@ Enhancements:
474
626
  Bugfixes:
475
627
 
476
628
  - 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]
629
+ - Revert addition of PG::Connection#hostaddr [[#202](https://github.com/ged/ruby-pg/pull/202)].
630
+ - Fix decoding of fractional timezones and timestamps [[#203](https://github.com/ged/ruby-pg/pull/203)]
479
631
  - Fixes for non-C99 compilers
480
632
  - Avoid possible symbol name clash when linking against static libpq.
481
633
 
482
634
 
483
- == v0.18.1 [2015-01-05] Michael Granger <ged@FaerieMUD.org>
635
+ ## v0.18.1 [2015-01-05] Michael Granger <ged@FaerieMUD.org>
484
636
 
485
- Correct the minimum compatible Ruby version to 1.9.3. #199
637
+ Correct the minimum compatible Ruby version to 1.9.3. [#199](https://github.com/ged/ruby-pg/pull/199)
486
638
 
487
639
 
488
- == v0.18.0 [2015-01-01] Michael Granger <ged@FaerieMUD.org>
640
+ ## v0.18.0 [2015-01-01] Michael Granger <ged@FaerieMUD.org>
489
641
 
490
642
  Bugfixes:
491
- - Fix OID to Integer mapping (it is unsigned now). #187
492
- - Fix possible segfault in conjunction with notice receiver. #185
643
+ - Fix OID to Integer mapping (it is unsigned now). [#187](https://github.com/ged/ruby-pg/pull/187)
644
+ - Fix possible segfault in conjunction with notice receiver. [#185](https://github.com/ged/ruby-pg/pull/185)
493
645
 
494
646
  Enhancements:
495
647
 
@@ -508,7 +660,7 @@ Enhancements:
508
660
 
509
661
 
510
662
 
511
- == v0.17.1 [2013-12-18] Michael Granger <ged@FaerieMUD.org>
663
+ ## v0.17.1 [2013-12-18] Michael Granger <ged@FaerieMUD.org>
512
664
 
513
665
  Bugfixes:
514
666
 
@@ -524,11 +676,11 @@ Documentation fixes:
524
676
  - Fix documentation for PG::Connection::conndefaults.
525
677
 
526
678
 
527
- == v0.17.0 [2013-09-15] Michael Granger <ged@FaerieMUD.org>
679
+ ## v0.17.0 [2013-09-15] Michael Granger <ged@FaerieMUD.org>
528
680
 
529
681
  Bugfixes:
530
682
 
531
- - Fix crash by calling PQsend* and PQisBusy without GVL (#171).
683
+ - Fix crash by calling PQsend* and PQisBusy without GVL ([#171](https://github.com/ged/ruby-pg/pull/171)).
532
684
 
533
685
  Enhancements:
534
686
 
@@ -539,18 +691,18 @@ Enhancements:
539
691
  to stack method calls.
540
692
 
541
693
 
542
- == v0.16.0 [2013-07-22] Michael Granger <ged@FaerieMUD.org>
694
+ ## v0.16.0 [2013-07-22] Michael Granger <ged@FaerieMUD.org>
543
695
 
544
696
  Bugfixes:
545
697
 
546
698
  - Avoid warnings about uninitialized instance variables.
547
699
  - Use a more standard method of adding library and include directories.
548
- This fixes build on AIX (Github #7) and Solaris (#164).
700
+ 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
701
  - Cancel the running query, if a thread is about to be killed (e.g. by CTRL-C).
550
702
  - Fix GVL issue with wait_for_notify/notifies and notice callbacks.
551
703
  - 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).
704
+ and escape_identifier ([#163](https://github.com/ged/ruby-pg/pull/163)).
705
+ - Use nil as PG::Error#result in case of a NULL-result from libpq ([#166](https://github.com/ged/ruby-pg/pull/166)).
554
706
  - Recalculate the timeout of conn#wait_for_notify and conn#block in case
555
707
  of socket events that require re-runs of select().
556
708
 
@@ -560,20 +712,20 @@ Documentation fixes:
560
712
 
561
713
  Enhancements:
562
714
 
563
- - Add unique exception classes for each PostgreSQL error type (#5).
564
- - Return result of the block in conn#transaction instead of nil (#158).
715
+ - Add unique exception classes for each PostgreSQL error type ([#5](https://github.com/ged/ruby-pg/pull/5)).
716
+ - Return result of the block in conn#transaction instead of nil ([#158](https://github.com/ged/ruby-pg/pull/158)).
565
717
  - Allow 'rake compile' and 'rake gem' on non mercurial repos.
566
- - Add support for PG_DIAG_*_NAME error fields of PostgreSQL-9.3 (#161).
718
+ - Add support for PG_DIAG_*_NAME error fields of PostgreSQL-9.3 ([#161](https://github.com/ged/ruby-pg/pull/161)).
567
719
 
568
720
 
569
- == v0.15.1 [2013-04-08] Michael Granger <ged@FaerieMUD.org>
721
+ ## v0.15.1 [2013-04-08] Michael Granger <ged@FaerieMUD.org>
570
722
 
571
723
  Bugfixes:
572
724
 
573
725
  - Shorten application_name to avoid warnings about truncated identifier.
574
726
 
575
727
 
576
- == v0.15.0 [2013-03-03] Michael Granger <ged@FaerieMUD.org>
728
+ ## v0.15.0 [2013-03-03] Michael Granger <ged@FaerieMUD.org>
577
729
 
578
730
  Bugfixes:
579
731
 
@@ -598,7 +750,7 @@ Enhancements:
598
750
  - Refactor different variants of waiting for the connection socket.
599
751
  - Make use of rb_thread_fd_select() on Ruby 1.9 and avoid deprecated
600
752
  rb_thread_select().
601
- - Add an example of how to insert array data using a prepared statement (#145).
753
+ - Add an example of how to insert array data using a prepared statement ([#145](https://github.com/ged/ruby-pg/pull/145)).
602
754
  - Add continuous integration tests on travis-ci.org.
603
755
  - Add PG::Result#each_row for iterative over result sets by row. Thanks to
604
756
  Aaron Patterson for the patch.
@@ -611,11 +763,11 @@ Specs:
611
763
  - Avoid fork() in specs to allow usage on Windows and JRuby.
612
764
 
613
765
 
614
- == v0.14.1 [2012-09-02] Michael Granger <ged@FaerieMUD.org>
766
+ ## v0.14.1 [2012-09-02] Michael Granger <ged@FaerieMUD.org>
615
767
 
616
768
  Important bugfix:
617
769
 
618
- - Fix stack overflow bug in PG::Result#values and #column_values (#135). Thanks
770
+ - Fix stack overflow bug in PG::Result#values and #column_values ([#135](https://github.com/ged/ruby-pg/pull/135)). Thanks
619
771
  to everyone who reported the bug, and Lars Kanis especially for figuring out
620
772
  the problem.
621
773
 
@@ -628,13 +780,13 @@ Documentation fixes:
628
780
  - Add note about the usage scope of the result object received by the
629
781
  #set_notice_receiver block. (Lars Kanis)
630
782
  - Add PGRES_COPY_BOTH to documentation of PG::Result#result_status. (Lars Kanis)
631
- - Add some documentation to PG::Result#fnumber (fix for #139)
783
+ - Add some documentation to PG::Result#fnumber (fix for [#139](https://github.com/ged/ruby-pg/pull/139))
632
784
 
633
785
 
634
- == v0.14.0 [2012-06-17] Michael Granger <ged@FaerieMUD.org>
786
+ ## v0.14.0 [2012-06-17] Michael Granger <ged@FaerieMUD.org>
635
787
 
636
788
  Bugfixes:
637
- #47, #104
789
+ [#47](https://github.com/ged/ruby-pg/pull/47), [#104](https://github.com/ged/ruby-pg/pull/104)
638
790
 
639
791
 
640
792
  New Methods for PostgreSQL 9 and async API support:
@@ -659,20 +811,20 @@ monitoring for replication lag, shipping WAL files for replication,
659
811
  automated tablespace partitioning, etc. See the samples/ directory.
660
812
 
661
813
 
662
- == v0.13.2 [2012-02-22] Michael Granger <ged@FaerieMUD.org>
814
+ ## v0.13.2 [2012-02-22] Michael Granger <ged@FaerieMUD.org>
663
815
 
664
816
  - Make builds against PostgreSQL earlier than 8.3 fail with a descriptive
665
817
  message instead of a compile failure.
666
818
 
667
819
 
668
- == v0.13.1 [2012-02-12] Michael Granger <ged@FaerieMUD.org>
820
+ ## v0.13.1 [2012-02-12] Michael Granger <ged@FaerieMUD.org>
669
821
 
670
822
  - 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)
823
+ a fatal error ([#110](https://github.com/ged/ruby-pg/pull/110)).
824
+ - Added missing BSDL license file ([#108](https://github.com/ged/ruby-pg/pull/108))
673
825
 
674
826
 
675
- == v0.13.0 [2012-02-09] Michael Granger <ged@FaerieMUD.org>
827
+ ## v0.13.0 [2012-02-09] Michael Granger <ged@FaerieMUD.org>
676
828
 
677
829
  Reorganization of modules/classes to be better Ruby citizens (with backward-compatible aliases):
678
830
  - Created toplevel namespace 'PG' to correspond with the gem name.
@@ -701,23 +853,23 @@ Bugfixes:
701
853
 
702
854
 
703
855
 
704
- == v0.12.2 [2012-01-03] Michael Granger <ged@FaerieMUD.org>
856
+ ## v0.12.2 [2012-01-03] Michael Granger <ged@FaerieMUD.org>
705
857
 
706
858
  - 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)
859
+ 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.
860
+ - Encode error messages with the connection's encoding under 1.9 ([#96](https://github.com/ged/ruby-pg/pull/96))
709
861
 
710
862
 
711
- == v0.12.1 [2011-12-14] Michael Granger <ged@FaerieMUD.org>
863
+ ## v0.12.1 [2011-12-14] Michael Granger <ged@FaerieMUD.org>
712
864
 
713
865
  - Made rake-compiler a dev dependency, as Rubygems doesn't use the Rakefile
714
866
  for compiling the extension. Thanks to eolamey@bitbucket and Jeremy Evans
715
867
  for pointing this out.
716
868
  - Added an explicit include for ruby/st.h for implementations that need it
717
- (fixes #95).
869
+ (fixes [#95](https://github.com/ged/ruby-pg/pull/95)).
718
870
 
719
871
 
720
- == v0.12.0 [2011-12-07] Michael Granger <ged@FaerieMUD.org>
872
+ ## v0.12.0 [2011-12-07] Michael Granger <ged@FaerieMUD.org>
721
873
 
722
874
  - PGconn#wait_for_notify
723
875
  * send nil as the payload argument if the NOTIFY didn't have one.
@@ -728,7 +880,7 @@ Bugfixes:
728
880
  (Brian Weaver).
729
881
  - Fixes for Win32 async queries (Rafał Bigaj)
730
882
  - Memory leak fixed: Closing opened WSA event. (rafal)
731
- - Fixes for #66 Win32 asynchronous queries hang on connection
883
+ - Fixes for [#66](https://github.com/ged/ruby-pg/pull/66) Win32 asynchronous queries hang on connection
732
884
  error. (rafal)
733
885
  - Fixed a typo in PGconn#error_message's documentation
734
886
  - fixing unused variable warnings for ruby 1.9.3 (Aaron Patterson)
@@ -737,7 +889,7 @@ Bugfixes:
737
889
  - Updates for the Win32 binary gem builds (Lars Kanis)
738
890
 
739
891
 
740
- == v0.11.0 [2011-02-09] Michael Granger <ged@FaerieMUD.org>
892
+ ## v0.11.0 [2011-02-09] Michael Granger <ged@FaerieMUD.org>
741
893
 
742
894
  Enhancements:
743
895
 
@@ -746,19 +898,19 @@ Enhancements:
746
898
  the patch.
747
899
 
748
900
 
749
- == v0.10.1 [2011-01-19] Michael Granger <ged@FaerieMUD.org>
901
+ ## v0.10.1 [2011-01-19] Michael Granger <ged@FaerieMUD.org>
750
902
 
751
903
  Bugfixes:
752
904
 
753
905
  * Add an include guard for pg.h
754
906
  * Simplify the common case require of the ext
755
907
  * 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)
908
+ * Fix compatibility with versions of PostgreSQL without PQgetCancel. (fixes [#36](https://github.com/ged/ruby-pg/pull/36))
909
+ * Fix require for natively-compiled extension under Windows. (fixes [#55](https://github.com/ged/ruby-pg/pull/55))
910
+ * Change rb_yield_splat() to rb_yield_values() for compatibility with Rubinius. (fixes [#54](https://github.com/ged/ruby-pg/pull/54))
759
911
 
760
912
 
761
- == v0.10.0 [2010-12-01] Michael Granger <ged@FaerieMUD.org>
913
+ ## v0.10.0 [2010-12-01] Michael Granger <ged@FaerieMUD.org>
762
914
 
763
915
  Enhancements:
764
916
 
@@ -770,11 +922,11 @@ Bugfixes:
770
922
  * Fixed issue with PGconn#wait_for_notify that caused it to miss notifications that happened after
771
923
  the LISTEN but before the wait_for_notify.
772
924
 
773
- == v0.9.0 [2010-02-28] Michael Granger <ged@FaerieMUD.org>
925
+ ## v0.9.0 [2010-02-28] Michael Granger <ged@FaerieMUD.org>
774
926
 
775
927
  Bugfixes.
776
928
 
777
- == v0.8.0 [2009-03-28] Jeff Davis <davis.jeffrey@gmail.com>
929
+ ## v0.8.0 [2009-03-28] Jeff Davis <davis.jeffrey@gmail.com>
778
930
 
779
931
  Bugfixes, better Windows support.
780
932