pg 1.2.3 → 1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.appveyor.yml +42 -0
- data/.gems +6 -0
- data/.github/workflows/binary-gems.yml +117 -0
- data/.github/workflows/source-gem.yml +141 -0
- data/.gitignore +22 -0
- data/.hgsigs +34 -0
- data/.hgtags +41 -0
- data/.irbrc +23 -0
- data/.pryrc +23 -0
- data/.tm_properties +21 -0
- data/.travis.yml +49 -0
- data/Gemfile +14 -0
- data/History.md +884 -0
- data/Manifest.txt +0 -1
- data/README.ja.md +300 -0
- data/README.md +286 -0
- data/Rakefile +33 -135
- data/Rakefile.cross +12 -13
- data/certs/ged.pem +24 -0
- data/certs/larskanis-2022.pem +26 -0
- data/certs/larskanis-2023.pem +24 -0
- data/ext/errorcodes.def +12 -0
- data/ext/errorcodes.rb +0 -0
- data/ext/errorcodes.txt +4 -1
- data/ext/extconf.rb +104 -25
- data/ext/gvl_wrappers.c +4 -0
- data/ext/gvl_wrappers.h +23 -0
- data/ext/pg.c +73 -58
- data/ext/pg.h +28 -5
- data/ext/pg_binary_decoder.c +80 -1
- data/ext/pg_binary_encoder.c +225 -1
- data/ext/pg_coder.c +96 -33
- data/ext/pg_connection.c +1010 -704
- data/ext/pg_copy_coder.c +351 -33
- data/ext/pg_errors.c +1 -1
- data/ext/pg_record_coder.c +50 -19
- data/ext/pg_result.c +177 -64
- data/ext/pg_text_decoder.c +29 -11
- data/ext/pg_text_encoder.c +29 -16
- data/ext/pg_tuple.c +83 -60
- data/ext/pg_type_map.c +44 -10
- data/ext/pg_type_map_all_strings.c +17 -3
- data/ext/pg_type_map_by_class.c +54 -27
- data/ext/pg_type_map_by_column.c +73 -31
- data/ext/pg_type_map_by_mri_type.c +48 -19
- data/ext/pg_type_map_by_oid.c +59 -27
- data/ext/pg_type_map_in_ruby.c +55 -21
- data/ext/pg_util.c +2 -2
- data/lib/pg/basic_type_map_based_on_result.rb +67 -0
- data/lib/pg/basic_type_map_for_queries.rb +198 -0
- data/lib/pg/basic_type_map_for_results.rb +104 -0
- data/lib/pg/basic_type_registry.rb +299 -0
- 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 +743 -83
- data/lib/pg/exceptions.rb +14 -1
- 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 +4 -0
- data/lib/pg.rb +94 -39
- data/misc/openssl-pg-segfault.rb +31 -0
- data/misc/postgres/History.txt +9 -0
- data/misc/postgres/Manifest.txt +5 -0
- data/misc/postgres/README.txt +21 -0
- data/misc/postgres/Rakefile +21 -0
- data/misc/postgres/lib/postgres.rb +16 -0
- data/misc/ruby-pg/History.txt +9 -0
- data/misc/ruby-pg/Manifest.txt +5 -0
- data/misc/ruby-pg/README.txt +21 -0
- data/misc/ruby-pg/Rakefile +21 -0
- data/misc/ruby-pg/lib/ruby/pg.rb +16 -0
- data/pg.gemspec +34 -0
- data/rakelib/task_extension.rb +46 -0
- data/sample/array_insert.rb +20 -0
- data/sample/async_api.rb +102 -0
- data/sample/async_copyto.rb +39 -0
- data/sample/async_mixed.rb +56 -0
- data/sample/check_conn.rb +21 -0
- data/sample/copydata.rb +71 -0
- data/sample/copyfrom.rb +81 -0
- data/sample/copyto.rb +19 -0
- data/sample/cursor.rb +21 -0
- data/sample/disk_usage_report.rb +177 -0
- data/sample/issue-119.rb +94 -0
- data/sample/losample.rb +69 -0
- data/sample/minimal-testcase.rb +17 -0
- data/sample/notify_wait.rb +72 -0
- data/sample/pg_statistics.rb +285 -0
- data/sample/replication_monitor.rb +222 -0
- data/sample/test_binary_values.rb +33 -0
- data/sample/wal_shipper.rb +434 -0
- data/sample/warehouse_partitions.rb +311 -0
- data/translation/.po4a-version +7 -0
- data/translation/po/all.pot +936 -0
- data/translation/po/ja.po +1036 -0
- data/translation/po4a.cfg +12 -0
- data.tar.gz.sig +0 -0
- metadata +135 -207
- metadata.gz.sig +0 -0
- data/ChangeLog +0 -0
- data/History.rdoc +0 -578
- data/README.ja.rdoc +0 -13
- data/README.rdoc +0 -213
- data/lib/pg/basic_type_mapping.rb +0 -522
- 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/spec/data/expected_trace.out +0 -26
- data/spec/data/random_binary_data +0 -0
- data/spec/helpers.rb +0 -380
- data/spec/pg/basic_type_mapping_spec.rb +0 -630
- data/spec/pg/connection_spec.rb +0 -1949
- data/spec/pg/connection_sync_spec.rb +0 -41
- data/spec/pg/result_spec.rb +0 -681
- data/spec/pg/tuple_spec.rb +0 -333
- data/spec/pg/type_map_by_class_spec.rb +0 -138
- data/spec/pg/type_map_by_column_spec.rb +0 -226
- data/spec/pg/type_map_by_mri_type_spec.rb +0 -136
- data/spec/pg/type_map_by_oid_spec.rb +0 -149
- data/spec/pg/type_map_in_ruby_spec.rb +0 -164
- data/spec/pg/type_map_spec.rb +0 -22
- data/spec/pg/type_spec.rb +0 -1123
- data/spec/pg_spec.rb +0 -50
data/History.rdoc
DELETED
@@ -1,578 +0,0 @@
|
|
1
|
-
== v1.2.3 [2020-03-18] Michael Granger <ged@FaerieMUD.org>
|
2
|
-
|
3
|
-
Bugfixes:
|
4
|
-
|
5
|
-
- Fix possible segfault at `PG::Coder#encode`, `decode` or their implicit calls through
|
6
|
-
a typemap after GC.compact. #327
|
7
|
-
- Fix possible segfault in `PG::TypeMapByClass` after GC.compact. #328
|
8
|
-
|
9
|
-
|
10
|
-
== v1.2.2 [2020-01-06] Michael Granger <ged@FaerieMUD.org>
|
11
|
-
|
12
|
-
Enhancements:
|
13
|
-
|
14
|
-
- Add a binary gem for Ruby 2.7.
|
15
|
-
|
16
|
-
|
17
|
-
== v1.2.1 [2020-01-02] Michael Granger <ged@FaerieMUD.org>
|
18
|
-
|
19
|
-
Enhancements:
|
20
|
-
|
21
|
-
- Added internal API for sequel_pg compatibility.
|
22
|
-
|
23
|
-
|
24
|
-
== v1.2.0 [2019-12-20] Michael Granger <ged@FaerieMUD.org>
|
25
|
-
|
26
|
-
Repository:
|
27
|
-
- Our primary repository has been moved to Github https://github.com/ged/ruby-pg .
|
28
|
-
Most of the issues from https://bitbucket.org/ged/ruby-pg have been migrated. #43
|
29
|
-
|
30
|
-
API enhancements:
|
31
|
-
- Add PG::Result#field_name_type= and siblings to allow symbols to be used as field names. #306
|
32
|
-
- Add new methods for error reporting:
|
33
|
-
- PG::Connection#set_error_context_visibility
|
34
|
-
- PG::Result#verbose_error_message
|
35
|
-
- PG::Result#result_verbose_error_message (alias)
|
36
|
-
- Update errorcodes and error classes to PostgreSQL-12.0.
|
37
|
-
- New constants: PG_DIAG_SEVERITY_NONLOCALIZED, PQERRORS_SQLSTATE, PQSHOW_CONTEXT_NEVER, PQSHOW_CONTEXT_ERRORS, PQSHOW_CONTEXT_ALWAYS
|
38
|
-
|
39
|
-
Type cast enhancements:
|
40
|
-
- Add PG::TextEncoder::Record and PG::TextDecoder::Record for en/decoding of Composite Types. #258, #36
|
41
|
-
- Add PG::BasicTypeRegistry.register_coder to register instances instead of classes.
|
42
|
-
This is useful to register parametrized en/decoders like PG::TextDecoder::Record .
|
43
|
-
- Add PG::BasicTypeMapForQueries#encode_array_as= to switch between various interpretations of ruby arrays.
|
44
|
-
- Add Time, Array<Time>, Array<BigDecimal> and Array<IPAddr> encoders to PG::BasicTypeMapForQueries
|
45
|
-
- Exchange sprintf based float encoder by very fast own implementation with more natural format. #301
|
46
|
-
- Define encode and decode methods only in en/decoders that implement it, so that they can be queried by respond_to? .
|
47
|
-
- Improve PG::TypeMapByColumn#inspect
|
48
|
-
- Accept Integer and Float as input to TextEncoder::Numeric . #310
|
49
|
-
|
50
|
-
Other enhancements:
|
51
|
-
- 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.
|
52
|
-
This removes PG::Result.allocate and PG::Result.new, which were callable but without any practical use. #42
|
53
|
-
- Make use of PQresultMemorySize() of PostgreSQL-12 and fall back to our internal estimator.
|
54
|
-
- Improve performance of PG::Result#stream_each_tuple .
|
55
|
-
- 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
|
56
|
-
- Update Windows fat binary gem to OpenSSL-1.1.1d and PostgreSQL-12.1.
|
57
|
-
- Add support for TruffleRuby. It is regulary tested as part of our CI.
|
58
|
-
- Enable +frozen_string_literal+ in all pg's ruby files
|
59
|
-
|
60
|
-
Bugfixes:
|
61
|
-
- Update the license in gemspec to "BSD-2-Clause".
|
62
|
-
It was incorrectly labeled "BSD-3-Clause". #40
|
63
|
-
- Respect PG::Coder#flags in PG::Coder#to_h.
|
64
|
-
- Fix PG::Result memsize reporting after #clear.
|
65
|
-
- Release field names to GC on PG::Result#clear.
|
66
|
-
- Fix double free in PG::Result#stream_each_tuple when an exception is raised in the block.
|
67
|
-
- Fix PG::Result#stream_each_tuple to deliver typemapped values.
|
68
|
-
- Fix encoding of Array<unknown> with PG::BasicTypeMapForQueries
|
69
|
-
|
70
|
-
Deprecated:
|
71
|
-
- Add a deprecation warning to PG::Connection#socket .
|
72
|
-
|
73
|
-
Removed:
|
74
|
-
- Remove PG::Connection#guess_result_memsize= which was temporary added in pg-1.1.
|
75
|
-
- Remove PG::Result.allocate and PG::Result.new (see enhancements).
|
76
|
-
- Remove support of tainted objects. #307
|
77
|
-
- Remove support of ruby-2.0 and 2.1. Minimum is ruby-2.2 now.
|
78
|
-
|
79
|
-
Documentation:
|
80
|
-
- Update description of connection params. See PG::Connection.new
|
81
|
-
- Link many method descriptions to corresponding libpq's documentation.
|
82
|
-
- Update sync_* and async_* query method descriptions and document the aliases.
|
83
|
-
The primary documentation is now at the async_* methods which are the default since pg-1.1.
|
84
|
-
- Fix documentation of many constants
|
85
|
-
|
86
|
-
|
87
|
-
== v1.1.4 [2019-01-08] Michael Granger <ged@FaerieMUD.org>
|
88
|
-
|
89
|
-
- Fix PG::BinaryDecoder::Timestamp on 32 bit systems. # 284
|
90
|
-
- Add new error-codes of PostgreSQL-11.
|
91
|
-
- Add ruby-2.6 support for Windows fat binary gems and remove ruby-2.0 and 2.1.
|
92
|
-
|
93
|
-
|
94
|
-
== v1.1.3 [2018-09-06] Michael Granger <ged@FaerieMUD.org>
|
95
|
-
|
96
|
-
- Revert opimization that was sometimes causing EBADF in rb_wait_for_single_fd().
|
97
|
-
|
98
|
-
|
99
|
-
== v1.1.2 [2018-08-28] Michael Granger <ged@FaerieMUD.org>
|
100
|
-
|
101
|
-
- Don't generate aliases for JOHAB encoding.
|
102
|
-
This avoids linking to deprecated/private function rb_enc(db)_alias().
|
103
|
-
|
104
|
-
|
105
|
-
== v1.1.1 [2018-08-27] Michael Granger <ged@FaerieMUD.org>
|
106
|
-
|
107
|
-
- Reduce deprecation warnings to only one message per deprecation.
|
108
|
-
|
109
|
-
|
110
|
-
== v1.1.0 [2018-08-24] Michael Granger <ged@FaerieMUD.org>
|
111
|
-
|
112
|
-
Deprecated (disable warnings per PG_SKIP_DEPRECATION_WARNING=1):
|
113
|
-
- Forwarding conn.exec to conn.exec_params is deprecated.
|
114
|
-
- Forwarding conn.exec_params to conn.exec is deprecated.
|
115
|
-
- Forwarding conn.async_exec to conn.async_exec_params.
|
116
|
-
- Forwarding conn.send_query to conn.send_query_params is deprecated.
|
117
|
-
- Forwarding conn.async_exec_params to conn.async_exec is deprecated.
|
118
|
-
|
119
|
-
PG::Connection enhancements:
|
120
|
-
- Provide PG::Connection#sync_* and PG::Connection#async_* query methods for explicit calling syncronous or asynchronous libpq API.
|
121
|
-
- Make PG::Connection#exec and siblings switchable between sync and async API per PG::Connection.async_api= and change the default to async flavors.
|
122
|
-
- Add async flavors of exec_params, prepare, exec_prepared, describe_prepared and describe_portal.
|
123
|
-
They are identical to their syncronous counterpart, but make use of PostgreSQL's async API.
|
124
|
-
- Replace `rb_thread_fd_select()` by faster `rb_wait_for_single_fd()` in `conn.block` and `conn.async_exec` .
|
125
|
-
- Add PG::Connection#discard_results .
|
126
|
-
- Raise an ArgumentError for strings containing zero bytes by #escape, #escape_literal, #escape_identifier, #quote_ident and PG::TextEncoder::Identifier. These methods previously truncated strings.
|
127
|
-
|
128
|
-
Result retrieval enhancements:
|
129
|
-
- Add PG::Result#tuple_values to retrieve all field values of a row as array.
|
130
|
-
- Add PG::Tuple, PG::Result#tuple and PG::Result#stream_each_tuple .
|
131
|
-
PG::Tuple offers a way to lazy cast result values.
|
132
|
-
- Estimate PG::Result size allocated by libpq and notify the garbage collector about it when running on Ruby-2.4 or newer.
|
133
|
-
- Make the estimated PG::Result size available to ObjectSpace.memsize_of(result) .
|
134
|
-
|
135
|
-
Type cast enhancements:
|
136
|
-
- Replace Ruby code by a faster C implementation of the SimpleDecoder's timestamp decode functions. github #20
|
137
|
-
- Interpret years with up to 7 digists and BC dates by timestamp decoder.
|
138
|
-
- Add text timestamp decoders for UTC vs. local timezone variations.
|
139
|
-
- Add text timestamp encoders for UTC timezone.
|
140
|
-
- Add decoders for binary timestamps: PG::BinaryDecoder::Timestamp and variations.
|
141
|
-
- Add PG::Coder#flags accessor to allow modifications of de- respectively encoder behaviour.
|
142
|
-
- Add a flag to raise TypeError for invalid input values to PG::TextDecoder::Array .
|
143
|
-
- Add a text decoder for inet/cidr written in C.
|
144
|
-
- Add a numeric decoder written in C.
|
145
|
-
- Ensure input text is zero terminated for text format in PG::Coder#decode .
|
146
|
-
|
147
|
-
Source code enhancements:
|
148
|
-
- Fix headers and permission bits of various repository files.
|
149
|
-
|
150
|
-
Bugfixes:
|
151
|
-
- Properly decode array with prepended dimensions. #272
|
152
|
-
For now dimension decorations are ignored, but a correct Array is returned.
|
153
|
-
- Array-Decoder: Avoid leaking memory when an Exception is raised while parsing. Fixes #279
|
154
|
-
|
155
|
-
|
156
|
-
== v1.0.0 [2018-01-10] Michael Granger <ged@FaerieMUD.org>
|
157
|
-
|
158
|
-
Deprecated:
|
159
|
-
- Deprecate Ruby older than 2.2.
|
160
|
-
- Deprecate Connection#socket in favor of #socket_io.
|
161
|
-
|
162
|
-
Removed:
|
163
|
-
- Remove compatibility code for Ruby < 2.0 and PostgreSQL < 9.2.
|
164
|
-
- Remove partial compatibility with Rubinius.
|
165
|
-
- Remove top-level constants PGconn, PGresult, and PGError.
|
166
|
-
|
167
|
-
Enhancements:
|
168
|
-
- Update error codes to PostgreSQL-10
|
169
|
-
- Update Windows binary gems to Ruby-2.5, PostgreSQL 10.1 and
|
170
|
-
OpenSSL 1.1.0g.
|
171
|
-
|
172
|
-
Bugfixes:
|
173
|
-
- Fix URI detection for connection strings. #265 (thanks to jjoos)
|
174
|
-
- MINGW: Workaround segfault due to GCC linker error in conjunction with MSVC.
|
175
|
-
This happens when linking to PostgreSQL-10.0-x64 from EnterpriseDB.
|
176
|
-
|
177
|
-
Documentation fixes:
|
178
|
-
- Add PostgreSQL version since when the given function is supported. #263
|
179
|
-
- Better documentation to `encoder` and `decoder` arguments of COPY related methods.
|
180
|
-
|
181
|
-
|
182
|
-
== v0.21.0 [2017-06-12] Michael Granger <ged@FaerieMUD.org>
|
183
|
-
|
184
|
-
Enhancements:
|
185
|
-
- Move add_dll_directory to the Runtime namespace for newest versions
|
186
|
-
of RubyInstaller.
|
187
|
-
- Deprecate PGconn, PGresult, and PGError top-level constants; a warning
|
188
|
-
will be output the first time one of them is used. They will be
|
189
|
-
removed in the upcoming 1.0 release.
|
190
|
-
|
191
|
-
Documentation fixes:
|
192
|
-
- Update the docs for PG::Result#cmd_tuples
|
193
|
-
|
194
|
-
New Samples:
|
195
|
-
- Add an example of the nicer #copy_data way of doing `COPY`.
|
196
|
-
|
197
|
-
|
198
|
-
== v0.20.0 [2017-03-10] Michael Granger <ged@FaerieMUD.org>
|
199
|
-
|
200
|
-
Enhancements:
|
201
|
-
- Update error codes to PostgreSQL-9.6
|
202
|
-
- Update Windows binary gems to Ruby-2.4, PostgreSQL 9.6.1 and
|
203
|
-
OpenSSL 1.0.2j.
|
204
|
-
- Add support for RubyInstaller2 to Windows binary gems.
|
205
|
-
|
206
|
-
Bugfixes:
|
207
|
-
- Use secure JSON methods for JSON (de)serialisation. #248
|
208
|
-
- Fix Result#inspect on a cleared result.
|
209
|
-
- Fix test case that failed on Ruby-2.4. #255
|
210
|
-
|
211
|
-
Documentation fixes:
|
212
|
-
- Talk about Integer instead of Fixnum.
|
213
|
-
- Fix method signature of Coder#encode.
|
214
|
-
|
215
|
-
|
216
|
-
== v0.19.0 [2016-09-21] Michael Granger <ged@FaerieMUD.org>
|
217
|
-
|
218
|
-
- Deprecate Ruby 1.9
|
219
|
-
|
220
|
-
Enhancements:
|
221
|
-
- Respect and convert character encoding of all strings sent
|
222
|
-
to the server. #231
|
223
|
-
- Add PostgreSQL-9.5 functions PQsslInUse(), PQsslAttribute()
|
224
|
-
and PQsslAttributeNames().
|
225
|
-
- Various documentation fixes and improvements.
|
226
|
-
- Add mechanism to build without pg_config:
|
227
|
-
gem install pg -- --with-pg-config=ignore
|
228
|
-
- Update Windows binary gems to Ruby-2.3, PostgreSQL 9.5.4 and
|
229
|
-
OpenSSL 1.0.2f.
|
230
|
-
- Add JSON coders and add them to BasicTypeMapForResults and
|
231
|
-
BasicTypeMapBasedOnResult
|
232
|
-
- Allow build from git per bundler.
|
233
|
-
|
234
|
-
Bugfixes:
|
235
|
-
- Release GVL while calling PQsetClientEncoding(). #245
|
236
|
-
- Add __EXTENSIONS__ to Solaris/SmartOS for Ruby >= 2.3.x. #236
|
237
|
-
- Fix wrong exception when running SQL while in Connection#copy_data
|
238
|
-
block for output
|
239
|
-
|
240
|
-
|
241
|
-
== v0.18.4 [2015-11-13] Michael Granger <ged@FaerieMUD.org>
|
242
|
-
|
243
|
-
Enhancements:
|
244
|
-
- Fixing compilation problems with Microsoft Visual Studio 2008. GH #10
|
245
|
-
- Avoid name clash with xcode and jemalloc. PR#22, PR#23
|
246
|
-
|
247
|
-
Bugfixes:
|
248
|
-
- Avoid segfault, when quote_ident or TextEncoder::Identifier
|
249
|
-
is called with Array containing non-strings. #226
|
250
|
-
|
251
|
-
|
252
|
-
== v0.18.3 [2015-09-03] Michael Granger <ged@FaerieMUD.org>
|
253
|
-
|
254
|
-
Enhancements:
|
255
|
-
- Use rake-compiler-dock to build windows gems easily.
|
256
|
-
- Add CI-tests on appveyor and fix test cases accordingly.
|
257
|
-
|
258
|
-
Bugfixes:
|
259
|
-
- Fix data type resulting in wrong base64 encoding.
|
260
|
-
- Change instance_of checks to kind_of for subclassing. #220
|
261
|
-
- TextDecoder::Date returns an actual Ruby Date instead of a Time
|
262
|
-
(thanks to Thomas Ramfjord)
|
263
|
-
|
264
|
-
|
265
|
-
== v0.18.2 [2015-05-14] Michael Granger <ged@FaerieMUD.org>
|
266
|
-
|
267
|
-
Enhancements:
|
268
|
-
|
269
|
-
- Allow URI connection string (thanks to Chris Bandy)
|
270
|
-
- Allow Array type parameter to conn.quote_ident
|
271
|
-
|
272
|
-
Bugfixes:
|
273
|
-
|
274
|
-
- Speedups and fixes for PG::TextDecoder::Identifier and quoting behavior
|
275
|
-
- Revert addition of PG::Connection#hostaddr [#202].
|
276
|
-
- Fix decoding of fractional timezones and timestamps [#203]
|
277
|
-
- Fixes for non-C99 compilers
|
278
|
-
- Avoid possible symbol name clash when linking againt static libpq.
|
279
|
-
|
280
|
-
|
281
|
-
== v0.18.1 [2015-01-05] Michael Granger <ged@FaerieMUD.org>
|
282
|
-
|
283
|
-
Correct the minimum compatible Ruby version to 1.9.3. #199
|
284
|
-
|
285
|
-
|
286
|
-
== v0.18.0 [2015-01-01] Michael Granger <ged@FaerieMUD.org>
|
287
|
-
|
288
|
-
Bugfixes:
|
289
|
-
- Fix OID to Integer mapping (it is unsigned now). #187
|
290
|
-
- Fix possible segfault in conjunction with notice receiver. #185
|
291
|
-
|
292
|
-
Enhancements:
|
293
|
-
|
294
|
-
- Add an extensible type cast system.
|
295
|
-
- A lot of performance improvements.
|
296
|
-
- Return frozen String objects for result field names.
|
297
|
-
- Add PG::Result#stream_each and #stream_each_row as fast helpers for
|
298
|
-
the single row mode.
|
299
|
-
- Add Enumerator variant to PG::Result#each and #each_row.
|
300
|
-
- Add PG::Connection#conninfo and #hostaddr.
|
301
|
-
- Add PG.init_openssl and PG.init_ssl methods.
|
302
|
-
- Add PG::Result.inspect
|
303
|
-
- Force zero termination for all text strings that are given to libpq.
|
304
|
-
It raises an ArgumentError if the string contains a null byte.
|
305
|
-
- Update Windows cross build to PostgreSQL 9.3.
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
== v0.17.1 [2013-12-18] Michael Granger <ged@FaerieMUD.org>
|
310
|
-
|
311
|
-
Bugfixes:
|
312
|
-
|
313
|
-
- Fix compatibility with signal handlers defined in Ruby. This reverts
|
314
|
-
cancelation of queries running on top of the blocking libpq API (like
|
315
|
-
Connection#exec) in case of signals. As an alternative the #async_exec
|
316
|
-
can be used, which is reverted to use the non-blocking API, again.
|
317
|
-
- Wrap PQcancel to be called without GVL. It internally waits for
|
318
|
-
the canceling connection.
|
319
|
-
|
320
|
-
Documentation fixes:
|
321
|
-
|
322
|
-
- Fix documentation for PG::Connection::conndefaults.
|
323
|
-
|
324
|
-
|
325
|
-
== v0.17.0 [2013-09-15] Michael Granger <ged@FaerieMUD.org>
|
326
|
-
|
327
|
-
Bugfixes:
|
328
|
-
|
329
|
-
- Fix crash by calling PQsend* and PQisBusy without GVL (#171).
|
330
|
-
|
331
|
-
Enhancements:
|
332
|
-
|
333
|
-
- Add method PG::Connection#copy_data.
|
334
|
-
- Add a Gemfile to allow installation of dependencies with bundler.
|
335
|
-
- Add compatibility with rake-compiler-dev-box.
|
336
|
-
- Return self from PG::Result#check instead of nil. This allows
|
337
|
-
to stack method calls.
|
338
|
-
|
339
|
-
|
340
|
-
== v0.16.0 [2013-07-22] Michael Granger <ged@FaerieMUD.org>
|
341
|
-
|
342
|
-
Bugfixes:
|
343
|
-
|
344
|
-
- Avoid warnings about uninitialized instance variables.
|
345
|
-
- Use a more standard method of adding library and include directories.
|
346
|
-
This fixes build on AIX (Github #7) and Solaris (#164).
|
347
|
-
- Cancel the running query, if a thread is about to be killed (e.g. by CTRL-C).
|
348
|
-
- Fix GVL issue with wait_for_notify/notifies and notice callbacks.
|
349
|
-
- Set proper encoding on the string returned by quote_ident, escape_literal
|
350
|
-
and escape_identifier (#163).
|
351
|
-
- Use nil as PG::Error#result in case of a NULL-result from libpq (#166).
|
352
|
-
- Recalculate the timeout of conn#wait_for_notify and conn#block in case
|
353
|
-
of socket events that require re-runs of select().
|
354
|
-
|
355
|
-
Documentation fixes:
|
356
|
-
|
357
|
-
- Fix non working example for PGresult#error_field.
|
358
|
-
|
359
|
-
Enhancements:
|
360
|
-
|
361
|
-
- Add unique exception classes for each PostgreSQL error type (#5).
|
362
|
-
- Return result of the block in conn#transaction instead of nil (#158).
|
363
|
-
- Allow 'rake compile' and 'rake gem' on non mercurial repos.
|
364
|
-
- Add support for PG_DIAG_*_NAME error fields of PostgreSQL-9.3 (#161).
|
365
|
-
|
366
|
-
|
367
|
-
== v0.15.1 [2013-04-08] Michael Granger <ged@FaerieMUD.org>
|
368
|
-
|
369
|
-
Bugfixes:
|
370
|
-
|
371
|
-
- Shorten application_name to avoid warnings about truncated identifier.
|
372
|
-
|
373
|
-
|
374
|
-
== v0.15.0 [2013-03-03] Michael Granger <ged@FaerieMUD.org>
|
375
|
-
|
376
|
-
Bugfixes:
|
377
|
-
|
378
|
-
- Fix segfault in PG::Result#field_values when called with non String value.
|
379
|
-
- Fix encoding of messages delivered by notice callbacks.
|
380
|
-
- Fix text encoding for Connection#wait_for_notify and Connection#notifies.
|
381
|
-
- Fix 'Bad file descriptor' problems under Windows: wrong behaviour of
|
382
|
-
#wait_for_notify() and timeout handling of #block on Ruby 1.9.
|
383
|
-
|
384
|
-
Documentation fixes:
|
385
|
-
|
386
|
-
- conn#socket() can not be used with IO.for_fd() on Windows.
|
387
|
-
|
388
|
-
Enhancements:
|
389
|
-
|
390
|
-
- Tested under Ruby 2.0.0p0.
|
391
|
-
- Add single row mode of PostgreSQL 9.2.
|
392
|
-
- Set fallback_application_name to programm name $0. Thanks to Will Leinweber
|
393
|
-
for the patch.
|
394
|
-
- Release Ruby's GVL while calls to blocking libpq functions to allow better
|
395
|
-
concurrency in threaded applications.
|
396
|
-
- Refactor different variants of waiting for the connection socket.
|
397
|
-
- Make use of rb_thread_fd_select() on Ruby 1.9 and avoid deprecated
|
398
|
-
rb_thread_select().
|
399
|
-
- Add an example of how to insert array data using a prepared statement (#145).
|
400
|
-
- Add continous integration tests on travis-ci.org.
|
401
|
-
- Add PG::Result#each_row for iterative over result sets by row. Thanks to
|
402
|
-
Aaron Patterson for the patch.
|
403
|
-
- Add a PG::Connection#socket_io method for fetching a (non-autoclosing) IO
|
404
|
-
object for the connection's socket.
|
405
|
-
|
406
|
-
Specs:
|
407
|
-
|
408
|
-
- Fix various specs to run on older PostgreSQL and Ruby versions.
|
409
|
-
- Avoid fork() in specs to allow usage on Windows and JRuby.
|
410
|
-
|
411
|
-
|
412
|
-
== v0.14.1 [2012-09-02] Michael Granger <ged@FaerieMUD.org>
|
413
|
-
|
414
|
-
Important bugfix:
|
415
|
-
|
416
|
-
- Fix stack overflow bug in PG::Result#values and #column_values (#135). Thanks
|
417
|
-
to everyone who reported the bug, and Lars Kanis especially for figuring out
|
418
|
-
the problem.
|
419
|
-
|
420
|
-
PostgreSQL 9.2 beta fixes:
|
421
|
-
|
422
|
-
- Recognize PGRES_SINGLE_TUPLE as OK when checking PGresult (Jeremy Evans)
|
423
|
-
|
424
|
-
Documentation fixes:
|
425
|
-
|
426
|
-
- Add note about the usage scope of the result object received by the
|
427
|
-
#set_notice_receiver block. (Lars Kanis)
|
428
|
-
- Add PGRES_COPY_BOTH to documentation of PG::Result#result_status. (Lars Kanis)
|
429
|
-
- Add some documentation to PG::Result#fnumber (fix for #139)
|
430
|
-
|
431
|
-
|
432
|
-
== v0.14.0 [2012-06-17] Michael Granger <ged@FaerieMUD.org>
|
433
|
-
|
434
|
-
Bugfixes:
|
435
|
-
#47, #104
|
436
|
-
|
437
|
-
|
438
|
-
New Methods for PostgreSQL 9 and async API support:
|
439
|
-
PG
|
440
|
-
- ::library_version
|
441
|
-
|
442
|
-
PG::Connection
|
443
|
-
- ::ping
|
444
|
-
- #escape_literal
|
445
|
-
- #escape_identifier
|
446
|
-
- #set_default_encoding
|
447
|
-
|
448
|
-
PG::Result
|
449
|
-
- #check
|
450
|
-
|
451
|
-
|
452
|
-
New Samples:
|
453
|
-
|
454
|
-
This release also comes with a collection of contributed sample scripts for
|
455
|
-
doing resource-utilization reports, graphing database statistics,
|
456
|
-
monitoring for replication lag, shipping WAL files for replication,
|
457
|
-
automated tablespace partitioning, etc. See the samples/ directory.
|
458
|
-
|
459
|
-
|
460
|
-
== v0.13.2 [2012-02-22] Michael Granger <ged@FaerieMUD.org>
|
461
|
-
|
462
|
-
- Make builds against PostgreSQL earlier than 8.3 fail with a descriptive
|
463
|
-
message instead of a compile failure.
|
464
|
-
|
465
|
-
|
466
|
-
== v0.13.1 [2012-02-12] Michael Granger <ged@FaerieMUD.org>
|
467
|
-
|
468
|
-
- Made use of a finished PG::Connection raise a PG::Error instead of
|
469
|
-
a fatal error (#110).
|
470
|
-
- Added missing BSDL license file (#108)
|
471
|
-
|
472
|
-
|
473
|
-
== v0.13.0 [2012-02-09] Michael Granger <ged@FaerieMUD.org>
|
474
|
-
|
475
|
-
Reorganization of modules/classes to be better Ruby citizens (with backward-compatible aliases):
|
476
|
-
- Created toplevel namespace 'PG' to correspond with the gem name.
|
477
|
-
- Renamed PGconn to PG::Connection (with ::PGconn alias)
|
478
|
-
- Renamed PGresult to PG::Result (with ::PGresult alias)
|
479
|
-
- Renamed PGError to PG::Error (with ::PGError alias)
|
480
|
-
- Declare all constants inside PG::Constants, then include them in
|
481
|
-
PG::Connection and PG::Result for backward-compatibility, and
|
482
|
-
in PG for convenience.
|
483
|
-
- Split the extension source up by class/module.
|
484
|
-
- Removed old compatibility code for PostgreSQL versions < 8.3
|
485
|
-
|
486
|
-
Documentation:
|
487
|
-
- Clarified licensing, updated to Ruby 1.9's license.
|
488
|
-
- Merged authors list, added some missing people to the Contributor's
|
489
|
-
list.
|
490
|
-
- Cleaned up the sample/ directory
|
491
|
-
- Making contact info a bit clearer, link to the Google+ page and
|
492
|
-
the mailing list
|
493
|
-
|
494
|
-
Enhancements:
|
495
|
-
- Added a convenience method: PG.connect -> PG::Connection.new
|
496
|
-
|
497
|
-
Bugfixes:
|
498
|
-
- Fixed LATIN5-LATIN10 Postgres<->Ruby encoding conversions
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
== v0.12.2 [2012-01-03] Michael Granger <ged@FaerieMUD.org>
|
503
|
-
|
504
|
-
- Fix for the 1.8.7 breakage introduced by the st.h fix for alternative Ruby
|
505
|
-
implementations (#97 and #98). Thanks to Lars Kanis for the patch.
|
506
|
-
- Encode error messages with the connection's encoding under 1.9 (#96)
|
507
|
-
|
508
|
-
|
509
|
-
== v0.12.1 [2011-12-14] Michael Granger <ged@FaerieMUD.org>
|
510
|
-
|
511
|
-
- Made rake-compiler a dev dependency, as Rubygems doesn't use the Rakefile
|
512
|
-
for compiling the extension. Thanks to eolamey@bitbucket and Jeremy Evans
|
513
|
-
for pointing this out.
|
514
|
-
- Added an explicit include for ruby/st.h for implementations that need it
|
515
|
-
(fixes #95).
|
516
|
-
|
517
|
-
|
518
|
-
== v0.12.0 [2011-12-07] Michael Granger <ged@FaerieMUD.org>
|
519
|
-
|
520
|
-
- PGconn#wait_for_notify
|
521
|
-
* send nil as the payload argument if the NOTIFY didn't have one.
|
522
|
-
* accept a nil argument for no timeout (Sequel support)
|
523
|
-
* Fixed API docs
|
524
|
-
* Taint and encode event name and payload
|
525
|
-
- Handle errors while rb_thread_select()ing in PGconn#block.
|
526
|
-
(Brian Weaver).
|
527
|
-
- Fixes for Win32 async queries (Rafał Bigaj)
|
528
|
-
- Memory leak fixed: Closing opened WSA event. (rafal)
|
529
|
-
- Fixes for #66 Win32 asynchronous queries hang on connection
|
530
|
-
error. (rafal)
|
531
|
-
- Fixed a typo in PGconn#error_message's documentation
|
532
|
-
- fixing unused variable warnings for ruby 1.9.3 (Aaron Patterson)
|
533
|
-
- Build system bugfixes
|
534
|
-
- Converted to Hoe
|
535
|
-
- Updates for the Win32 binary gem builds (Lars Kanis)
|
536
|
-
|
537
|
-
|
538
|
-
== v0.11.0 [2011-02-09] Michael Granger <ged@FaerieMUD.org>
|
539
|
-
|
540
|
-
Enhancements:
|
541
|
-
|
542
|
-
* Added a PGresult#values method to fetch all result rows as an Array of
|
543
|
-
Arrays. Thanks to Jason Yanowitz (JYanowitz at enovafinancial dot com) for
|
544
|
-
the patch.
|
545
|
-
|
546
|
-
|
547
|
-
== v0.10.1 [2011-01-19] Michael Granger <ged@FaerieMUD.org>
|
548
|
-
|
549
|
-
Bugfixes:
|
550
|
-
|
551
|
-
* Add an include guard for pg.h
|
552
|
-
* Simplify the common case require of the ext
|
553
|
-
* Include the extconf header
|
554
|
-
* Fix compatibility with versions of PostgreSQL without PQgetCancel. (fixes #36)
|
555
|
-
* Fix require for natively-compiled extension under Windows. (fixes #55)
|
556
|
-
* Change rb_yield_splat() to rb_yield_values() for compatibility with Rubinius. (fixes #54)
|
557
|
-
|
558
|
-
|
559
|
-
== v0.10.0 [2010-12-01] Michael Granger <ged@FaerieMUD.org>
|
560
|
-
|
561
|
-
Enhancements:
|
562
|
-
|
563
|
-
* Added support for the payload of NOTIFY events (w/Mahlon E. Smith)
|
564
|
-
* Updated the build system with Rubygems suggestions from RubyConf 2010
|
565
|
-
|
566
|
-
Bugfixes:
|
567
|
-
|
568
|
-
* Fixed issue with PGconn#wait_for_notify that caused it to miss notifications that happened after
|
569
|
-
the LISTEN but before the wait_for_notify.
|
570
|
-
|
571
|
-
== v0.9.0 [2010-02-28] Michael Granger <ged@FaerieMUD.org>
|
572
|
-
|
573
|
-
Bugfixes.
|
574
|
-
|
575
|
-
== v0.8.0 [2009-03-28] Jeff Davis <davis.jeffrey@gmail.com>
|
576
|
-
|
577
|
-
Bugfixes, better Windows support.
|
578
|
-
|
data/README.ja.rdoc
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
= pg
|
2
|
-
|
3
|
-
home :: https://github.com/ged/ruby-pg
|
4
|
-
docs :: http://deveiate.org/code/pg
|
5
|
-
|
6
|
-
|
7
|
-
== Description
|
8
|
-
|
9
|
-
This file needs a translation of the English README. Pull requests, patches, or
|
10
|
-
volunteers gladly accepted.
|
11
|
-
|
12
|
-
Until such time, please accept my sincere apologies for not knowing Japanese.
|
13
|
-
|