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