pg 1.1.4
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 +7 -0
- checksums.yaml.gz.sig +3 -0
- data.tar.gz.sig +0 -0
- data/.gemtest +0 -0
- data/BSDL +22 -0
- data/ChangeLog +6595 -0
- data/Contributors.rdoc +46 -0
- data/History.rdoc +492 -0
- data/LICENSE +56 -0
- data/Manifest.txt +72 -0
- data/POSTGRES +23 -0
- data/README-OS_X.rdoc +68 -0
- data/README-Windows.rdoc +56 -0
- data/README.ja.rdoc +14 -0
- data/README.rdoc +178 -0
- data/Rakefile +215 -0
- data/Rakefile.cross +298 -0
- data/ext/errorcodes.def +968 -0
- data/ext/errorcodes.rb +45 -0
- data/ext/errorcodes.txt +478 -0
- data/ext/extconf.rb +94 -0
- data/ext/gvl_wrappers.c +17 -0
- data/ext/gvl_wrappers.h +241 -0
- data/ext/pg.c +640 -0
- data/ext/pg.h +365 -0
- data/ext/pg_binary_decoder.c +229 -0
- data/ext/pg_binary_encoder.c +162 -0
- data/ext/pg_coder.c +549 -0
- data/ext/pg_connection.c +4252 -0
- data/ext/pg_copy_coder.c +596 -0
- data/ext/pg_errors.c +95 -0
- data/ext/pg_result.c +1501 -0
- data/ext/pg_text_decoder.c +981 -0
- data/ext/pg_text_encoder.c +682 -0
- data/ext/pg_tuple.c +541 -0
- data/ext/pg_type_map.c +166 -0
- data/ext/pg_type_map_all_strings.c +116 -0
- data/ext/pg_type_map_by_class.c +239 -0
- data/ext/pg_type_map_by_column.c +312 -0
- data/ext/pg_type_map_by_mri_type.c +284 -0
- data/ext/pg_type_map_by_oid.c +355 -0
- data/ext/pg_type_map_in_ruby.c +299 -0
- data/ext/util.c +149 -0
- data/ext/util.h +65 -0
- data/ext/vc/pg.sln +26 -0
- data/ext/vc/pg_18/pg.vcproj +216 -0
- data/ext/vc/pg_19/pg_19.vcproj +209 -0
- data/lib/pg.rb +74 -0
- data/lib/pg/basic_type_mapping.rb +459 -0
- data/lib/pg/binary_decoder.rb +22 -0
- data/lib/pg/coder.rb +83 -0
- data/lib/pg/connection.rb +291 -0
- data/lib/pg/constants.rb +11 -0
- data/lib/pg/exceptions.rb +11 -0
- data/lib/pg/result.rb +31 -0
- data/lib/pg/text_decoder.rb +47 -0
- data/lib/pg/text_encoder.rb +69 -0
- data/lib/pg/tuple.rb +30 -0
- data/lib/pg/type_map_by_column.rb +15 -0
- data/spec/data/expected_trace.out +26 -0
- data/spec/data/random_binary_data +0 -0
- data/spec/helpers.rb +380 -0
- data/spec/pg/basic_type_mapping_spec.rb +508 -0
- data/spec/pg/connection_spec.rb +1872 -0
- data/spec/pg/connection_sync_spec.rb +41 -0
- data/spec/pg/result_spec.rb +491 -0
- data/spec/pg/tuple_spec.rb +280 -0
- data/spec/pg/type_map_by_class_spec.rb +138 -0
- data/spec/pg/type_map_by_column_spec.rb +222 -0
- data/spec/pg/type_map_by_mri_type_spec.rb +136 -0
- data/spec/pg/type_map_by_oid_spec.rb +149 -0
- data/spec/pg/type_map_in_ruby_spec.rb +164 -0
- data/spec/pg/type_map_spec.rb +22 -0
- data/spec/pg/type_spec.rb +949 -0
- data/spec/pg_spec.rb +50 -0
- metadata +322 -0
- metadata.gz.sig +0 -0
data/Contributors.rdoc
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
|
2
|
+
Thanks to all the great people that have contributed code, suggestions, and patches through the
|
3
|
+
years. If you contribute a patch, please include a patch for this file that adds your name to the
|
4
|
+
list.
|
5
|
+
|
6
|
+
* Dennis Vshivkov <walrus@amur.ru>
|
7
|
+
* Gabriel Emerson <gemerson@evalsoft.com>
|
8
|
+
* Noboru Saitou <noborus@netlab.jp>
|
9
|
+
* Akinori MUSHA <knu@iDaemons.org>
|
10
|
+
* Andy Yu <is@gnuchina.org>
|
11
|
+
* Ceri Storey <cez@compsoc.man.ac.uk>
|
12
|
+
* Gavin Kistner <gavin@refinery.com>
|
13
|
+
* Henry T. So Jr. <henryso@panix.com>
|
14
|
+
* Jeremy Henty <jeremy@chaos.org.uk>
|
15
|
+
* <kasa@air.linkclub.or.jp>
|
16
|
+
* Leon Brooks <leon-ruby-postgres@cyberknights.com.au>
|
17
|
+
* Martin Hedenfalk <mahe@kth.se>
|
18
|
+
* Yukihiro Matsumoto <matz@zetabits.com>
|
19
|
+
* Eiji Matsumoto <usagi@ruby.club.or.jp>
|
20
|
+
* MoonWolf <moonwolf@moonwolf.com>
|
21
|
+
* <m_seki@mva.biglobe.ne.jp>
|
22
|
+
* Nate Haggard <nate@wordplace.com>
|
23
|
+
* Neil Conway <nconway@klamath.dyndns.org>
|
24
|
+
* Noboru Matui <silicon@mx1.freemail.ne.jp>
|
25
|
+
* Okada Jun <yun@be-in.org>
|
26
|
+
* Shirai,Kaoru <shirai@p1jp.com>
|
27
|
+
* Riley <wormwood@speakeasy.org>
|
28
|
+
* shibata <kshibata@vesta.ocn.ne.jp>
|
29
|
+
* <greentea@fa2.so-net.ne.jp>
|
30
|
+
* ts <decoux@moulon.inra.fr>
|
31
|
+
* Yuta TSUBOI <yuuta-t@is.aist-nara.ac.jp>
|
32
|
+
* Lugovoi Nikolai <meadow.nnick@gmail.com>
|
33
|
+
* Jeff Davis <ruby@j-davis.com>
|
34
|
+
* Bertram Scharpf <software@bertram-scharpf.de>
|
35
|
+
* Michael Granger <ged@FaerieMUD.org>
|
36
|
+
* Mahlon E. Smith <mahlon@martini.nu>
|
37
|
+
* Lars Kanis <kanis@comcard.de>
|
38
|
+
* Jason Yanowitz <me-bitbucket@jasonyanowitz.com>
|
39
|
+
* Charlie Savage <cfis@rubyforge.org>
|
40
|
+
* Rafał Bigaj <rafal.bigaj@gmail.com>
|
41
|
+
* Jason Yanowitz <me-bitbucket@jasonyanowitz.com>
|
42
|
+
* Greg Hazel <ghazel@gmail.com>
|
43
|
+
* Chris White <cwprogram@live.com>
|
44
|
+
* Aaron Patterson <aaron.patterson@gmail.com>
|
45
|
+
* Tim Felgentreff <timfelgentreff@gmail.com>
|
46
|
+
|
data/History.rdoc
ADDED
@@ -0,0 +1,492 @@
|
|
1
|
+
== v1.1.4 [2019-01-08] Michael Granger <ged@FaerieMUD.org>
|
2
|
+
|
3
|
+
- Fix PG::BinaryDecoder::Timestamp on 32 bit systems. # 284
|
4
|
+
- Add new error-codes of PostgreSQL-11.
|
5
|
+
- Add ruby-2.6 support for Windows fat binary gems and remove ruby-2.0 and 2.1.
|
6
|
+
|
7
|
+
|
8
|
+
== v1.1.3 [2018-09-06] Michael Granger <ged@FaerieMUD.org>
|
9
|
+
|
10
|
+
- Revert opimization that was sometimes causing EBADF in rb_wait_for_single_fd().
|
11
|
+
|
12
|
+
|
13
|
+
== v1.1.2 [2018-08-28] Michael Granger <ged@FaerieMUD.org>
|
14
|
+
|
15
|
+
- Don't generate aliases for JOHAB encoding.
|
16
|
+
This avoids linking to deprecated/private function rb_enc(db)_alias().
|
17
|
+
|
18
|
+
|
19
|
+
== v1.1.1 [2018-08-27] Michael Granger <ged@FaerieMUD.org>
|
20
|
+
|
21
|
+
- Reduce deprecation warnings to only one message per deprecation.
|
22
|
+
|
23
|
+
|
24
|
+
== v1.1.0 [2018-08-24] Michael Granger <ged@FaerieMUD.org>
|
25
|
+
|
26
|
+
Deprecated (disable warnings per PG_SKIP_DEPRECATION_WARNING=1):
|
27
|
+
- Forwarding conn.exec to conn.exec_params is deprecated.
|
28
|
+
- Forwarding conn.exec_params to conn.exec is deprecated.
|
29
|
+
- Forwarding conn.async_exec to conn.async_exec_params.
|
30
|
+
- Forwarding conn.send_query to conn.send_query_params is deprecated.
|
31
|
+
- Forwarding conn.async_exec_params to conn.async_exec is deprecated.
|
32
|
+
|
33
|
+
PG::Connection enhancements:
|
34
|
+
- Provide PG::Connection#sync_* and PG::Connection#async_* query methods for explicit calling syncronous or asynchronous libpq API.
|
35
|
+
- Make PG::Connection#exec and siblings switchable between sync and async API per PG::Connection.async_api= and change the default to async flavors.
|
36
|
+
- Add async flavors of exec_params, prepare, exec_prepared, describe_prepared and describe_portal.
|
37
|
+
They are identical to their syncronous counterpart, but make use of PostgreSQL's async API.
|
38
|
+
- Replace `rb_thread_fd_select()` by faster `rb_wait_for_single_fd()` in `conn.block` and `conn.async_exec` .
|
39
|
+
- Add PG::Connection#discard_results .
|
40
|
+
- 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.
|
41
|
+
|
42
|
+
Result retrieval enhancements:
|
43
|
+
- Add PG::Result#tuple_values to retrieve all field values of a row as array.
|
44
|
+
- Add PG::Tuple, PG::Result#tuple and PG::Result#stream_each_tuple .
|
45
|
+
PG::Tuple offers a way to lazy cast result values.
|
46
|
+
- Estimate PG::Result size allocated by libpq and notify the garbage collector about it when running on Ruby-2.4 or newer.
|
47
|
+
- Make the estimated PG::Result size available to ObjectSpace.memsize_of(result) .
|
48
|
+
|
49
|
+
Type cast enhancements:
|
50
|
+
- Replace Ruby code by a faster C implementation of the SimpleDecoder's timestamp decode functions. github #20
|
51
|
+
- Interpret years with up to 7 digists and BC dates by timestamp decoder.
|
52
|
+
- Add text timestamp decoders for UTC vs. local timezone variations.
|
53
|
+
- Add text timestamp encoders for UTC timezone.
|
54
|
+
- Add decoders for binary timestamps: PG::BinaryDecoder::Timestamp and variations.
|
55
|
+
- Add PG::Coder#flags accessor to allow modifications of de- respectively encoder behaviour.
|
56
|
+
- Add a flag to raise TypeError for invalid input values to PG::TextDecoder::Array .
|
57
|
+
- Add a text decoder for inet/cidr written in C.
|
58
|
+
- Add a numeric decoder written in C.
|
59
|
+
- Ensure input text is zero terminated for text format in PG::Coder#decode .
|
60
|
+
|
61
|
+
Source code enhancements:
|
62
|
+
- Fix headers and permission bits of various repository files.
|
63
|
+
|
64
|
+
Bugfixes:
|
65
|
+
- Properly decode array with prepended dimensions. #272
|
66
|
+
For now dimension decorations are ignored, but a correct Array is returned.
|
67
|
+
- Array-Decoder: Avoid leaking memory when an Exception is raised while parsing. Fixes #279
|
68
|
+
|
69
|
+
|
70
|
+
== v1.0.0 [2018-01-10] Michael Granger <ged@FaerieMUD.org>
|
71
|
+
|
72
|
+
Deprecated:
|
73
|
+
- Deprecate Ruby older than 2.2.
|
74
|
+
- Deprecate Connection#socket in favor of #socket_io.
|
75
|
+
|
76
|
+
Removed:
|
77
|
+
- Remove compatibility code for Ruby < 2.0 and PostgreSQL < 9.2.
|
78
|
+
- Remove partial compatibility with Rubinius.
|
79
|
+
- Remove top-level constants PGconn, PGresult, and PGError.
|
80
|
+
|
81
|
+
Enhancements:
|
82
|
+
- Update error codes to PostgreSQL-10
|
83
|
+
- Update Windows binary gems to Ruby-2.5, PostgreSQL 10.1 and
|
84
|
+
OpenSSL 1.1.0g.
|
85
|
+
|
86
|
+
Bugfixes:
|
87
|
+
- Fix URI detection for connection strings. #265 (thanks to jjoos)
|
88
|
+
- MINGW: Workaround segfault due to GCC linker error in conjunction with MSVC.
|
89
|
+
This happens when linking to PostgreSQL-10.0-x64 from EnterpriseDB.
|
90
|
+
|
91
|
+
Documentation fixes:
|
92
|
+
- Add PostgreSQL version since when the given function is supported. #263
|
93
|
+
- Better documentation to `encoder` and `decoder` arguments of COPY related methods.
|
94
|
+
|
95
|
+
|
96
|
+
== v0.21.0 [2017-06-12] Michael Granger <ged@FaerieMUD.org>
|
97
|
+
|
98
|
+
Enhancements:
|
99
|
+
- Move add_dll_directory to the Runtime namespace for newest versions
|
100
|
+
of RubyInstaller.
|
101
|
+
- Deprecate PGconn, PGresult, and PGError top-level constants; a warning
|
102
|
+
will be output the first time one of them is used. They will be
|
103
|
+
removed in the upcoming 1.0 release.
|
104
|
+
|
105
|
+
Documentation fixes:
|
106
|
+
- Update the docs for PG::Result#cmd_tuples
|
107
|
+
|
108
|
+
New Samples:
|
109
|
+
- Add an example of the nicer #copy_data way of doing `COPY`.
|
110
|
+
|
111
|
+
|
112
|
+
== v0.20.0 [2017-03-10] Michael Granger <ged@FaerieMUD.org>
|
113
|
+
|
114
|
+
Enhancements:
|
115
|
+
- Update error codes to PostgreSQL-9.6
|
116
|
+
- Update Windows binary gems to Ruby-2.4, PostgreSQL 9.6.1 and
|
117
|
+
OpenSSL 1.0.2j.
|
118
|
+
- Add support for RubyInstaller2 to Windows binary gems.
|
119
|
+
|
120
|
+
Bugfixes:
|
121
|
+
- Use secure JSON methods for JSON (de)serialisation. #248
|
122
|
+
- Fix Result#inspect on a cleared result.
|
123
|
+
- Fix test case that failed on Ruby-2.4. #255
|
124
|
+
|
125
|
+
Documentation fixes:
|
126
|
+
- Talk about Integer instead of Fixnum.
|
127
|
+
- Fix method signature of Coder#encode.
|
128
|
+
|
129
|
+
|
130
|
+
== v0.19.0 [2016-09-21] Michael Granger <ged@FaerieMUD.org>
|
131
|
+
|
132
|
+
- Deprecate Ruby 1.9
|
133
|
+
|
134
|
+
Enhancements:
|
135
|
+
- Respect and convert character encoding of all strings sent
|
136
|
+
to the server. #231
|
137
|
+
- Add PostgreSQL-9.5 functions PQsslInUse(), PQsslAttribute()
|
138
|
+
and PQsslAttributeNames().
|
139
|
+
- Various documentation fixes and improvements.
|
140
|
+
- Add mechanism to build without pg_config:
|
141
|
+
gem install pg -- --with-pg-config=ignore
|
142
|
+
- Update Windows binary gems to Ruby-2.3, PostgreSQL 9.5.4 and
|
143
|
+
OpenSSL 1.0.2f.
|
144
|
+
- Add JSON coders and add them to BasicTypeMapForResults and
|
145
|
+
BasicTypeMapBasedOnResult
|
146
|
+
- Allow build from git per bundler.
|
147
|
+
|
148
|
+
Bugfixes:
|
149
|
+
- Release GVL while calling PQsetClientEncoding(). #245
|
150
|
+
- Add __EXTENSIONS__ to Solaris/SmartOS for Ruby >= 2.3.x. #236
|
151
|
+
- Fix wrong exception when running SQL while in Connection#copy_data
|
152
|
+
block for output
|
153
|
+
|
154
|
+
|
155
|
+
== v0.18.4 [2015-11-13] Michael Granger <ged@FaerieMUD.org>
|
156
|
+
|
157
|
+
Enhancements:
|
158
|
+
- Fixing compilation problems with Microsoft Visual Studio 2008. GH #10
|
159
|
+
- Avoid name clash with xcode and jemalloc. PR#22, PR#23
|
160
|
+
|
161
|
+
Bugfixes:
|
162
|
+
- Avoid segfault, when quote_ident or TextEncoder::Identifier
|
163
|
+
is called with Array containing non-strings. #226
|
164
|
+
|
165
|
+
|
166
|
+
== v0.18.3 [2015-09-03] Michael Granger <ged@FaerieMUD.org>
|
167
|
+
|
168
|
+
Enhancements:
|
169
|
+
- Use rake-compiler-dock to build windows gems easily.
|
170
|
+
- Add CI-tests on appveyor and fix test cases accordingly.
|
171
|
+
|
172
|
+
Bugfixes:
|
173
|
+
- Fix data type resulting in wrong base64 encoding.
|
174
|
+
- Change instance_of checks to kind_of for subclassing. #220
|
175
|
+
- TextDecoder::Date returns an actual Ruby Date instead of a Time
|
176
|
+
(thanks to Thomas Ramfjord)
|
177
|
+
|
178
|
+
|
179
|
+
== v0.18.2 [2015-05-14] Michael Granger <ged@FaerieMUD.org>
|
180
|
+
|
181
|
+
Enhancements:
|
182
|
+
|
183
|
+
- Allow URI connection string (thanks to Chris Bandy)
|
184
|
+
- Allow Array type parameter to conn.quote_ident
|
185
|
+
|
186
|
+
Bugfixes:
|
187
|
+
|
188
|
+
- Speedups and fixes for PG::TextDecoder::Identifier and quoting behavior
|
189
|
+
- Revert addition of PG::Connection#hostaddr [#202].
|
190
|
+
- Fix decoding of fractional timezones and timestamps [#203]
|
191
|
+
- Fixes for non-C99 compilers
|
192
|
+
- Avoid possible symbol name clash when linking againt static libpq.
|
193
|
+
|
194
|
+
|
195
|
+
== v0.18.1 [2015-01-05] Michael Granger <ged@FaerieMUD.org>
|
196
|
+
|
197
|
+
Correct the minimum compatible Ruby version to 1.9.3. #199
|
198
|
+
|
199
|
+
|
200
|
+
== v0.18.0 [2015-01-01] Michael Granger <ged@FaerieMUD.org>
|
201
|
+
|
202
|
+
Bugfixes:
|
203
|
+
- Fix OID to Integer mapping (it is unsigned now). #187
|
204
|
+
- Fix possible segfault in conjunction with notice receiver. #185
|
205
|
+
|
206
|
+
Enhancements:
|
207
|
+
|
208
|
+
- Add an extensible type cast system.
|
209
|
+
- A lot of performance improvements.
|
210
|
+
- Return frozen String objects for result field names.
|
211
|
+
- Add PG::Result#stream_each and #stream_each_row as fast helpers for
|
212
|
+
the single row mode.
|
213
|
+
- Add Enumerator variant to PG::Result#each and #each_row.
|
214
|
+
- Add PG::Connection#conninfo and #hostaddr.
|
215
|
+
- Add PG.init_openssl and PG.init_ssl methods.
|
216
|
+
- Add PG::Result.inspect
|
217
|
+
- Force zero termination for all text strings that are given to libpq.
|
218
|
+
It raises an ArgumentError if the string contains a null byte.
|
219
|
+
- Update Windows cross build to PostgreSQL 9.3.
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
== v0.17.1 [2013-12-18] Michael Granger <ged@FaerieMUD.org>
|
224
|
+
|
225
|
+
Bugfixes:
|
226
|
+
|
227
|
+
- Fix compatibility with signal handlers defined in Ruby. This reverts
|
228
|
+
cancelation of queries running on top of the blocking libpq API (like
|
229
|
+
Connection#exec) in case of signals. As an alternative the #async_exec
|
230
|
+
can be used, which is reverted to use the non-blocking API, again.
|
231
|
+
- Wrap PQcancel to be called without GVL. It internally waits for
|
232
|
+
the canceling connection.
|
233
|
+
|
234
|
+
Documentation fixes:
|
235
|
+
|
236
|
+
- Fix documentation for PG::Connection::conndefaults.
|
237
|
+
|
238
|
+
|
239
|
+
== v0.17.0 [2013-09-15] Michael Granger <ged@FaerieMUD.org>
|
240
|
+
|
241
|
+
Bugfixes:
|
242
|
+
|
243
|
+
- Fix crash by calling PQsend* and PQisBusy without GVL (#171).
|
244
|
+
|
245
|
+
Enhancements:
|
246
|
+
|
247
|
+
- Add method PG::Connection#copy_data.
|
248
|
+
- Add a Gemfile to allow installation of dependencies with bundler.
|
249
|
+
- Add compatibility with rake-compiler-dev-box.
|
250
|
+
- Return self from PG::Result#check instead of nil. This allows
|
251
|
+
to stack method calls.
|
252
|
+
|
253
|
+
|
254
|
+
== v0.16.0 [2013-07-22] Michael Granger <ged@FaerieMUD.org>
|
255
|
+
|
256
|
+
Bugfixes:
|
257
|
+
|
258
|
+
- Avoid warnings about uninitialized instance variables.
|
259
|
+
- Use a more standard method of adding library and include directories.
|
260
|
+
This fixes build on AIX (Github #7) and Solaris (#164).
|
261
|
+
- Cancel the running query, if a thread is about to be killed (e.g. by CTRL-C).
|
262
|
+
- Fix GVL issue with wait_for_notify/notifies and notice callbacks.
|
263
|
+
- Set proper encoding on the string returned by quote_ident, escape_literal
|
264
|
+
and escape_identifier (#163).
|
265
|
+
- Use nil as PG::Error#result in case of a NULL-result from libpq (#166).
|
266
|
+
- Recalculate the timeout of conn#wait_for_notify and conn#block in case
|
267
|
+
of socket events that require re-runs of select().
|
268
|
+
|
269
|
+
Documentation fixes:
|
270
|
+
|
271
|
+
- Fix non working example for PGresult#error_field.
|
272
|
+
|
273
|
+
Enhancements:
|
274
|
+
|
275
|
+
- Add unique exception classes for each PostgreSQL error type (#5).
|
276
|
+
- Return result of the block in conn#transaction instead of nil (#158).
|
277
|
+
- Allow 'rake compile' and 'rake gem' on non mercurial repos.
|
278
|
+
- Add support for PG_DIAG_*_NAME error fields of PostgreSQL-9.3 (#161).
|
279
|
+
|
280
|
+
|
281
|
+
== v0.15.1 [2013-04-08] Michael Granger <ged@FaerieMUD.org>
|
282
|
+
|
283
|
+
Bugfixes:
|
284
|
+
|
285
|
+
- Shorten application_name to avoid warnings about truncated identifier.
|
286
|
+
|
287
|
+
|
288
|
+
== v0.15.0 [2013-03-03] Michael Granger <ged@FaerieMUD.org>
|
289
|
+
|
290
|
+
Bugfixes:
|
291
|
+
|
292
|
+
- Fix segfault in PG::Result#field_values when called with non String value.
|
293
|
+
- Fix encoding of messages delivered by notice callbacks.
|
294
|
+
- Fix text encoding for Connection#wait_for_notify and Connection#notifies.
|
295
|
+
- Fix 'Bad file descriptor' problems under Windows: wrong behaviour of
|
296
|
+
#wait_for_notify() and timeout handling of #block on Ruby 1.9.
|
297
|
+
|
298
|
+
Documentation fixes:
|
299
|
+
|
300
|
+
- conn#socket() can not be used with IO.for_fd() on Windows.
|
301
|
+
|
302
|
+
Enhancements:
|
303
|
+
|
304
|
+
- Tested under Ruby 2.0.0p0.
|
305
|
+
- Add single row mode of PostgreSQL 9.2.
|
306
|
+
- Set fallback_application_name to programm name $0. Thanks to Will Leinweber
|
307
|
+
for the patch.
|
308
|
+
- Release Ruby's GVL while calls to blocking libpq functions to allow better
|
309
|
+
concurrency in threaded applications.
|
310
|
+
- Refactor different variants of waiting for the connection socket.
|
311
|
+
- Make use of rb_thread_fd_select() on Ruby 1.9 and avoid deprecated
|
312
|
+
rb_thread_select().
|
313
|
+
- Add an example of how to insert array data using a prepared statement (#145).
|
314
|
+
- Add continous integration tests on travis-ci.org.
|
315
|
+
- Add PG::Result#each_row for iterative over result sets by row. Thanks to
|
316
|
+
Aaron Patterson for the patch.
|
317
|
+
- Add a PG::Connection#socket_io method for fetching a (non-autoclosing) IO
|
318
|
+
object for the connection's socket.
|
319
|
+
|
320
|
+
Specs:
|
321
|
+
|
322
|
+
- Fix various specs to run on older PostgreSQL and Ruby versions.
|
323
|
+
- Avoid fork() in specs to allow usage on Windows and JRuby.
|
324
|
+
|
325
|
+
|
326
|
+
== v0.14.1 [2012-09-02] Michael Granger <ged@FaerieMUD.org>
|
327
|
+
|
328
|
+
Important bugfix:
|
329
|
+
|
330
|
+
- Fix stack overflow bug in PG::Result#values and #column_values (#135). Thanks
|
331
|
+
to everyone who reported the bug, and Lars Kanis especially for figuring out
|
332
|
+
the problem.
|
333
|
+
|
334
|
+
PostgreSQL 9.2 beta fixes:
|
335
|
+
|
336
|
+
- Recognize PGRES_SINGLE_TUPLE as OK when checking PGresult (Jeremy Evans)
|
337
|
+
|
338
|
+
Documentation fixes:
|
339
|
+
|
340
|
+
- Add note about the usage scope of the result object received by the
|
341
|
+
#set_notice_receiver block. (Lars Kanis)
|
342
|
+
- Add PGRES_COPY_BOTH to documentation of PG::Result#result_status. (Lars Kanis)
|
343
|
+
- Add some documentation to PG::Result#fnumber (fix for #139)
|
344
|
+
|
345
|
+
|
346
|
+
== v0.14.0 [2012-06-17] Michael Granger <ged@FaerieMUD.org>
|
347
|
+
|
348
|
+
Bugfixes:
|
349
|
+
#47, #104
|
350
|
+
|
351
|
+
|
352
|
+
New Methods for PostgreSQL 9 and async API support:
|
353
|
+
PG
|
354
|
+
- ::library_version
|
355
|
+
|
356
|
+
PG::Connection
|
357
|
+
- ::ping
|
358
|
+
- #escape_literal
|
359
|
+
- #escape_identifier
|
360
|
+
- #set_default_encoding
|
361
|
+
|
362
|
+
PG::Result
|
363
|
+
- #check
|
364
|
+
|
365
|
+
|
366
|
+
New Samples:
|
367
|
+
|
368
|
+
This release also comes with a collection of contributed sample scripts for
|
369
|
+
doing resource-utilization reports, graphing database statistics,
|
370
|
+
monitoring for replication lag, shipping WAL files for replication,
|
371
|
+
automated tablespace partitioning, etc. See the samples/ directory.
|
372
|
+
|
373
|
+
|
374
|
+
== v0.13.2 [2012-02-22] Michael Granger <ged@FaerieMUD.org>
|
375
|
+
|
376
|
+
- Make builds against PostgreSQL earlier than 8.3 fail with a descriptive
|
377
|
+
message instead of a compile failure.
|
378
|
+
|
379
|
+
|
380
|
+
== v0.13.1 [2012-02-12] Michael Granger <ged@FaerieMUD.org>
|
381
|
+
|
382
|
+
- Made use of a finished PG::Connection raise a PG::Error instead of
|
383
|
+
a fatal error (#110).
|
384
|
+
- Added missing BSDL license file (#108)
|
385
|
+
|
386
|
+
|
387
|
+
== v0.13.0 [2012-02-09] Michael Granger <ged@FaerieMUD.org>
|
388
|
+
|
389
|
+
Reorganization of modules/classes to be better Ruby citizens (with backward-compatible aliases):
|
390
|
+
- Created toplevel namespace 'PG' to correspond with the gem name.
|
391
|
+
- Renamed PGconn to PG::Connection (with ::PGconn alias)
|
392
|
+
- Renamed PGresult to PG::Result (with ::PGresult alias)
|
393
|
+
- Renamed PGError to PG::Error (with ::PGError alias)
|
394
|
+
- Declare all constants inside PG::Constants, then include them in
|
395
|
+
PG::Connection and PG::Result for backward-compatibility, and
|
396
|
+
in PG for convenience.
|
397
|
+
- Split the extension source up by class/module.
|
398
|
+
- Removed old compatibility code for PostgreSQL versions < 8.3
|
399
|
+
|
400
|
+
Documentation:
|
401
|
+
- Clarified licensing, updated to Ruby 1.9's license.
|
402
|
+
- Merged authors list, added some missing people to the Contributor's
|
403
|
+
list.
|
404
|
+
- Cleaned up the sample/ directory
|
405
|
+
- Making contact info a bit clearer, link to the Google+ page and
|
406
|
+
the mailing list
|
407
|
+
|
408
|
+
Enhancements:
|
409
|
+
- Added a convenience method: PG.connect -> PG::Connection.new
|
410
|
+
|
411
|
+
Bugfixes:
|
412
|
+
- Fixed LATIN5-LATIN10 Postgres<->Ruby encoding conversions
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
== v0.12.2 [2012-01-03] Michael Granger <ged@FaerieMUD.org>
|
417
|
+
|
418
|
+
- Fix for the 1.8.7 breakage introduced by the st.h fix for alternative Ruby
|
419
|
+
implementations (#97 and #98). Thanks to Lars Kanis for the patch.
|
420
|
+
- Encode error messages with the connection's encoding under 1.9 (#96)
|
421
|
+
|
422
|
+
|
423
|
+
== v0.12.1 [2011-12-14] Michael Granger <ged@FaerieMUD.org>
|
424
|
+
|
425
|
+
- Made rake-compiler a dev dependency, as Rubygems doesn't use the Rakefile
|
426
|
+
for compiling the extension. Thanks to eolamey@bitbucket and Jeremy Evans
|
427
|
+
for pointing this out.
|
428
|
+
- Added an explicit include for ruby/st.h for implementations that need it
|
429
|
+
(fixes #95).
|
430
|
+
|
431
|
+
|
432
|
+
== v0.12.0 [2011-12-07] Michael Granger <ged@FaerieMUD.org>
|
433
|
+
|
434
|
+
- PGconn#wait_for_notify
|
435
|
+
* send nil as the payload argument if the NOTIFY didn't have one.
|
436
|
+
* accept a nil argument for no timeout (Sequel support)
|
437
|
+
* Fixed API docs
|
438
|
+
* Taint and encode event name and payload
|
439
|
+
- Handle errors while rb_thread_select()ing in PGconn#block.
|
440
|
+
(Brian Weaver).
|
441
|
+
- Fixes for Win32 async queries (Rafał Bigaj)
|
442
|
+
- Memory leak fixed: Closing opened WSA event. (rafal)
|
443
|
+
- Fixes for #66 Win32 asynchronous queries hang on connection
|
444
|
+
error. (rafal)
|
445
|
+
- Fixed a typo in PGconn#error_message's documentation
|
446
|
+
- fixing unused variable warnings for ruby 1.9.3 (Aaron Patterson)
|
447
|
+
- Build system bugfixes
|
448
|
+
- Converted to Hoe
|
449
|
+
- Updates for the Win32 binary gem builds (Lars Kanis)
|
450
|
+
|
451
|
+
|
452
|
+
== v0.11.0 [2011-02-09] Michael Granger <ged@FaerieMUD.org>
|
453
|
+
|
454
|
+
Enhancements:
|
455
|
+
|
456
|
+
* Added a PGresult#values method to fetch all result rows as an Array of
|
457
|
+
Arrays. Thanks to Jason Yanowitz (JYanowitz at enovafinancial dot com) for
|
458
|
+
the patch.
|
459
|
+
|
460
|
+
|
461
|
+
== v0.10.1 [2011-01-19] Michael Granger <ged@FaerieMUD.org>
|
462
|
+
|
463
|
+
Bugfixes:
|
464
|
+
|
465
|
+
* Add an include guard for pg.h
|
466
|
+
* Simplify the common case require of the ext
|
467
|
+
* Include the extconf header
|
468
|
+
* Fix compatibility with versions of PostgreSQL without PQgetCancel. (fixes #36)
|
469
|
+
* Fix require for natively-compiled extension under Windows. (fixes #55)
|
470
|
+
* Change rb_yield_splat() to rb_yield_values() for compatibility with Rubinius. (fixes #54)
|
471
|
+
|
472
|
+
|
473
|
+
== v0.10.0 [2010-12-01] Michael Granger <ged@FaerieMUD.org>
|
474
|
+
|
475
|
+
Enhancements:
|
476
|
+
|
477
|
+
* Added support for the payload of NOTIFY events (w/Mahlon E. Smith)
|
478
|
+
* Updated the build system with Rubygems suggestions from RubyConf 2010
|
479
|
+
|
480
|
+
Bugfixes:
|
481
|
+
|
482
|
+
* Fixed issue with PGconn#wait_for_notify that caused it to miss notifications that happened after
|
483
|
+
the LISTEN but before the wait_for_notify.
|
484
|
+
|
485
|
+
== v0.9.0 [2010-02-28] Michael Granger <ged@FaerieMUD.org>
|
486
|
+
|
487
|
+
Bugfixes.
|
488
|
+
|
489
|
+
== v0.8.0 [2009-03-28] Jeff Davis <davis.jeffrey@gmail.com>
|
490
|
+
|
491
|
+
Bugfixes, better Windows support.
|
492
|
+
|