pg 0.12.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +2 -0
  3. data/BSDL +22 -0
  4. data/ChangeLog +1504 -11
  5. data/Contributors.rdoc +7 -0
  6. data/History.rdoc +181 -3
  7. data/LICENSE +12 -14
  8. data/Manifest.txt +29 -15
  9. data/{BSD → POSTGRES} +0 -0
  10. data/{README.OS_X.rdoc → README-OS_X.rdoc} +0 -0
  11. data/{README.windows.rdoc → README-Windows.rdoc} +0 -0
  12. data/README.ja.rdoc +10 -3
  13. data/README.rdoc +54 -28
  14. data/Rakefile +53 -26
  15. data/Rakefile.cross +235 -196
  16. data/ext/errorcodes.def +931 -0
  17. data/ext/errorcodes.rb +45 -0
  18. data/ext/errorcodes.txt +463 -0
  19. data/ext/extconf.rb +37 -7
  20. data/ext/gvl_wrappers.c +19 -0
  21. data/ext/gvl_wrappers.h +211 -0
  22. data/ext/pg.c +317 -4277
  23. data/ext/pg.h +124 -21
  24. data/ext/pg_connection.c +3642 -0
  25. data/ext/pg_errors.c +89 -0
  26. data/ext/pg_result.c +920 -0
  27. data/lib/pg/connection.rb +86 -0
  28. data/lib/pg/constants.rb +11 -0
  29. data/lib/pg/exceptions.rb +11 -0
  30. data/lib/pg/result.rb +16 -0
  31. data/lib/pg.rb +26 -43
  32. data/sample/array_insert.rb +20 -0
  33. data/sample/async_api.rb +21 -24
  34. data/sample/async_copyto.rb +2 -2
  35. data/sample/async_mixed.rb +56 -0
  36. data/sample/check_conn.rb +21 -0
  37. data/sample/copyfrom.rb +1 -1
  38. data/sample/copyto.rb +1 -1
  39. data/sample/cursor.rb +2 -2
  40. data/sample/disk_usage_report.rb +186 -0
  41. data/sample/issue-119.rb +94 -0
  42. data/sample/losample.rb +6 -6
  43. data/sample/minimal-testcase.rb +17 -0
  44. data/sample/notify_wait.rb +51 -22
  45. data/sample/pg_statistics.rb +294 -0
  46. data/sample/replication_monitor.rb +231 -0
  47. data/sample/test_binary_values.rb +4 -6
  48. data/sample/wal_shipper.rb +434 -0
  49. data/sample/warehouse_partitions.rb +320 -0
  50. data/spec/lib/helpers.rb +70 -23
  51. data/spec/pg/connection_spec.rb +1128 -0
  52. data/spec/{pgresult_spec.rb → pg/result_spec.rb} +142 -47
  53. data/spec/pg_spec.rb +44 -0
  54. data.tar.gz.sig +0 -0
  55. metadata +145 -100
  56. metadata.gz.sig +0 -0
  57. data/GPL +0 -340
  58. data/ext/compat.c +0 -541
  59. data/ext/compat.h +0 -184
  60. data/misc/openssl-pg-segfault.rb +0 -31
  61. data/sample/psql.rb +0 -1181
  62. data/sample/psqlHelp.rb +0 -158
  63. data/sample/test1.rb +0 -60
  64. data/sample/test2.rb +0 -44
  65. data/sample/test4.rb +0 -71
  66. data/spec/m17n_spec.rb +0 -151
  67. data/spec/pgconn_spec.rb +0 -643
data/ChangeLog CHANGED
@@ -1,8 +1,1505 @@
1
+ 2013-07-19 Lars Kanis <kanis@comcard.de>
2
+
3
+ * .travis.yml:
4
+ Travis: Allow failures on rbx.
5
+ [7be3b156c8fb] [tip]
6
+
7
+ 2013-07-18 Lars Kanis <kanis@comcard.de>
8
+
9
+ * spec/pg/connection_spec.rb:
10
+ Test requires newer PostgreSQL version.
11
+ [10265c2fa41e]
12
+
13
+ * History.rdoc:
14
+ Update History.txt
15
+ [f19e8b3fc659]
16
+
17
+ * ext/pg_result.c, spec/pg/result_spec.rb:
18
+ Use nil as PG::Error#result in case of a NULL-result from libpq.
19
+
20
+ This previously returned a PG::Result object with internal NULL
21
+ pointer, that caused a misleading error "result has been cleared",
22
+ when accessed.
23
+
24
+ This fixes issue 166 : https://bitbucket.org/ged/ruby-pg/issue/166
25
+ [de6bee6a208c]
26
+
27
+ * ext/pg.h, ext/pg_connection.c, spec/pg/connection_spec.rb:
28
+ Recalculate the timeout of conn#wait_for_notify and conn#block in
29
+ case of socket events that require re-runs of select().
30
+
31
+ This previously caused a timeout higher than the given value,
32
+ because the timeout was set to the original value for every re-run.
33
+ [854b22230eba]
34
+
35
+ * spec/pg/connection_spec.rb:
36
+ Await a established connection to ensure the received errors match
37
+ exactly.
38
+
39
+ This test failed on Windows x64.
40
+ [6894f73d7039]
41
+
42
+ 2013-07-06 Lars Kanis <lars@greiz-reinsdorf.de>
43
+
44
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
45
+ Use ConnectionBad instead of PG::Error for connection related
46
+
47
+ Replace rb_bug() for PQsocket() failure with rb_raise().
48
+ [ddb55d4a44d3] [github/master]
49
+
50
+ 2013-07-17 Michael Granger <ged@FaerieMUD.org>
51
+
52
+ * .hgignore:
53
+ Add generated error codes file to the ignorelist
54
+ [67f6fa913c9d]
55
+
56
+ 2013-04-04 Cody Cutrer <cody@instructure.com>
57
+
58
+ * ext/pg_result.c:
59
+ refactor value retrieval into a single function
60
+
61
+ From d8bf9782f035c0a1d942d949535cd1800bc3e095 Mon Sep 17 00:00:00
62
+ 2001
63
+ [368a95c8d4c1]
64
+
65
+ 2013-06-26 Lars Kanis <kanis@comcard.de>
66
+
67
+ * ext/pg.h, ext/pg_connection.c, ext/pg_errors.c,
68
+ spec/pg/connection_spec.rb:
69
+ Add new error class 'ConnectionBad' that is raised if the connection
70
+
71
+ From 9d0acad61a693b9042842883fa8195ba973bf813 Mon Sep 17 00:00:00
72
+ 2001 could not be established. Use 'UnableToSend' error in case
73
+ that sending fails with async methods.
74
+ [b09cf9da723e]
75
+
76
+ * ext/gvl_wrappers.h, ext/pg_connection.c, spec/pg/connection_spec.rb:
77
+ Release GVL for PQconnect* and PQreset* functions, too.
78
+
79
+ From a1e24a52e3aaa59a552912f189a2ae36302ab696 Mon Sep 17 00:00:00
80
+ 2001 This fixes issue #165: https://bitbucket.org/ged/ruby-
81
+ pg/issue/165
82
+ [8b9b335c3f1f]
83
+
84
+ 2013-06-15 Lars Kanis <lars@greiz-reinsdorf.de>
85
+
86
+ * History.rdoc:
87
+ Add changes for 0.16.0 to History.rdoc.
88
+
89
+ From d4d92750850707aaca3b7b90fcb515ab1a401176 Mon Sep 17 00:00:00
90
+ 2001
91
+ [303cef15f662]
92
+
93
+ 2013-06-13 Lars Kanis <lars@greiz-reinsdorf.de>
94
+
95
+ * ext/pg_errors.c, spec/pg/connection_spec.rb:
96
+ Use distinct error class in case the connection is broken.
97
+
98
+ From 4d5c4301128b81c750d2dbbd0e7e0e6825b4685c Mon Sep 17 00:00:00
99
+ 2001
100
+ [12a4cbea487c]
101
+
102
+ * ext/pg_errors.c, spec/pg/result_spec.rb:
103
+ Rename PG:Errors to PG::ERROR_CLASSES as suggested by ged.
104
+
105
+ From 5401c5c9383bb7f0edebf558b02c4bba6870a7c5 Mon Sep 17 00:00:00
106
+ 2001
107
+ [a0972c3b8bbb]
108
+
109
+ 2013-06-07 Michael Granger <ged@FaerieMUD.org>
110
+
111
+ * .tm_properties:
112
+ Fix indent in project settings
113
+
114
+ From faafc7b075f9962bed37eb664462dc771de5fc6b Mon Sep 17 00:00:00
115
+ 2001
116
+ --HG-- extra : rebase_source :
117
+ 704ec9c8ffafa89e797faf2b298e7b6b078898fc
118
+ [0b45c1fb7575]
119
+
120
+ 2013-06-13 Lars Kanis <lars@greiz-reinsdorf.de>
121
+
122
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
123
+ Set proper encoding on the string returned by quote_ident,
124
+
125
+ From 72acd792eb92004655226fd31307dc821109f2e2 Mon Sep 17 00:00:00
126
+ 2001 escape_literal and escape_identifier. This fixes issue #163 :
127
+ https://bitbucket.org/ged/ruby-pg/issue/163 .
128
+ [30e475c4f9a0]
129
+
130
+ 2013-05-13 Lars Kanis <lars@greiz-reinsdorf.de>
131
+
132
+ * ext/pg_result.c:
133
+ Fix non working example for PGresult#error_field
134
+
135
+ From cb0dac677f049bee2817543c93c32fa0a07578f1 Mon Sep 17 00:00:00
136
+ 2001
137
+ [a0b1c8dbcf99]
138
+
139
+ * .travis.yml:
140
+ LD_LIBRARY_PATH is needless, thanks to the rpath option
141
+
142
+ From b74ba4ff89e7012b63080270425152d9e317e562 Mon Sep 17 00:00:00
143
+ 2001
144
+ [e169630b87f0]
145
+
146
+ 2013-05-18 Lars Kanis <lars@greiz-reinsdorf.de>
147
+
148
+ * Manifest.txt, Rakefile, ext/errorcodes.rb, ext/errorcodes.txt,
149
+ ext/pg.c, ext/pg.h, ext/pg_errors.c, ext/pg_result.c,
150
+ spec/pg/result_spec.rb, spec/pg_spec.rb:
151
+ Use inheritance to describe multiple types of PGErrors.
152
+
153
+ From fe657c793a9b8471d959ff94087c0857e0a767a7 Mon Sep 17 00:00:00
154
+ 2001 This resolves long standing bitbucket issue #5 .
155
+ [74aa9514a381]
156
+
157
+ 2013-05-14 Michael Granger <ged@FaerieMUD.org>
158
+
159
+ * ext/extconf.rb:
160
+ Merge pull request #12 from larskanis/add-support-for-diag-name-
161
+ fields
162
+
163
+ Add support for PG_DIAG_*_NAME error fields of PostgreSQL 9.3.
164
+ [e4465a9779fa]
165
+
166
+ * Merge pull request #11 from larskanis/try-rpath-manually-if-
167
+ rpathflag-is-empty
168
+
169
+ Try to use -rpath linker option, even if RbConfig doesn't know about
170
+ it.
171
+ [b4b9be725c09]
172
+
173
+ * ext/gvl_wrappers.h, spec/pg/connection_spec.rb:
174
+ Merge pull request #10 from larskanis/wrap-pqnotifies-per-gvl
175
+
176
+ Wrap PQnotifies per GVL.
177
+ [83e4520ded0e]
178
+
179
+ * spec/pg/connection_spec.rb:
180
+ Merge pull request #9 from larskanis/cancel-query-ubf
181
+
182
+ Ensure a query is canceled, if a thread is about to be killed.
183
+ [d9a6626143d6]
184
+
185
+ 2013-05-14 Lars Kanis <lars@greiz-reinsdorf.de>
186
+
187
+ * ext/extconf.rb, ext/pg.c, spec/lib/helpers.rb,
188
+ spec/pg/result_spec.rb:
189
+ Add support for PG_DIAG_*_NAME error fields.
190
+
191
+ This fixes issue #161 .
192
+ [e90cad5af52e]
193
+
194
+ 2013-05-12 Lars Kanis <lars@greiz-reinsdorf.de>
195
+
196
+ * spec/pg/connection_spec.rb:
197
+ Use async_exec for compat with Ruby-1.8
198
+ [52af48ad5023]
199
+
200
+ 2013-05-10 Lars Kanis <lars@greiz-reinsdorf.de>
201
+
202
+ * ext/gvl_wrappers.c, ext/gvl_wrappers.h, spec/pg/connection_spec.rb:
203
+ Ensure a query is canceled, if a thread is about to be killed.
204
+
205
+ This fixes blocked Ruby when pressing CTRL-C for a blocking query in
206
+ the main thread.
207
+ [e0492d4bbb9c]
208
+
209
+ 2013-05-11 Lars Kanis <lars@greiz-reinsdorf.de>
210
+
211
+ * ext/extconf.rb:
212
+ Try to use -rpath linker option, even if RbConfig doesn't know about
213
+ it.
214
+ [2dba8375f85b]
215
+
216
+ 2013-05-10 Lars Kanis <lars@greiz-reinsdorf.de>
217
+
218
+ * ext/gvl_wrappers.h, ext/pg_connection.c, spec/pg/connection_spec.rb:
219
+ Wrap PQnotifies per GVL.
220
+
221
+ PQnotifies doesn't do/wait for network communication, but PQnotifies
222
+ can deliver notifications per callback. The registered callback
223
+ function is then called with GVL locked. This results in a
224
+ rb_bug("rb_thread_call_with_gvl: called by a thread which has GVL.")
225
+ if we don't wrap PQnotifies likewise in order to unlock the GVL.
226
+ [6184e9c81ab5]
227
+
228
+ 2013-05-13 Michael Granger <ged@FaerieMUD.org>
229
+
230
+ * Merge pull request #8 from larskanis/fix-travis-tests
231
+
232
+ Fix travis tests
233
+ [8a0806192261]
234
+
235
+ 2013-05-10 Lars Kanis <lars@greiz-reinsdorf.de>
236
+
237
+ * Rakefile:
238
+ Allow 'rake compile' and 'rake gem' on non mercurial repos.
239
+
240
+ rake-compiler-0.9.0.pre.1 depends on ChangeLog for the compile task.
241
+ [982f66ccdd77]
242
+
243
+ * .travis.yml:
244
+ Update travis config.
245
+
246
+ Cross compile for i386-mingw32 on 1.8.7-p371 and x64-mingw32 on
247
+ 2.0.0-p0.
248
+ [fadc58d3804f]
249
+
250
+ * spec/lib/helpers.rb, spec/pg/connection_spec.rb:
251
+ Better spec for fallback_application_name.
252
+
253
+ The spec failed, if /bin/bash was more than 63 characters.
254
+ [8326e794b79e]
255
+
256
+ * spec/pg/result_spec.rb:
257
+ All versions of PostgreSQL starting from 8.4 know
258
+ DIAG_STATEMENT_POSITION and 8.3 is EOL.
259
+ [578e532297e4]
260
+
261
+ 2013-05-08 Lars Kanis <lars@greiz-reinsdorf.de>
262
+
263
+ * Merge pull request #7 from pedz/aix-build
264
+
265
+ Use a more standard method of adding library and include
266
+ directories.
267
+
268
+ This fixes built on AIX. See https://github.com/ged/ruby-pg/pull/7
269
+ [370ea51b888b]
270
+
271
+ 2013-04-08 Perry Smith <pedz@easesoftware.com>
272
+
273
+ * ext/extconf.rb:
274
+ Use a more standard method of adding library and include
275
+ directories.
276
+ [f11a13552a36]
277
+
278
+ 2013-05-02 Lars Kanis <lars@greiz-reinsdorf.de>
279
+
280
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
281
+ Return result of the block in conn#transaction instead of nil. This
282
+ fixes issue #158 .
283
+ [b94100f2674c]
284
+
285
+ 2013-05-01 Lars Kanis <kanis@comcard.de>
286
+
287
+ * ext/pg_connection.c:
288
+ Avoid warnings about uninitialized instance variables
289
+ [77410585716e]
290
+
291
+ 2013-04-08 Michael Granger <ged@FaerieMUD.org>
292
+
293
+ * History.rdoc:
294
+ Fix date in History
295
+ [de1cdb0f7ba6]
296
+
297
+ * .hgtags:
298
+ Added tag v0.15.1 for changeset 4692c20bcbde
299
+ [765d242ccf70]
300
+
301
+ * .hgsigs:
302
+ Added signature for changeset 0bfb6ff650be
303
+ [4692c20bcbde] [v0.15.1]
304
+
305
+ * lib/pg.rb:
306
+ Bump the patch version
307
+ [0bfb6ff650be]
308
+
309
+ * Merge with v0.15-stable
310
+ [650a853efd0d]
311
+
312
+ * ext/pg_connection.c, lib/pg/connection.rb:
313
+ Update PG::Connection documentation
314
+ [4514df7221a8]
315
+
316
+ 2013-04-05 Lars Kanis <kanis@comcard.de>
317
+
318
+ * History.rdoc:
319
+ Update History.rdoc.
320
+ [1d0173b7a077] <v0.15-stable>
321
+
322
+ * lib/pg/connection.rb, spec/pg/connection_spec.rb:
323
+ Send a shortened $0 as application_name to the server in order to
324
+ avoid warnings about truncated identifier.
325
+
326
+ Thanks to Svoop for this report.
327
+ [134e067259ee] <v0.15-stable>
328
+
329
+ * lib/pg/connection.rb, spec/pg/connection_spec.rb:
330
+ Send a shortened $0 as application_name to the server in order to
331
+ avoid warnings about truncated identifier.
332
+
333
+ Thanks to Svoop for this report.
334
+ [9a6791fe9409]
335
+
336
+ 2013-03-26 Michael Granger <ged@FaerieMUD.org>
337
+
338
+ * README.rdoc:
339
+ Update README, add Lars as maintainer
340
+ [5060601d2e64]
341
+
342
+ * ext/pg_result.c, lib/pg/exceptions.rb, sample/async_api.rb,
343
+ sample/async_mixed.rb, sample/cursor.rb,
344
+ sample/disk_usage_report.rb, sample/wal_shipper.rb,
345
+ sample/warehouse_partitions.rb, spec/lib/helpers.rb:
346
+ Whitespace cleanup
347
+ [76ebae01c937]
348
+
349
+ * .hgtags:
350
+ Added tag v0.15.0 for changeset 065fd1f0e9dd
351
+ [3321254ec4fb]
352
+
353
+ * .hgsigs:
354
+ Added signature for changeset 384fcbc92366
355
+ [065fd1f0e9dd] [v0.15.0]
356
+
357
+ * lib/pg.rb:
358
+ Bump the minor version
359
+ [384fcbc92366]
360
+
361
+ * ext/pg_connection.c:
362
+ Fix a compiler warning
363
+ [c031f659f882]
364
+
365
+ * Rakefile.cross:
366
+ Avoid "no implicit conversion of nil into String" on hosts with no
367
+ cross-ruby installs
368
+ [3fcdc9620b79]
369
+
370
+ 2013-03-25 Lars Kanis <kanis@comcard.de>
371
+
372
+ * ext/pg_connection.c:
373
+ Avoid compiler warning about unused variable:
374
+
375
+ ../../../../ext/pg_connection.c: In function
376
+ ‘pgconn_close_socket_io’: ../../../../ext/pg_connection.c:73:6:
377
+ warning: unused variable ‘ruby_sd’ [-Wunused-variable]
378
+ [342fa14086aa]
379
+
380
+ 2013-03-16 Lars Kanis <kanis@comcard.de>
381
+
382
+ * ext/extconf.rb, ext/pg_connection.c, lib/pg/connection.rb,
383
+ spec/lib/helpers.rb, spec/pg/connection_spec.rb:
384
+ Add working Connection#socket_io for Windows and remove this method
385
+ for platforms that don't support it.
386
+
387
+ This also requires to move the code from Ruby to C.
388
+
389
+ Use different excudes for :unix and :socket_io.
390
+ [79d6ab5cf45a]
391
+
392
+ 2013-03-14 Lars Kanis <kanis@comcard.de>
393
+
394
+ * ext/pg_connection.c:
395
+ Use #async_exec as alias to #exec on platforms with native threads.
396
+
397
+ Since we release the GVL for all blocking function calls, now, #exec
398
+ has the same behaviour as #async_exec.
399
+
400
+ Discussed on: https://groups.google.com/d/msg/ruby-
401
+ pg/OVVO7XjH7Aw/7UIwi6g10PsJ
402
+ [ca09386c2aac]
403
+
404
+ * ext/pg_connection.c:
405
+ Test case 'can wait for NOTIFY events' failed before this fix.
406
+ [266d915dfb86]
407
+
408
+ 2013-03-13 Lars Kanis <kanis@comcard.de>
409
+
410
+ * spec/pg/connection_spec.rb:
411
+ Mark tests to #socket_io as UNIX-only - they fail on Windows.
412
+ [1f23c39fb8c8]
413
+
414
+ * Rakefile.cross:
415
+ Print proper message in case that cross compilation is not usable.
416
+ [307438918863]
417
+
418
+ * Rakefile, Rakefile.cross:
419
+ Merge with https://bitbucket.org/ged/ruby-pg
420
+ [3230e6c245e0]
421
+
422
+ * Rakefile, Rakefile.cross:
423
+ Add support for cross build for multiple platforms (i386-mingw32 and
424
+ x64-mingw32).
425
+
426
+ Update OpenSSL for cross build to 1.0.1e Update PostgreSQL for cross
427
+ build to 9.2.3
428
+
429
+ Remove -lws2_32 for PostgreSQL build. It fails to compile for
430
+ x64-mingw32 elsewise.
431
+ [6a2a1a53dedc]
432
+
433
+ 2013-03-12 Michael Granger <ged@FaerieMUD.org>
434
+
435
+ * Rakefile.cross:
436
+ Bump PostgreSQL/OpenSSL versions for the binary gem
437
+ [b6f885cd57f7]
438
+
439
+ * spec/pg/connection_spec.rb:
440
+ Re-enable application_name setting with corrected guard
441
+ [5b2e5992bb78]
442
+
443
+ * .rvm.gems, Rakefile, Rakefile.cross:
444
+ Bump versions of dev dependencies
445
+ [cba92fb4b89e]
446
+
447
+ 2013-03-06 Michael Granger <ged@FaerieMUD.org>
448
+
449
+ * README.rdoc:
450
+ Add a hint about installing with Bundler to the README.
451
+
452
+ Thanks to StackExchange user 'darnumbrella' for this hint.
453
+ http://stackoverflow.com/questions/15234810/cannot-install-pg-gem
454
+ [93bacacab796]
455
+
456
+ * History.rdoc:
457
+ Update History
458
+ [0ab4e5cf47e9]
459
+
460
+ 2013-03-03 Michael Granger <ged@FaerieMUD.org>
461
+
462
+ * spec/pg/connection_spec.rb:
463
+ Remove application_name setting for PG < 8.3
464
+ [130d50d246fb]
465
+
466
+ * spec/pg/connection_spec.rb:
467
+ Fix tests under Postgres 8.3.
468
+
469
+ Ugh. I need an 8.3 testing box.
470
+ [bda5c1c794f1]
471
+
472
+ * spec/pg/connection_spec.rb:
473
+ Don't set the application_name for versions of PG less than 9.0
474
+ [9daa5a0012d8]
475
+
476
+ * spec/lib/helpers.rb:
477
+ Remove reference comment
478
+ [edc642a94aa6]
479
+
480
+ * ext/pg_connection.c, spec/lib/helpers.rb,
481
+ spec/pg/connection_spec.rb:
482
+ Clean up the #socket_io if it exists on #finish and #reset.
483
+ [fc290848221b]
484
+
485
+ 2013-02-27 Michael Granger <ged@FaerieMUD.org>
486
+
487
+ * README.ja.rdoc, README.rdoc:
488
+ Update READMEs
489
+
490
+ * Update relevant versions
491
+ * Move the badge to a status section
492
+ * Add link list to the header
493
+ * Add a (hopefully) more-lucid description to README.ja.rdoc.
494
+ [ac1c999e8514]
495
+
496
+ 2013-02-26 Michael Granger <ged@FaerieMUD.org>
497
+
498
+ * .travis.yml:
499
+ Add Ruby 2 to the Travis matrix
500
+ [d8c0be8a00fa]
501
+
502
+ 2013-02-25 Michael Granger <ged@FaerieMUD.org>
503
+
504
+ * .rvmrc:
505
+ Test under Ruby 2.0.0 by default
506
+ [c7919322ac00]
507
+
508
+ * Merge with rpath_ldflag
509
+ [a249c3b79f82]
510
+
511
+ 2013-02-04 Lars Kanis <kanis@comcard.de>
512
+
513
+ * ext/pg_connection.c:
514
+ Avoid warning about DWORD to int mapping in rb_raise() format
515
+ string.
516
+ [b1d3a145bef5]
517
+
518
+ 2013-02-03 Michael Granger <ged@FaerieMUD.org>
519
+
520
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
521
+ Split the dual-mode PG::Connection#exec into #exec and #exec_params.
522
+
523
+ PG::Connection#exec should be backward compatible with old code: it
524
+ just passes control to #exec_params directly instead of calling
525
+ PQexecParams() itself.
526
+
527
+ Thanks to Aaron Patterson for the idea.
528
+ [7c313c2355b7] [github/exec_params]
529
+
530
+ 2013-01-31 Michael Granger <ged@FaerieMUD.org>
531
+
532
+ * ext/extconf.rb:
533
+ Add experimental -rpath to the LDFLAGS
534
+ [8496c624dffd] [github/rpath_ldflag]
535
+
536
+ 2013-01-30 Michael Granger <ged@FaerieMUD.org>
537
+
538
+ * .hoerc, ext/pg_connection.c, lib/pg/connection.rb,
539
+ sample/async_api.rb, sample/async_copyto.rb, sample/async_mixed.rb,
540
+ spec/pg/connection_spec.rb:
541
+ Add PG::Connection#socket_io to return a memoized IO for the
542
+ underlying socket.
543
+
544
+ This keeps the IO in scope until the Connection is garbage-
545
+ collected, preventing Ruby from auto-closing the connection to
546
+ PostgreSQL.
547
+ [c1e35a055da6]
548
+
549
+ 2013-01-30 Michael Granger <ged@faeriemud.org>
550
+
551
+ * Close branch copy_both_docu.
552
+ [9a5a0ead9240] <copy_both_docu>
553
+
554
+ * Close branch row_processor.
555
+ [2503026a5b0c] <row_processor>
556
+
557
+ * Close branch use_gvl_for_blocking_functions.
558
+ [c576c578b389] <use_gvl_for_blocking_functions>
559
+
560
+ 2013-01-29 Michael Granger <ged@FaerieMUD.org>
561
+
562
+ * History.rdoc:
563
+ Add @tenderlove's patch credit to History, reworded some stuff
564
+ [dbfbd4a8e88b]
565
+
566
+ * lib/pg/result.rb:
567
+ Whitespace/docs fix
568
+ [6d150feff5b7]
569
+
570
+ * spec/pg/result_spec.rb:
571
+ Merge with github mirror
572
+ [114d4527bc34]
573
+
574
+ * Merge pull request #5 from larskanis/for_ged_2
575
+
576
+ Update History+Manifest files
577
+ [68885ed19424]
578
+
579
+ 2013-01-25 Michael Granger <ged@FaerieMUD.org>
580
+
581
+ * Merge pull request #4 from larskanis/for_ged
582
+
583
+ A bunch of cool stuff from Lars Kanis.
584
+ [0ac815e4c1c2]
585
+
586
+ 2013-01-27 Lars Kanis <lars@greiz-reinsdorf.de>
587
+
588
+ * Manifest.txt:
589
+ Update Manifest file.
590
+ [2ec7220191c3]
591
+
592
+ * ext/pg_connection.c:
593
+ Remove unused variable.
594
+ [ff8729fed34d]
595
+
596
+ * History.rdoc:
597
+ Update the History file.
598
+ [6e1539487554]
599
+
600
+ 2013-01-23 Lars Kanis <kanis@comcard.de>
601
+
602
+ * ext/pg_connection.c:
603
+ Free memory allocated per rb_fd_init().
604
+ [c66205b7855a]
605
+
606
+ * README.rdoc:
607
+ Link the travis build status icon to ged's repository.
608
+ [5230908c87b0]
609
+
610
+ * ext/pg_connection.c, spec/lib/helpers.rb,
611
+ spec/pg/connection_spec.rb:
612
+ conn#socket() can not be used with IO.for_fd() on Windows.
613
+ [35588686dd95]
614
+
615
+ * spec/pg/connection_spec.rb:
616
+ Fix race in threading spec.
617
+ [9a84576d9c1c]
618
+
619
+ * ext/extconf.rb, ext/pg_connection.c:
620
+ Refactor different variants of waiting for the connection socket.
621
+
622
+ Reduce the 4 variants of waiting to only 2 which are used by both
623
+
624
+ This also fixes 'Bad file descriptor' respectively wrong behaviour
625
+ of #wait_for_notify() on Windows and fixes timeout handling of
626
+
627
+ Make use of rb_thread_fd_select() on Ruby 1.9, to avoid deprecation
628
+ warnings on rb_thread_select().
629
+ [bdad1d6ed622]
630
+
631
+ 2013-01-22 Lars Kanis <kanis@comcard.de>
632
+
633
+ * spec/lib/helpers.rb, spec/pg/connection_spec.rb:
634
+ Avoid fork() in specs.
635
+
636
+ fork() is not implemented on windows and jruby.
637
+
638
+ On Rubinius fork() blocks in these tests or raises 'server closed
639
+ the connection unexpectedly' after the test.
640
+ [4a6fe373133f]
641
+
642
+ * ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
643
+ ext/pg_connection.c, spec/pg/connection_spec.rb:
644
+ Add wrappers to blocking functions and callbacks in order to release
645
+ the GVL of ruby 1.9 as long as not in ruby code.
646
+
647
+ This allowes better concurrency in threaded applications.
648
+ [ccc3e80c0058]
649
+
650
+ * spec/pg/connection_spec.rb:
651
+ Remove duplicated test.
652
+
653
+ It is equally defined in result_spec.rb.
654
+ [ce203ebe0b00]
655
+
656
+ * spec/pg/connection_spec.rb:
657
+ Don't do parameter test with 'keepalives' on PostgreSQL<9.0
658
+ [b73895632940]
659
+
660
+ * spec/pg/result_spec.rb:
661
+ Adjust PGError test to also match PostgreSQL 8.3
662
+ [69ac504b6895]
663
+
664
+ * spec/pg/connection_spec.rb:
665
+ Skip some tests that do not run on PostgreSQL<9.0
666
+ [451ee7c4195d]
667
+
668
+ * spec/pg/connection_spec.rb:
669
+ Replace Encoding::KOI8_U by Encoding::KOI8_R to allow testing with
670
+ PostgreSQL 8.3.
671
+ [5edc4ca287be]
672
+
673
+ * spec/pg/connection_spec.rb:
674
+ Async connection test seems to be a bit racy on 1.8.7. So allow
675
+ CONNECTION_OK, too.
676
+ [5f29f24727e9]
677
+
678
+ * spec/pg/result_spec.rb:
679
+ Avoid warning about deprecated expect{ }.should.
680
+ [72a839f5fe85]
681
+
682
+ * Merge http://github.com/ged/ruby-pg
683
+ [af2075f15962]
684
+
685
+ 2013-01-21 Lars Kanis <kanis@comcard.de>
686
+
687
+ * .travis.yml, README.rdoc:
688
+ Add configuration for travis-ci.org and add build status icon to
689
+ README.
690
+ [cce08abf93c8]
691
+
692
+ 2013-01-25 Michael Granger <ged@FaerieMUD.org>
693
+
694
+ * .tm_properties:
695
+ Make source settings override TM2 defaults
696
+ [c5706b3f73af]
697
+
698
+ 2012-12-26 Lars Kanis <kanis@comcard.de>
699
+
700
+ * ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
701
+ merge in default branch
702
+ [ca39e311d1eb] <use_gvl_for_blocking_functions>
703
+
704
+ * ext/gvl_wrappers.h:
705
+ Add some documentation to gvl_wrappers
706
+ [ffeb6a0afd1f] <use_gvl_for_blocking_functions>
707
+
708
+ * spec/pg/connection_spec.rb:
709
+ Add test case for threading with Connection#exec in ruby 1.9
710
+ [73b9aa38e8c0] <use_gvl_for_blocking_functions>
711
+
712
+ * ext/extconf.rb, ext/gvl_wrappers.c, ext/gvl_wrappers.h, ext/pg.h,
713
+ ext/pg_connection.c:
714
+ Add wrappers to blocking functions and callbacks in order to release
715
+ the GVL of ruby 1.9 as long as not in ruby code
716
+ [2f2c681424ed] <use_gvl_for_blocking_functions>
717
+
718
+ 2012-07-02 Lars Kanis <kanis@comcard.de>
719
+
720
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
721
+ Fix encoding of values delivered to the row processor and add specs
722
+ for binary and text data.
723
+ [bb9c6625fbc9] <row_processor>
724
+
725
+ * ext/pg_connection.c:
726
+ Polish the documentation a little bit
727
+ [b7633be3c941] <row_processor>
728
+
729
+ 2012-07-01 Lars Kanis <kanis@comcard.de>
730
+
731
+ * ext/pg_connection.c:
732
+ Get rid of gcc warning about (non-)const PGresult to
733
+ pg_new_result_for_callback()
734
+ [1a25786ed8f3] <row_processor>
735
+
736
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
737
+ Fix wrong encoding for Result object passed to a notice-receiver
738
+ block. Add proper specs for #set_notice_receiver.
739
+ [4280826bb9b9] <row_processor>
740
+
741
+ * ext/extconf.rb, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
742
+ spec/lib/helpers.rb, spec/pg/connection_spec.rb:
743
+ Implement PostgreSQL-9.2 functions PG::Connection#set_row_processor,
744
+ get_row_processor, skip_result
745
+ [b7ce4843f4d1] <row_processor>
746
+
747
+ 2012-06-28 Lars Kanis <kanis@comcard.de>
748
+
749
+ * ext/pg_result.c:
750
+ Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
751
+ [63998b47da6e] <copy_both_docu>
752
+
753
+ 2013-01-29 Aaron Patterson <aaron.patterson@gmail.com>
754
+
755
+ * ext/pg_result.c, lib/pg/result.rb, spec/pg/result_spec.rb:
756
+ adding PG::Result#each_row for looping over result sets by row
757
+ [fe820dfcc7a6]
758
+
759
+ 2013-01-05 Lars Kanis <kanis@comcard.de>
760
+
761
+ * Rakefile.cross:
762
+ Update PostgreSQL to 9.2.2 for cross compilation task
763
+ [553bde8e3021]
764
+
765
+ 2013-01-03 Lars Kanis <kanis@comcard.de>
766
+
767
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
768
+ Fix text encoding for Connection#notifies
769
+ [c1522591aa08]
770
+
771
+ 2012-12-30 Lars Kanis <kanis@comcard.de>
772
+
773
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
774
+ Fix text encoding for Connection#wait_for_notify
775
+ [3dc45b1416b9]
776
+
777
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
778
+ Fix encoding of messages delivered by notice callbacks
779
+ [048d07d14867]
780
+
781
+ 2012-12-26 Lars Kanis <kanis@comcard.de>
782
+
783
+ * ext/pg.c:
784
+ Use proper const check instead of implicit relation
785
+ [d0c5d5f7f1e8]
786
+
787
+ * spec/pg/connection_spec.rb:
788
+ Improve spec for Connection#set_single_row_mode
789
+ [0b318fe91ffc]
790
+
791
+ * ext/pg_connection.c:
792
+ Add some more documentation to Connection#set_single_row_mode
793
+ [43f891ee4f64]
794
+
795
+ 2012-12-26 larskanis <lars@greiz-reinsdorf.de>
796
+
797
+ * spec/pg/connection_spec.rb:
798
+ Merged in larskanis/ruby-pg/single_row_mode (pull request #13: Add
799
+ single row mode of PostgreSQL 9.2)
800
+ [49e3fe1dafdf]
801
+
802
+ 2012-12-19 Lars Kanis <kanis@comcard.de>
803
+
804
+ * ext/extconf.rb, ext/pg.c, ext/pg_connection.c,
805
+ spec/pg/connection_spec.rb:
806
+ Add single row mode of PostgreSQL 9.2
807
+ [5cf348b75c1c] <single_row_mode>
808
+
809
+ 2012-12-19 Michael Granger <ged@FaerieMUD.org>
810
+
811
+ * lib/pg/connection.rb:
812
+ Remove accidentally-committed debugging statement
813
+ [05f5faf568cd]
814
+
815
+ * Merge with github mirror
816
+ [95448a126ab5]
817
+
818
+ 2012-12-17 Michael Granger <ged@FaerieMUD.org>
819
+
820
+ * Merge pull request #3 from michaelrkn/master
821
+
822
+ fix spacing in the README
823
+ [9561ce98b144]
824
+
825
+ 2012-12-17 michael <michaelrkn@gmail.com>
826
+
827
+ * README.rdoc:
828
+ fix spacing on README.rdoc:21 to improve display on Github
829
+ [807f040166da]
830
+
831
+ 2012-12-19 Lars Kanis <kanis@comcard.de>
832
+
833
+ * spec/pg/connection_spec.rb:
834
+ Move the spec to param fallback_application_name into PostgreSQL 9.0
835
+ section
836
+ [83bfd3b99c08]
837
+
838
+ * ext/pg_result.c:
839
+ Fix segfault in PG::Result#field_values when called with non String
840
+ value
841
+ [e2f58175db88]
842
+
843
+ * spec/pg/result_spec.rb:
844
+ Add spec for PG::Result#field_values
845
+ [3618eb238aba]
846
+
847
+ * lib/pg/connection.rb, spec/lib/helpers.rb:
848
+ Restore compatibility with PostgreSQL down to 8.3
849
+ [e4900f62e56d]
850
+
851
+ 2012-10-30 Michael Granger <ged@FaerieMUD.org>
852
+
853
+ * spec/lib/helpers.rb, spec/pg/result_spec.rb:
854
+ Adding some fixes for PostgreSQL 9.2.x
855
+ [10804d14d1e7]
856
+
857
+ * lib/pg/connection.rb, spec/pg/connection_spec.rb:
858
+ Write specs for the fallback_application_name addition.
859
+ [994bad887ae9]
860
+
861
+ 2012-09-08 will <will@bitfission.com>
862
+
863
+ * lib/pg/connection.rb:
864
+ Add a default fallback_application_name to connection string
865
+ [ee5c4f860ce1]
866
+
867
+ 2012-10-30 Michael Granger <ged@FaerieMUD.org>
868
+
869
+ * sample/array_insert.rb:
870
+ Adding an example of how to insert array data using a prepared
871
+ statement (issue #145)
872
+ [7a8fdf4ae7fe]
873
+
874
+ 2012-10-01 Michael Granger <ged@FaerieMUD.org>
875
+
876
+ * Contributors.rdoc:
877
+ Update Rafał Bigaj's email address in Contributors.rdoc at his
878
+ request
879
+ [bf7fb95dc4e8]
880
+
881
+ 2012-09-07 Michael Granger <ged@FaerieMUD.org>
882
+
883
+ * ext/pg_result.c:
884
+ Fix the documentation for Result#check (refs #123)
885
+ [283e533abb9b]
886
+
887
+ 2012-09-02 Michael Granger <ged@FaerieMUD.org>
888
+
889
+ * .hgtags:
890
+ Added tag v0.14.1 for changeset 2d83ce956f97
891
+ [523ae4535497]
892
+
893
+ * .hgsigs:
894
+ Added signature for changeset 52d22b060501
895
+ [2d83ce956f97] [v0.14.1]
896
+
897
+ * History.rdoc:
898
+ Updating the History file
899
+ [52d22b060501]
900
+
901
+ 2012-08-14 Michael Granger <ged@FaerieMUD.org>
902
+
903
+ * ext/pg_result.c:
904
+ Add some documentation to PG::Result#fnumber (fixes #139)
905
+ [b03c4641e58f]
906
+
907
+ 2012-08-12 Michael Granger <ged@FaerieMUD.org>
908
+
909
+ * History.rdoc, lib/pg.rb:
910
+ Bump the patch version, update history.
911
+ [ef533f731814]
912
+
913
+ 2012-08-08 Jeremy Evans <code@jeremyevans.net>
914
+
915
+ * ext/extconf.rb, ext/pg_result.c:
916
+ [PATCH] Recognize PGRES_SINGLE_TUPLE as OK when checking PGresult
917
+
918
+ From 10cdc23ac4e3cfc91488f3f8a7a44f3275c9fe0a Mon Sep 17 00:00:00
919
+ 2001 This is used for the new single row mode introduced in
920
+ 9.2beta3, and indicates a successful result when using that mode.
921
+ --- ext/extconf.rb | 1 + ext/pg_result.c | 3 +++ 2 files
922
+ changed, 4 insertions(+), 0 deletions(-)
923
+ [f92b6456c566]
924
+
925
+ 2012-08-10 Michael Granger <ged@FaerieMUD.org>
926
+
927
+ * ext/pg_result.c:
928
+ Apply the heap vs. stack fix for PG::Result#fields too.
929
+ [512a362e883e]
930
+
931
+ * ext/pg_result.c:
932
+ Additional fixes for PG::Result#values and #column_values.
933
+
934
+ - Revert the row-building loop of Result#values to use the heap,
935
+ too.
936
+ - Use the heap for building #column_values, too.
937
+
938
+ Props to Lars Kanis for figuring out the problem.
939
+
940
+ Refs #135, #136, #138.
941
+ [62c8ee5406db]
942
+
943
+ * ext/pg_result.c:
944
+ Use heap instead of stack for result array in #values, etc al. (refs
945
+ #135, #136, #138)
946
+ [4d5e457062e8]
947
+
948
+ 2012-08-04 Lars Kanis <kanis@comcard.de>
949
+
950
+ * spec/pg/connection_spec.rb:
951
+ Add missing require for using the TCPServer in connection_spec. This
952
+ fixes #137 .
953
+ [72b45840d975]
954
+
955
+ 2012-07-03 Lars Kanis <kanis@comcard.de>
956
+
957
+ * ext/pg_connection.c:
958
+ Add note about the usage scope of the result object received by the
959
+ #set_notice_receiver block.
960
+ [de900bfaff1a]
961
+
962
+ 2012-07-02 Lars Kanis <kanis@comcard.de>
963
+
964
+ * ext/pg_result.c:
965
+ Add PGRES_COPY_BOTH to documentation of PG::Result#result_status
966
+ [5e0e06440b1a]
967
+
968
+ 2012-06-23 Michael Granger <ged@FaerieMUD.org>
969
+
970
+ * .hgtags:
971
+ Added tag v0.14.0 for changeset 634e0a42a101
972
+ [35eecb26bd34]
973
+
974
+ * .hgsigs:
975
+ Added signature for changeset a45710f8db30
976
+ [634e0a42a101] [v0.14.0]
977
+
978
+ 2012-06-17 Lars Kanis <kanis@comcard.de>
979
+
980
+ * Rakefile.cross, ext/extconf.rb,
981
+ misc/postgresql-9.1.4.mingw-w64-support.patch:
982
+ Update windows cross compilation tasks to the latest
983
+ Openssl+Postgresql versions and the latest mingw-w64 compiler
984
+ [a45710f8db30]
985
+
986
+ * Rakefile:
987
+ Use RbConfig instead of obsolete and deprecated Config.
988
+ [d67cbb4310ac]
989
+
990
+ 2012-06-17 Michael Granger <ged@FaerieMUD.org>
991
+
992
+ * History.rdoc, ext/pg_connection.c, lib/pg.rb:
993
+ Bumped minor version, updated history.
994
+ [a3a3177b921c]
995
+
996
+ * .hoerc, ext/pg.h, ext/pg_connection.c, ext/pg_result.c,
997
+ spec/pg/result_spec.rb:
998
+ New method: PG::Result#check. (fixes #123)
999
+
1000
+ This method exposes a previously internal-only function for checking
1001
+ the status of a PG::Result, primarily for people using the async
1002
+ interface. The check is done for you if you're using the synchronous
1003
+ interface, but there was no way to get the same behavior for results
1004
+ fetched via PG::Connection#get_result.
1005
+
1006
+ This change also adds the PG::Connection associated with a result as
1007
+ an instance variable (@connection) on the PG::Result object.
1008
+
1009
+ Thanks to @royaltm for the idea.
1010
+ [237cc4f69f63]
1011
+
1012
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
1013
+ New method: PG::Connection#set_default_encoding (fixes #124)
1014
+
1015
+ This pulls up the code that sets the client_encoding in synchronous
1016
+ connections into a public method that can be called by people using
1017
+ the asynchronous API to achieve the same thing once the connection
1018
+ is established.
1019
+
1020
+ Thanks to @royaltm for the suggestion.
1021
+ [6680b395e6f4]
1022
+
1023
+ * Manifest.txt, sample/check_conn.rb:
1024
+ Adding a minimal "connection-test function" example
1025
+ [15bfcbe2bd5e]
1026
+
1027
+ * .rvm.gems:
1028
+ Bump the hoe-deveiate version in the rvm gemset
1029
+ [bc2ef3d461cd]
1030
+
1031
+ 2012-06-12 Mahlon E. Smith <mahlon@laika.com>
1032
+
1033
+ * sample/warehouse_partitions.rb:
1034
+ Move indexes across tablespaces along with their parents. Remove
1035
+ the 'parent table' option, as we can derive that automatically from
1036
+ the pg_inherits table.
1037
+ [be46f44349bf]
1038
+
1039
+ 2012-05-07 Michael Granger <ged@FaerieMUD.org>
1040
+
1041
+ * Rakefile, ext/pg.c, ext/pg_connection.c, ext/pg_result.c:
1042
+ Documentation fixes.
1043
+ [a965926418dd]
1044
+
1045
+ 2012-04-23 Michael Granger <ged@FaerieMUD.org>
1046
+
1047
+ * Manifest.txt:
1048
+ Adding Mahlon's samples to the manifest.
1049
+ [997c3a247f44]
1050
+
1051
+ * .rvm.gems, Rakefile:
1052
+ Updated dev dependencies
1053
+ [cc07b81eaf18]
1054
+
1055
+ 2012-04-17 Mahlon E. Smith <mahlon@laika.com>
1056
+
1057
+ * sample/disk_usage_report.rb, sample/minimal-testcase.rb,
1058
+ sample/pg_statistics.rb, sample/replication_monitor.rb,
1059
+ sample/wal_shipper.rb, sample/warehouse_partitions.rb:
1060
+ Add a pile of additional sample scripts that perform various
1061
+ administrative tasks.
1062
+
1063
+ These have all been fairly well battle-tested and are in production
1064
+ use at $DAYJOB, though they were cleaned up for addition to the
1065
+ Ruby-PG repo.
1066
+
1067
+ See the top comments in each script for additional information, or
1068
+ the
1069
+ --help flag on any of them for usage.
1070
+
1071
+ - disk_usage_report
1072
+
1073
+ Quick reporting on the heaviest disk consumers for a
1074
+ database. Nice for cronned/email reporting.
1075
+
1076
+ - pg_statistics
1077
+
1078
+ Continuous polled statistics for a database.
1079
+ Suitable for graphing with gnuplot (example
1080
+ included.)
1081
+
1082
+ - replication_monitor
1083
+
1084
+ A command-line monitor for slave replication lag.
1085
+ Works for both streaming replication and WAL
1086
+ shipping. You should be able to use it as a base to
1087
+ plug into your preferred monitoring system.
1088
+
1089
+ - wal_shipper
1090
+
1091
+ A smart WAL file transfer script, similar to
1092
+ PITRTools.
1093
+
1094
+ - warehouse_partitions
1095
+
1096
+ An automated tablespace migrator for older, date-
1097
+ based partitioned tables.
1098
+ [36ca5b412583]
1099
+
1100
+ 2012-04-02 Michael Granger <ged@FaerieMUD.org>
1101
+
1102
+ * sample/issue-119.rb:
1103
+ Add a sample from <<issue 119>>
1104
+ [35d75de3f5a5]
1105
+
1106
+ 2012-03-26 Michael Granger <ged@FaerieMUD.org>
1107
+
1108
+ * sample/minimal-testcase.rb:
1109
+ Adding a minimal-testcase sample
1110
+ [87a8dadf1fdd]
1111
+
1112
+ 2012-03-10 Michael Granger <ged@faeriemud.org>
1113
+
1114
+ * ext/pg_result.c:
1115
+ Merged in larskanis/ruby-pg (pull request #7)
1116
+ [4050c3412bd7]
1117
+
1118
+ 2012-03-10 Lars Kanis <kanis@comcard.de>
1119
+
1120
+ * spec/pg/result_spec.rb:
1121
+ Add checks with binary data for other PG::Result methods
1122
+ [ef981c14a854]
1123
+
1124
+ * ext/pg_result.c:
1125
+ Don't associate encoding with non-text-type fields in
1126
+ PGresult#getvalue. This fixes #104 .
1127
+ [9c90c50ca41a]
1128
+
1129
+ 2012-03-09 Michael Granger <ged@FaerieMUD.org>
1130
+
1131
+ * ext/pg_result.c:
1132
+ Avoid use of uninitialized Arrays (fixes #47).
1133
+
1134
+ Instead of declaring an Array at the beginning of fetching results
1135
+ and pushing values onto it to return at the end (which could result
1136
+ in a segfault if the GC runs during a NEWOBJ.
1137
+ [6cea3cea3b2b]
1138
+
1139
+ 2012-03-06 Michael Granger <ged@FaerieMUD.org>
1140
+
1141
+ * ext/pg.c, ext/pg_result.c:
1142
+ Fix the guard for PGRES_COPY_BOTH.
1143
+ [4053dfd600e8]
1144
+
1145
+ * ext/pg.c, ext/pg_connection.c, lib/pg/connection.rb,
1146
+ spec/lib/helpers.rb, spec/pg/connection_spec.rb, spec/pg_spec.rb:
1147
+ Factor some library-introspection methods up into the toplevel
1148
+ namespace.
1149
+
1150
+ - PG::Connection.library_version -> PG.library_version
1151
+ - PG::Connection.isthreadsafe -> PG.is_threadsafe? (with backward-
1152
+ compat aliases)
1153
+ - Split up examples by PG version metadata
1154
+ [e24ff9f37b12]
1155
+
1156
+ * Rakefile:
1157
+ Depend on RSpec 2.8 for example metadata
1158
+ [c0b00fdff58a]
1159
+
1160
+ * ext/extconf.rb, ext/pg_result.c:
1161
+ ifdef'ed PGRES_COPY_BOTH
1162
+ [ad4f62c38edf]
1163
+
1164
+ 2012-03-06 Michael Granger <ged@faeriemud.org>
1165
+
1166
+ * Merged in krasul/ruby-pg/issue-68 (pull request #6)
1167
+ [dedcce66d5e8]
1168
+
1169
+ 2012-03-05 Kashif Rasul <kashif@nomad-labs.com>
1170
+
1171
+ * ext/pg_connection.c, ext/pg_result.c, sample/async_api.rb:
1172
+ Added logic for missing cases.
1173
+ [ae9e73972844] <issue-68>
1174
+
1175
+ 2012-03-04 Kashif Rasul <kashif@nomad-labs.com>
1176
+
1177
+ * ext/extconf.rb, ext/pg.c, ext/pg_connection.c,
1178
+ spec/pg/connection_spec.rb:
1179
+ Added server ping() API.
1180
+ [fec045ed060d] <issue-68>
1181
+
1182
+ 2012-03-02 Kashif Rasul <kashif@nomad-labs.com>
1183
+
1184
+ * ext/extconf.rb, ext/pg_connection.c:
1185
+ Added library_version() as a singleton method. Removed non-
1186
+ singletons.
1187
+ [f82d969cc755] <issue-68>
1188
+
1189
+ * ext/pg_connection.c:
1190
+ Added missing #def to rb_define_method() calls.
1191
+ [fd22651ae6c5] <issue-68>
1192
+
1193
+ * ext/pg_connection.c, spec/pg/connection_spec.rb,
1194
+ spec/pg/result_spec.rb:
1195
+ Added spec for escape_literal().
1196
+ [1ce12f2fe97c] <issue-68>
1197
+
1198
+ * ext/pg_connection.c:
1199
+ Removed unused variable.
1200
+ [3b52e0e0d421] <issue-68>
1201
+
1202
+ * ext/extconf.rb, ext/pg_connection.c, spec/pg/connection_spec.rb:
1203
+ Added PGconn#escape_literal and PGconn#escape_identifier API and a
1204
+ spec to test for keepalive connection parameters.
1205
+ [3bdbb90eb13b] <issue-68>
1206
+
1207
+ 2012-02-22 Michael Granger <ged@FaerieMUD.org>
1208
+
1209
+ * .hgtags:
1210
+ Added tag v0.13.2 for changeset c79cd308363d
1211
+ [d8e73919acb6]
1212
+
1213
+ * .hgsigs:
1214
+ Added signature for changeset 41e071bdd6ed
1215
+ [c79cd308363d] [v0.13.2]
1216
+
1217
+ * History.rdoc, lib/pg.rb:
1218
+ Bumped patch version, updated history.
1219
+ [41e071bdd6ed]
1220
+
1221
+ * ext/extconf.rb:
1222
+ Abort early if libpq is too old.
1223
+ [fa5f8e1d7c19]
1224
+
1225
+ * .rvmrc:
1226
+ Updated rvmrc
1227
+ [dbd04c449eea]
1228
+
1229
+ 2012-02-12 Michael Granger <ged@FaerieMUD.org>
1230
+
1231
+ * .hgtags:
1232
+ Added tag v0.13.1 for changeset 9e60b2c477cd
1233
+ [f20d1b488312]
1234
+
1235
+ * .hgsigs:
1236
+ Added signature for changeset 1ba641824000
1237
+ [9e60b2c477cd] [v0.13.1]
1238
+
1239
+ * .hoerc, History.rdoc, Manifest.txt, lib/pg.rb:
1240
+ Bumped patch version, updated History, Manifest.
1241
+ [1ba641824000]
1242
+
1243
+ * ext/pg_connection.c, spec/pg/connection_spec.rb:
1244
+ Raise a rescue-able exception when a connection is used after it's
1245
+ been closed. (fixes #110)
1246
+ [679b1db2b430]
1247
+
1248
+ 2012-02-11 Lars Kanis <kanis@comcard.de>
1249
+
1250
+ * Rakefile:
1251
+ allow overriding of RUBY_CC_VERSION
1252
+ [a9b8576bb35c]
1253
+
1254
+ * Rakefile.cross:
1255
+ update Postgresql download URL for cross compilation
1256
+ [216d08f2bc92]
1257
+
1258
+ 2012-02-09 Michael Granger <ged@FaerieMUD.org>
1259
+
1260
+ * misc/postgres/README.txt, misc/postgres/lib/postgres.rb:
1261
+ Fix the Google group email and bump the patch version
1262
+ [64aa4a38059e]
1263
+
1264
+ * .hgignore, misc/postgres/History.txt, misc/postgres/Manifest.txt,
1265
+ misc/postgres/README.txt, misc/postgres/Rakefile,
1266
+ misc/postgres/lib/postgres.rb:
1267
+ Add a stub gem build for the deprecated 'postgres' gem
1268
+ [62271bf75eac]
1269
+
1270
+ * .hgignore, misc/ruby-pg/History.txt, misc/ruby-pg/Manifest.txt, misc
1271
+ /ruby-pg/README.txt, misc/ruby-pg/Rakefile, misc/ruby-
1272
+ pg/lib/ruby/pg.rb:
1273
+ Add a stub gem build for the deprecated 'ruby-pg' gem
1274
+ [b7521150de9d]
1275
+
1276
+ * BSDL:
1277
+ Add missing BSDL license file (fixes #108)
1278
+ [4d629ff60589]
1279
+
1280
+ * History.rdoc:
1281
+ Add the missing date to the History file
1282
+ [29de189a4581]
1283
+
1284
+ * .hgtags:
1285
+ Added tag v0.13.0 for changeset 7b2da7e0815c
1286
+ [150ea5f80ee4]
1287
+
1288
+ * .hgsigs:
1289
+ Added signature for changeset 9c262b875047
1290
+ [7b2da7e0815c] [v0.13.0]
1291
+
1292
+ 2012-01-28 Michael Granger <ged@FaerieMUD.org>
1293
+
1294
+ * .hgsigs:
1295
+ Added signature for changeset 0e7f0c2451e5
1296
+ [9c262b875047]
1297
+
1298
+ * ext/extconf.rb:
1299
+ Backed out the addition of `pg_config --libs` to the linked
1300
+ libraries
1301
+ [0e7f0c2451e5]
1302
+
1303
+ 2012-01-27 Michael Granger <ged@FaerieMUD.org>
1304
+
1305
+ * Manifest.txt, README-OS_X.rdoc, README-Windows.rdoc, readme-
1306
+ os_x.rdoc, readme-windows.rdoc:
1307
+ More case-corrections
1308
+ [5732b34d5769]
1309
+
1310
+ 2012-01-27 Michael Granger <ged@faeriemud.org>
1311
+
1312
+ * postgres:
1313
+ Merged in larskanis/ruby-pg (pull request #5)
1314
+ [ad3e4338ad35]
1315
+
1316
+ 2012-01-27 Lars Kanis <kanis@comcard.de>
1317
+
1318
+ * Manifest.txt, POSTGRES, Rakefile, ext/extconf.rb, ext/pg.h,
1319
+ postgres:
1320
+ fix cross compilation of win32 binary gem, fix mixed case file
1321
+ naming
1322
+ [17151d677ad7]
1323
+
1324
+ 2012-01-26 Michael Granger <ged@FaerieMUD.org>
1325
+
1326
+ * .hgsigs:
1327
+ Added signature for changeset b67309d3ccf2
1328
+ [8f5629b33d76]
1329
+
1330
+ * .rvmrc, ext/pg_connection.c, spec/pg/connection_spec.rb:
1331
+ Fix for Ruby 1.8, removed accidentally-committed encoding-testing
1332
+ method.
1333
+ [b67309d3ccf2]
1334
+
1335
+ 2012-01-24 Michael Granger <ged@FaerieMUD.org>
1336
+
1337
+ * History.rdoc, Manifest.txt, README.rdoc, Rakefile, lib/pg.rb:
1338
+ Updated the History file, Manifest, README, added missing require.
1339
+ [b2cd37832d02]
1340
+
1341
+ * .rvm.gems:
1342
+ Removed rspec 2.8.1 -- not yet released, and 2.8.0 is now pulled in
1343
+ via hoe-deveiate
1344
+ [a4494f18a0d3]
1345
+
1346
+ * lib/pg/constants.rb:
1347
+ Whitespace cleanup
1348
+ [e1b146cd9c2f]
1349
+
1350
+ * sample/async_api.rb, sample/notify_wait.rb, sample/psql.rb,
1351
+ sample/psqlHelp.rb, sample/test1.rb, sample/test2.rb,
1352
+ sample/test4.rb, sample/test_binary_values.rb:
1353
+ Cleaned up the sample/ directory
1354
+ [287c71f3c89e]
1355
+
1356
+ * .rvm.gems:
1357
+ Bump hoe-deveiate version in the rvm gemset
1358
+ [59d4530b4e43]
1359
+
1360
+ * .rvm.gems, BSD, Contributors.rdoc, GPL, LICENSE, Manifest.txt,
1361
+ README.OS_X.rdoc, README.ja.rdoc, README.rdoc, README.windows.rdoc,
1362
+ Rakefile, postgres, readme-os_x.rdoc, readme-windows.rdoc:
1363
+ Updated/simplified authors/license sections of the README, API doc
1364
+ cleanup, updated license files (fixes #72).
1365
+ [29a15971cd3a]
1366
+
1367
+ * ext/pg.c, ext/pg_connection.c, ext/pg_result.c, spec/lib/helpers.rb,
1368
+ spec/pg/connection_spec.rb:
1369
+ Fix for exception message encoding (#96)
1370
+ [1cdad2ce8993]
1371
+
1372
+ * .pryrc, .tm_properties, Manifest.txt, README.rdoc, ext/compat.c,
1373
+ ext/compat.h, ext/extconf.rb, ext/pg.c, ext/pg.h,
1374
+ ext/pg_connection.c, ext/pg_result.c, lib/pg.rb,
1375
+ lib/pg/connection.rb, lib/pg/constants.rb, lib/pg/exceptions.rb,
1376
+ lib/pg/result.rb, misc/openssl-pg-segfault.rb, sample/async_api.rb,
1377
+ sample/async_copyto.rb, sample/async_mixed.rb, sample/copyfrom.rb,
1378
+ sample/copyto.rb, sample/cursor.rb, sample/losample.rb,
1379
+ sample/notify_wait.rb, sample/psql.rb, sample/test1.rb,
1380
+ sample/test2.rb, sample/test4.rb, sample/test_binary_values.rb,
1381
+ spec/lib/helpers.rb, spec/m17n_spec.rb, spec/pg/connection_spec.rb,
1382
+ spec/pg/result_spec.rb, spec/pg_spec.rb, spec/pgconn_spec.rb,
1383
+ spec/pgresult_spec.rb:
1384
+ Rearranging classes under the PG namespace to be a better Ruby
1385
+ citizen
1386
+ [f346861fbb8b]
1387
+
1388
+ 2012-01-19 Michael Granger <ged@FaerieMUD.org>
1389
+
1390
+ * .hoerc, .rvm.gems, .rvmrc:
1391
+ Adding rvmrc and gemset
1392
+ [dca3d7464a00]
1393
+
1394
+ 2012-01-13 Michael Granger <ged@FaerieMUD.org>
1395
+
1396
+ * Manifest.txt, sample/async_mixed.rb:
1397
+ Adding an example of mixed synchronous/async API.
1398
+ [3ba256ccee89]
1399
+
1400
+ 2012-01-03 Michael Granger <ged@FaerieMUD.org>
1401
+
1402
+ * .hgtags:
1403
+ Added tag v0.12.2 for changeset 88bd78632f86
1404
+ [622bef3960c3]
1405
+
1406
+ * .hgsigs:
1407
+ Added signature for changeset f3dfdb6929b7
1408
+ [88bd78632f86] [v0.12.2]
1409
+
1410
+ * History.rdoc, ext/pg.c:
1411
+ Bump patch version for release.
1412
+ [f3dfdb6929b7]
1413
+
1414
+ * ext/pg.c, spec/m17n_spec.rb:
1415
+ Encode the messages of PGErrors with the encoding of the connection.
1416
+ (fixes #96)
1417
+ [b62c49d91eb2]
1418
+
1419
+ * History.rdoc:
1420
+ Updating history for Lars's patch
1421
+ [5daf0ca646d2]
1422
+
1423
+ * spec/m17n_spec.rb, spec/pgconn_spec.rb, spec/pgresult_spec.rb:
1424
+ Moved all the spec hooks to the top of the file
1425
+ [42671e5d4d67]
1426
+
1427
+ 2012-01-03 Michael Granger <ged@faeriemud.org>
1428
+
1429
+ * Merged in larskanis/ruby-pg (pull request #4)
1430
+ [8d88c47ccc9b]
1431
+
1432
+ 2012-01-03 Lars Kanis <kanis@comcard.de>
1433
+
1434
+ * ext/extconf.rb, ext/pg.h:
1435
+ Alternatively include 'st.h' instead of 'ruby/st.h'. This fixes
1436
+ compilation on Ruby 1.8.
1437
+ [0cf272cb383f]
1438
+
1439
+ 2012-01-03 Michael Granger <ged@FaerieMUD.org>
1440
+
1441
+ * Merged with 6fc514ea2547
1442
+ [5ec3792d1cac]
1443
+
1444
+ 2011-12-27 Michael Granger <ged@FaerieMUD.org>
1445
+
1446
+ * History.rdoc:
1447
+ Updating history file with the st.h change
1448
+ [935f29411410]
1449
+
1450
+ 2012-01-02 Michael Granger <ged@FaerieMUD.org>
1451
+
1452
+ * .hgtags:
1453
+ Added tag v0.12.1 for changeset 21f84883e5c2
1454
+ [6fc514ea2547]
1455
+
1456
+ * .hgsigs:
1457
+ Added signature for changeset f72b14d349bf
1458
+ [21f84883e5c2] [v0.12.1]
1459
+
1460
+ 2011-12-27 Michael Granger <ged@FaerieMUD.org>
1461
+
1462
+ * Merged with f8d66e32b9a8
1463
+ [f72b14d349bf]
1464
+
1465
+ 2011-12-14 Michael Granger <ged@FaerieMUD.org>
1466
+
1467
+ * History.rdoc, ext/pg.c:
1468
+ Bumped patch version, updated History.
1469
+ [f8d66e32b9a8]
1470
+
1471
+ 2011-12-27 Michael Granger <ged@FaerieMUD.org>
1472
+
1473
+ * .tm_properties:
1474
+ Adding my TextMate2 project settings
1475
+ [daa6f202c54a]
1476
+
1477
+ * ext/extconf.rb, ext/pg.h:
1478
+ Explicitly include the st.h file for interpreters that need it
1479
+ (fixes #95)
1480
+ [448cccfe5bbb]
1481
+
1482
+ * Rakefile.cross:
1483
+ Allow native compiles without Mingw tools present
1484
+ [f15ac13b396b]
1485
+
1486
+ * Rakefile, Rakefile.cross:
1487
+ Whitespace consistency fixes
1488
+ [784c6c5cbea9]
1489
+
1490
+ 2011-12-14 Michael Granger <ged@FaerieMUD.org>
1491
+
1492
+ * Rakefile:
1493
+ Made rake-compiler a dev dependency. Thanks to eolamey@bitbucket and
1494
+ Jeremy Evans for pointing out that it isn't needed for gem
1495
+ installation. (Fixes #93)
1496
+ [af645318f239]
1497
+
1
1498
  2011-12-07 Michael Granger <ged@FaerieMUD.org>
2
1499
 
3
1500
  * .hgtags:
4
1501
  Added tag v0.12.0 for changeset b767401684d8
5
- [1060487e7621] [tip]
1502
+ [1060487e7621]
6
1503
 
7
1504
  * .hgsigs:
8
1505
  Added signature for changeset 19b551f972e2
@@ -17,7 +1514,7 @@
17
1514
  * README.windows.rdoc, Rakefile, Rakefile.cross:
18
1515
  re-add mingw32 cross compilation tasks, updated to current
19
1516
  pg,openssl,ruby versions
20
- [a8b505d430d0] [github/master]
1517
+ [a8b505d430d0]
21
1518
 
22
1519
  2011-12-07 Michael Granger <ged@FaerieMUD.org>
23
1520
 
@@ -555,6 +2052,11 @@
555
2052
  * Merged with 168:dfaa59767b2e
556
2053
  [86f238c12fa3]
557
2054
 
2055
+ * spec/pgconn_spec.rb:
2056
+ Reworded an example's description and added a specific transaction-
2057
+ abort spec
2058
+ [dfaa59767b2e]
2059
+
558
2060
  2010-06-22 Michael Granger <ged@FaerieMUD.org>
559
2061
 
560
2062
  * Rakefile.local:
@@ -585,15 +2087,6 @@
585
2087
  * Improved diagnostics of failed extconf runs (refs #32, #24)
586
2088
  [5418a1d86d91]
587
2089
 
588
- 2010-07-21 Michael Granger <ged@FaerieMUD.org>
589
-
590
- * spec/pgconn_spec.rb:
591
- Reworded an example's description and added a specific transaction-
592
- abort spec
593
- [dfaa59767b2e]
594
-
595
- 2010-06-22 Michael Granger <ged@FaerieMUD.org>
596
-
597
2090
  * .hgignore:
598
2091
  Adding some more stuff to the ignorefile
599
2092
  [07502a793f3a]