-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChangeLog
5959 lines (4133 loc) · 201 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2010-02-22 14:18 t-ishii
* doc/pgpool-ja.html: prepare for 2.3.2.2.
2010-02-22 13:49 t-ishii
* NEWS, configure, configure.in: Prepare 2.3.2.2
2010-02-22 12:53 t-ishii
* pool_proto_modules.c: Fix parse(). When rewriting timestamp
query, it allocated less than what it actually needed.
2010-02-17 23:00 t-ishii
* pool_timestamp.c: Fix bind_rewrite_timestamp. It crashes if param
length is -1, that indicates NULL.
2010-02-13 20:23 t-ishii
* main.c: Fix read_status_file so that if all nodes were marked
down status, it is regarded that this file is bogus. This will
prevent "all node down" syndrome.
2010-02-11 18:40 t-ishii
* ChangeLog, doc/pgpool-ja.html (utags: V2_3_2_1): Prepare 2.3.2.1
2010-02-11 18:35 t-ishii
* doc/pgpool-ja.html, NEWS (tags: V2_3_2_1): Prepare 2.3.2.1
2010-02-11 18:29 t-ishii
* configure, configure.in (utags: V2_3_2_1): Prepare 2.3.2.1
2010-02-10 18:41 t-ishii
* pool_process_query.c (tags: V2_3_2_1): Fix
pool_extract_error_message not to write past end of message_buf.
This causes kind = 0 error on some platforms/gcc combo. Patch
contributed by Akio Ishida. Minor tweak by Tatsuo.
2010-02-07 16:20 t-ishii
* ChangeLog, NEWS, doc/pgpool-ja.html (utags: V2_3_2): Prepare
2.3.2
2010-02-07 16:04 t-ishii
* pool_process_query.c (tags: V2_3_2): Fix read_kind_from_backend
so that it properly checks the return value from
pool_extract_error_message.
2010-02-07 12:08 t-ishii
* pool_process_query.c: Enhance read_kind_from_backend. If kind
mismatch error occurs and command is DEALLOCATE, print original
prepared query which DEALLOCATE tries to delete.
2010-02-07 12:05 t-ishii
* pool_proto_modules.c (tags: V2_3_2_1, V2_3_2): Fix SimpleQuery if
DEALLOCATE received, register pending function.
2010-02-07 12:04 t-ishii
* main.c (tags: V2_3_2_1, V2_3_2): Fix I/O check in reading/writing
status file.
2010-02-04 09:31 t-ishii
* pool_ssl.c (tags: V2_3_2_1, V2_3_2): Change pool_error to
pool_log when backend does not support SSL but pgpool does.
2010-02-03 19:31 t-ishii
* pool_ssl.c: All previously handled errors related to the OpenSSL
engine are now handled with a macro and a small static function in
order to both produce more informative errors as well as commonize
some duplicate code in pool_ssl.c
Patch contributed by Sean Finney
2010-02-03 17:11 t-ishii
* pool.h (tags: V2_3_2_1, V2_3_2), pool_process_query.c,
pool_proto_modules.c: Emit statement log when error or notice
message comes from backend when SimpleQuery or Parse executed. This
is usefull because PostgreSQL does not log particular statement if
the error was detected *before* raw parser get executed. This
typlically happens when encoding error was found.
2010-02-02 14:45 t-ishii
* TODO (tags: V2_3_2_1, V2_3_2): Sync TODO with 2.3.2
2010-02-02 14:44 t-ishii
* doc/: pgpool-en.html (tags: V2_3_2_1, V2_3_2), pgpool-ja.html:
Add description about how to sync sequences in online recovery
2010-02-02 14:43 t-ishii
* pool_process_query.c: Fix typo in comment
2010-02-01 18:05 t-ishii
* child.c (tags: V2_3_2_1, V2_3_2), pool.h, pool_process_query.c,
pool_timestamp.c (tags: V2_3_2_1, V2_3_2),
test/timestamp/expected/insert.out (tags: V2_3_2_1, V2_3_2),
test/timestamp/input/insert.sql (tags: V2_3_2_1, V2_3_2): Fix
timestamp rewritting. Fix number of parameters of Prepare. Fix
prepared statement list to be reset when connection_cache = false.
Patch contributed by Akio Ishida.
2010-01-31 22:28 t-ishii
* pool_ssl.c: Include string.h for strlen
2010-01-31 12:15 t-ishii
* ChangeLog: Update ChangeLog
2010-01-31 11:55 t-ishii
* pool_process_reporting.c (tags: V2_3_2_1, V2_3_2): Add
lobj_lock_table, ssl, ssl_key and ssl_cert.
2010-01-31 11:54 t-ishii
* pool_lobj.c (tags: V2_3_2_1, V2_3_2): Fix error message
2010-01-31 11:22 t-ishii
* NEWS, configure (tags: V2_3_2), configure.in (tags: V2_3_2),
pgpool.conf.sample (tags: V2_3_2_1, V2_3_2),
pgpool.conf.sample-master-slave (tags: V2_3_2_1, V2_3_2),
pgpool.conf.sample-replication (tags: V2_3_2_1, V2_3_2), pool.h,
pool_config.c (tags: V2_3_2_1, V2_3_2), pool_config.l (tags:
V2_3_2_1, V2_3_2), pool_ssl.c, doc/pgpool-en.html,
doc/pgpool-ja.html: Prepare 2.3.2.
2010-01-30 10:57 t-ishii
* pool_process_query.c, pool_proto_modules.c: Fix parse() so that
it does not use already-freeed memory when sending rewritten packet
for timestamp support. Also fix SimpleForwardToBackend() to free
rewritten packet in proper timing.
2010-01-26 23:49 t-ishii
* Makefile.am (tags: V2_3_2_1, V2_3_2), Makefile.in (tags:
V2_3_2_1, V2_3_2), child.c, config.h.in (tags: V2_3_2_1, V2_3_2),
configure, configure.in, main.c, pgpool.conf.sample,
pgpool.conf.sample-master-slave, pgpool.conf.sample-replication,
pool.h, pool_config.c, pool_config.l, pool_ssl.c, pool_stream.c
(tags: V2_3_2_1, V2_3_2): Add SSL support. Patch contributed by
Sean Finney.
-------------------------------------------------------------------
The new pool_ssl.c provides the necessary functions for negotiating
SSL based connections for both frontend and backend connections.
child.c has been updated to request the negotiation in both cases,
and pool_stream.c has been modified to use SSL based i/o functions
if a connection has successfully negotiated a connection.
SSL related failures should be handled as gracefully as possible.
For frontend connections, the client is allowed to continue in
cleartext in the case that SSL negotiation was not successful. For
backend connections, plaintext connections should continue as well,
modulo any pg_hba restrictions on the remote server. It is also
possible to have connections where only one of the frontend/backend
uses SSL.
By default this functionality is off (further testing should be done
and perhaps better controls on certificate verification, etc).
New fields are added to the global pool configuration to allow
specifying SSL related settings:
* "ssl", global on/off switch (default: off)
* "ssl_cert", path to SSL public certificate (default: "")
* "ssl_key", path to SSL private key (default: "")
The sample pgpool.conf files have been updated with comments and
sample values for these new settings.
The autoconf build system has been updated with a new
"--with-openssl" option to allow enabling/disabling SSL support at
build time. For simplicity and clarity no effort is made to provide
extra flexibility similar to the existing
--with-pgsql{,-include-dir,lib-dir} ./configure flags. In the
meantime it's expected that the necessary flags are provided via
CFLAGS/LDFLAGS etc when calling ./configure.
2010-01-26 18:53 t-ishii
* pool.h, pool_lobj.c, pool_process_query.c, pool_relcache.c (tags:
V2_3_2_1, V2_3_2), pool_timestamp.c, test/timestamp/main.c (tags:
V2_3_2_1, V2_3_2): Teach do_query to support V2 protocol. This
will solve the problem with pgpool-II 2.3 user who are experiencing
error while using V2 dirvers (for example unixODBC). See
[Pgpool-general] Bug report pgpool-II-2.3.1 plus ODBC submitted on
Tue, 12 Jan 2010 12:46:35 -0500 for this kind of use case. Patch
contributed by Toshihiro Kitagawa.
2010-01-24 00:21 t-ishii
* Makefile.am, Makefile.in, pgpool.conf.sample, pool.h,
pool_config.c, pool_config.l, pool_lobj.c, pool_process_query.c:
Add support for large object creation in replication mode. We
rewrite lo_creat function call to lo_create which allow us to
specifiy large object id. The missing argument for lo_create is
taken by: SELECT coalesce(max(loid)::INTEGER, 0)+1 FROM
pg_catalog.pg_largeobject; To avoid race condion, we add new
directive called lobj_lock_table which is used to aquire lock while
grabing above value. New source file pool_lobj.c added.
2010-01-21 16:41 t-ishii
* pool_process_query.c, pool_proto_modules.c: Fix
SimpleForwardtoBackend so that it sends Bind, Describe and Close
message to only master node if running in master/slave and in
transaction.
2010-01-21 14:49 t-ishii
* pool_process_query.c, pool_proto_modules.c: Fix
SimpleForwardtoBackend so that it sends Bind, Describe and Close
message to only master node if running in master/slave and in
transaction.
2010-01-19 16:23 kitagawa
* child.c: Fix do_child() so that check_stop_request() exits
immediately when smart shutdown signal has been sent. This has been
used to work in 2.2.
2010-01-17 17:42 t-ishii
* pool_rewrite_outfuncs.c (tags: V2_3_2_1, V2_3_2): Add standard
pgpool Global Development Group header comments. This was missing
from the day one of the file.
Fix _rewriteGrantStmt to suppress compiler warnings. (This is not
an actual fix, just make it cleaner that we are missing some
implementations).
2010-01-17 17:19 t-ishii
* pool_timestamp.c: Fix bind_rewrite_timestamp when used with
paramFormats being specified and more than two parameters exist.
Patch contributed by Akio Ishida. See [pgpool-general-jp: 670] for
more details.
2010-01-09 18:24 t-ishii
* pool_process_query.c: Emit a log when postmaster goes down.
2010-01-09 18:15 t-ishii
* pool_proto_modules.c: Fix ProcessFrontendResponse not to accept
invalid frotend packet. Patch contributed by Xavier Noguer.
2010-01-09 18:10 t-ishii
* child.c, pool.h, pool_process_query.c: Remove unused argument
first_ready_for_query_received from pool_process_query. Also change
argument "connection_reuse" to reset_request which is more
appropreate one. While processing reset_request is true, we don't
read from frontend any data because after received terminate
request, anything from from frontend must be bogus and should be
ignored. Remove unsed variable first_ready_for_query_received from
do_child.
2010-01-09 18:04 t-ishii
* child.c, pool.h, pool_process_query.c: Remove unused argument
first_ready_for_query_received from pool_process_query. Also chage
argument "connection_reuse" to reset_request which is more
appropreate one. While processing reset_request is true, we don't
read from frontend any data because after received terminate
request, anything from from frontend must be bogus and should be
ignored. Remove unsed variable first_ready_for_query_received from
do_child.
2010-01-09 09:51 t-ishii
* pcp/pcp.c: Use %dz for sizeof in fprintf for more portability.
2010-01-02 18:32 t-ishii
* child.c:
I found what I think is a small error allocating memory in the
make_persistent_db_connection() function in child.c. The amount of
memory allocated is more than it should be, so it's actually
harmless.
Patch contributed by Xavier Noguer.
2010-01-02 18:29 t-ishii
* child.c:
I found what I think is a small error allocating memory in the
make_persistent_db_connection() function in child.c. The amount of
memory allocated is more than it should be, so it's actually
harmless.
Patch contributed by Xavier Noguer.
2010-01-02 18:17 t-ishii
* pool_connection_pool.c (tags: V2_3_2_1, V2_3_2),
pool_process_query.c, pool_proto_modules.c, pool_relcache.c,
pool_connection_pool.c: Fix warnings when compiling on 64bit
platforms.
2009-12-25 10:59 t-ishii
* pool_proto_modules.c: Do not force replication of DEALLOCATE if
operated in master/slave mode. Now that pgpool do not execute PARSE
in all nodes, this was pointless and caused problem (kind mismatch
when executing DEALLOCATE).
2009-12-25 10:58 t-ishii
* pool_process_query.c: Fix sloppy coding in parse_copy_data. Add
error checking for malloc. Remove meaningless strerror.
Fix sloppy coding in send_dealllocate. If failed to malloc, return
-1, rather than horrible exit(1).
2009-12-25 10:54 t-ishii
* pool_process_query.c: Fix sloppy coding in parse_copy_data. Add
error checking for malloc. Remove meaningless strerror.
Fix sloppy coding in send_dealllocate. If failed to malloc, return
-1, rather than horrible exit(1).
2009-12-25 09:35 t-ishii
* pool_proto_modules.c: Do not force replication of DEALLOCATE if
operated in master/slave mode. Now that pgpool do not execute PARSE
in all nodes, this was pointless and caused problem (kind mismatch
when executing DEALLOCATE).
2009-12-23 18:30 t-ishii
* main.c, recovery.c (tags: V2_3_2_1, V2_3_2): While health
checking and recovery use postgres database if possible. If
postgres database does not exist, use template1 as it stands now.
While connecting template1, certain commands, for example DROP
DATABSE cannot used. Using postgres database allows to use these
commands while recovery.
2009-12-18 17:18 t-ishii
* doc/pgpool-ja.css (tags: V2_3_2_1, V2_3_2, V2_3_1): Add css file
for Japanese.
2009-12-18 17:16 t-ishii
* NEWS, doc/pgpool-ja.html, ChangeLog (utags: V2_3_1): Prepare for
2.3.
2009-12-18 16:09 t-ishii
* Makefile.am, Makefile.in, c-compiler.m4 (tags: V2_3_2_1, V2_3_2),
c-library.m4 (tags: V2_3_2_1, V2_3_2), config.h.in, configure,
configure.in, general.m4 (tags: V2_3_2_1, V2_3_2),
parser/Makefile.in (tags: V2_3_2_1, V2_3_2), pcp/Makefile.in
(tags: V2_3_2_1, V2_3_2) (utags: V2_3_1): Fix bugtrack [#1010740]
BigInt distortion in pgpool-II 2.3 version, when NOW() use. This bug
only exists on 64bit platforms.
This was caused by that following code in parser/scan.l does not
work properly on 64bit platforms because HAVE_LONG_INT_64 is not
defined. To fix this we steal part of PostgreSQL's configure and
some m4 macros.
long val;
char* endptr;
SET_YYLLOC();
errno = 0;
val = strtol(yytext, &endptr, 10);
if (*endptr != '\0' || errno == ERANGE #ifdef HAVE_LONG_INT_64
/* if long > 32 bits, check for overflow of int4 */
|| val != (long) ((int32) val) #endif
)
{
/* integer too large, treat it as a float */
yylval.str = pstrdup(yytext);
return FCONST;
}
yylval.ival = val;
return ICONST;
2009-12-18 09:30 t-ishii
* pool_process_reporting.c (tags: V2_3_1), pool_process_query.c:
Fix crush with show pool_status when there many (more than 18) DB
nodes.
2009-12-16 18:35 t-ishii
* main.c (tags: V2_3_1): Enhance pgpool start up log.
2009-12-16 18:23 t-ishii
* pool.h, pool_process_query.c: Enhance "kind mismatch" message. If
kind is ERROR or NOTICE, print the ERROR/NOTICE message to help
users to find what's going on. For this pupose, add new function
pool_extract_error_message() into pool_process_query.c.
Fix sloppy coding of detect_erorr(). Check memory allocation error,
check buffer overrun error.
2009-12-16 16:27 t-ishii
* pool_process_query.c (tags: V2_3_1): Fix sloppy coding of
detect_erorr(). Check memory allocation error, check buffer overrun
error.
2009-12-16 16:19 t-ishii
* pool.h (tags: V2_3_1), pool_process_query.c: Enhance "kind
mismatch" message. If kind is ERROR or NOTICE, print the
ERROR/NOTICE message to help users to find what's going on. For
this pupose, add new function pool_extract_error_message() into
pool_process_query.c.
2009-12-07 20:47 t-ishii
* Makefile.am, Makefile.in: Forgot to add sample pgpool.conf files.
2009-12-07 18:41 t-ishii
* doc/pgpool-ja.html (tags: V2_3): Change release date
2009-12-07 18:38 t-ishii
* NEWS (tags: V2_3), doc/pgpool-en.html (tags: V2_3_1, V2_3),
doc/pgpool-ja.html, ChangeLog (tags: V2_3): Prepare 2.3
2009-12-07 17:11 t-ishii
* pool_process_query.c (tags: V2_3): Allow to load balance EXPLAIN
and EXPLAIN ANALYZE (only if query is SELECT). This will prevent
kind mismatch errors when query plan are different among servers.
2009-12-06 21:55 t-ishii
* main.c, pool.h, pool_type.h (tags: V2_3_2_1, V2_3_2, V2_3_1)
(utags: V2_3): Restore backend status by using pgpool_status
file.
2009-12-06 20:53 t-ishii
* version.h (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3): Change code
name for pgpool-II 2.3
2009-12-06 18:57 t-ishii
* pgpool.conf.sample-master-slave, pgpool.conf.sample-replication
(utags: V2_3, V2_3_1): Add pgpool.conf sample for replication
mode and master/slave mode
2009-12-06 17:46 t-ishii
* pgpool.conf.sample (tags: V2_3_1, V2_3), pool.h, pool_config.c
(tags: V2_3_1, V2_3), pool_config.l (tags: V2_3_1, V2_3),
pool_process_query.c, pool_process_reporting.c (tags: V2_3),
pool_stream.c (tags: V2_3_1, V2_3): Add new configuration
parameter fail_over_on_backend_error which controls the behavior
when write to backend socket fails.
Also add pool_log when postmaster administrative shutdown detected.
2009-12-06 16:52 t-ishii
* pool_process_query.c, pool_proto_modules.c (tags: V2_3_1, V2_3):
Ignore error of pool_flush(frontend).
2009-12-06 16:46 t-ishii
* pool_proto_modules.c: Optimization when num_init_children == 1.
In this case we don't need to wait for master returning a response
before sending a query to the other nodes.
2009-12-06 16:43 t-ishii
* Makefile.am (tags: V2_3), Makefile.in (tags: V2_3),
pool_process_query.c, pool_process_reporting.c: Teach
process_reporting() about log_per_node_statement. Also refactor
pool_process_query.c to remove process_reporting() and make a new
source file "pool_process_reporting.c" to hold the funtcion. Main
reason for this is, process_reporting() is now big enough to have a
separate C source file.
2009-12-02 23:19 t-ishii
* child.c (tags: V2_3_1, V2_3), pool.h, pool_process_query.c:
Enhance SIGINT handler.
2009-12-02 23:11 t-ishii
* pool_proto_modules.c: Fix ProcessFrontendResponse() handling of
Parse message in master/slave mode. If it's inside transaction,
enable master_slave_dml, which means execute parse on master only.
This will prevent unwanted parase executed on slave, which holds at
least AccessShareLock on tables until transaction commits. It seems
unamed statement does not release the lock until execute.
Please note that, even with this fix, bind state will remain on
slave if JDBC issues parse with autocommit off. This is because
BEGIN parsed, bind on both master and slave but execute only on
master. However, this is not harmfull since parse/bind does not hold
any locks on tables.
Also add some logging statemets.
2009-12-01 22:05 t-ishii
* ChangeLog (tags: V2_2_6): v2.2.6
2009-12-01 22:02 t-ishii
* doc/pgpool-ja.html, NEWS (utags: V2_2_6): Add release note
2009-11-29 20:56 t-ishii
* pool_process_query.c, pool_process_query.c (tags: V2_2_6): Fix
is_select_query() not to allow cursor statements. Close() should
not allowed since hold cursor + update may cause data inconsistency.
2009-11-29 17:42 t-ishii
* pool_process_query.c: Add logging by per_node_statement().
2009-11-29 17:29 t-ishii
* pool_proto_modules.c (tags: V2_2_6): Fix
ProcessFrontendResponse() handling of Parse message in master/slave
mode. If it's inside transaction, enable master_slave_dml, which
means execute parse on master only. This will prevent unwanted
parase executed on slave, which holds at least AccessShareLock on
tables until transaction commits. It seems unamed statement does
not release the lock until execute.
Please note that, even with this fix, bind state will remain on
slave if JDBC issues parse with autocommit off. This is because
BEGIN parsed, bind on both master and slave but execute only on
master. However, this is not harmfull since parse/bind does not hold
any locks on tables.
2009-11-18 15:55 t-ishii
* config.h.in, configure, configure.in (utags: V2_2_6): Add -lcrypt
for linking commnad. Certain distribution ships libpq without
linking to libcrypt by some reasons which I don't know.
2009-11-18 15:45 t-ishii
* config.h.in, configure, configure.in (utags: V2_3): Add -lcrypt
for linking commnad. Certain distribution ships libpq without
linking to libcrypt by some reasons which I don't know.
2009-11-15 20:16 t-ishii
* ChangeLog: Run cvs2cl.pl -t --fsf -b -F trunk
2009-11-15 17:27 t-ishii
* pgpool.conf.sample, pool.h, pool_config.c, pool_config.l,
pool_process_query.c, pool_proto_modules.c, pool_relcache.c
(tags: V2_3_1, V2_3): Add new directive log_per_node_statement.
If true, print all statements to the log. Similar to log_statement
except that prints DB node id and backend process id info.
2009-11-15 17:05 t-ishii
* pool_config.c, pool_config.l: Set change default value of
reset_query_list to "ABORT, DISCARD ALL"
2009-11-14 22:22 t-ishii
* child.c, pool.h, pool_process_query.c, pool_proto_modules.c,
pool_proto_modules.h (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3): Fix
connection_cache = false case. In this mode, if frontend exits
abnormaly, some global state variables are not reset. For this
purpose, new function reset_variables() added.
Remove unnecessary argument of end_load_balance().
2009-11-14 22:16 t-ishii
* pool.h (tags: V2_2_6), pool_process_query.c,
pool_proto_modules.c, pool_proto_modules.h (tags: V2_2_6),
child.c (tags: V2_2_6): Fix connection_cache = false case. In
this mode, if frontend exits abnormaly, some global state variables
are not reset. For this purpose, new function reset_variables()
added.
Remove unnecessary argument of end_load_balance().
2009-11-14 20:41 t-ishii
* pool_config.c: Update pool_config.l
2009-11-14 20:40 t-ishii
* pool_config.l: Allow to change weight with reloading pgpool.conf
2009-11-14 20:38 t-ishii
* pool_config.c (tags: V2_2_6): Update pgpool_config.l
2009-11-14 20:37 t-ishii
* pool_config.l (tags: V2_2_6): Allow to change weight with
reloading pgpool.conf
2009-11-14 20:35 t-ishii
* main.c (tags: V2_2_6), main.c: Limit listen(2)'s backlog
parameter to num_init_children*2 at largest. This is almost same
algorithm as PostgreSQL. I hope pgpool-II does not consume so much
system resource any more...
2009-11-14 08:35 t-ishii
* pool_timestamp.c, test/timestamp/expected/insert.out,
test/timestamp/expected/misc.out (tags: V2_3_2_1, V2_3_2),
test/timestamp/expected/update.out (tags: V2_3_2_1, V2_3_2)
(utags: V2_3, V2_3_1): Fix some query rewriting cases.
2009-11-12 16:37 t-ishii
* pgpool.conf.sample: Change reset_query_list default to PostgreSQL
8.3.
2009-11-12 16:04 t-ishii
* pool_process_query.c: Prepare for bind_rewrite_timestamp()
returns NULL case. This could happen if SELECT now() is called
inside an aborted transaction.
Fix SimpleForwardToBackend free rewrite_msg too early.
2009-11-11 10:53 t-ishii
* pool_timestamp.c: Fix comment.
2009-11-10 19:03 t-ishii
* Makefile.am, Makefile.in, pool_process_query.c,
pool_proto_modules.c, pool_proto_modules.h, pool_timestamp.c,
pool_timestamp.h (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3),
test/timestamp/Makefile (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3),
test/timestamp/main.c (tags: V2_3_1, V2_3),
test/timestamp/parse_schedule (tags: V2_3_2_1, V2_3_2, V2_3_1,
V2_3), test/timestamp/run-test (tags: V2_3_2_1, V2_3_2, V2_3_1,
V2_3), test/timestamp/expected/insert.out,
test/timestamp/expected/misc.out,
test/timestamp/expected/update.out,
test/timestamp/input/insert.sql (tags: V2_3_1, V2_3),
test/timestamp/input/misc.sql (tags: V2_3_2_1, V2_3_2, V2_3_1,
V2_3), test/timestamp/input/update.sql (tags: V2_3_2_1, V2_3_2,
V2_3_1, V2_3): Add support for CURRENT_TIMESTAMP and friends.
Patch provided by Akio Ishida.
2009-11-10 11:24 t-ishii
* main.c: Fix comment.
2009-11-05 15:26 t-ishii
* pool_relcache.c (tags: V2_2_6), pool_relcache.c: Fix relcache
replacement logic bug. Patches provided by Akio Ishida.
2009-11-05 13:12 t-ishii
* parser/outfuncs.c, test/parser/expected/insert.out,
test/parser/expected/select.out, test/parser/input/insert.sql,
test/parser/input/select.sql (utags: V2_2_6): Fix nodeToString()
bug. example test case: If nodeToString() is given the parse tree of
"insert into r1 values(1,2), (3,4)", it returns "insert into r1
values(1,2), values(3,4)", which is apparently wrong. Patch
provided by Akio Ishida.
2009-11-05 12:43 t-ishii
* ChangeLog, TODO (tags: V2_3_1, V2_3), parser/outfuncs.c (tags:
V2_3_2_1, V2_3_2, V2_3_1, V2_3), test/parser/expected/insert.out
(tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3),
test/parser/expected/select.out (tags: V2_3_2_1, V2_3_2, V2_3_1,
V2_3), test/parser/input/insert.sql (tags: V2_3_2_1, V2_3_2,
V2_3_1, V2_3), test/parser/input/select.sql (tags: V2_3_2_1,
V2_3_2, V2_3_1, V2_3): Fix nodeToString() bug. example test case:
If nodeToString() is given the parse tree of "insert into r1
values(1,2), (3,4)", it returns "insert into r1 values(1,2),
values(3,4)", which is apparently wrong. Patch provided by Akio
Ishida.
2009-11-04 22:59 t-ishii
* pool_process_query.c: Fix do_query() to return more than 1
characters. Patch provided by Akio Ishida.
2009-11-03 20:14 devrim
* pgpool.spec (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3), pgpool.spec
(tags: V2_2_6):
- Remove init script from all runlevels before uninstall. Per #RH
Bugzilla 532177
2009-11-03 11:00 t-ishii
* pool.h, pool_auth.c (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3),
pool_process_query.c: When authentication fails, report to
frontend proper error messages, rather than unhelpfull "server
closed the connection unexpectedly" message. Patch provided by Glyn
Astill with minor tweak by Tatsuo Ishii.
2009-11-03 10:57 t-ishii
* pool.h, pool_auth.c (tags: V2_2_6), pool_process_query.c: When
authentication fails, report to frontend proper error messages,
rather than unhelpfull "server closed the connection unexpectedly"
message. Patch provided by Glyn Astill with minor tweak by Tatsuo
Ishii.
2009-11-03 10:50 t-ishii
* pool_stream.c (tags: V2_2_6), pool_stream.c: Fix pool_flush_it()
so that it does not complain when failed to flush to frontend. Also
add info to the message if it was backend or frontend to avoid
confusion.
2009-10-30 14:11 t-ishii
* pool_proto_modules.c: Allow is_temp_table to work with pre 8.4
PostgreSQL.
2009-10-30 14:01 t-ishii
* pool_proto_modules.c: Allow is_temp_table to work with pre 8.4
PostgreSQL.
2009-10-29 22:44 t-ishii
* Makefile.am, Makefile.in, child.c, configure, configure.in,
pool.h, pool_process_query.c, pool_proto_modules.c: Add
pool_relcache.c to Makefile.am. Refactor need_insert_lock to use
pool_search_relcache and friends. Add LocalSessionId to child.c
which manage per session counter of relcache. Allow to use temp
tables with master/slave mode. Parse() failed. since Parse() was
always sent to master and slave and slave does not have the temp
table. To fix this, is_temp_table() added to pool_proto_modules.c
which inquire particular table is a temporary one or not when
INSERT/UPDATE/DELETE. If it's a temporary table, parse message is
sent to only master. Note that /*NO LOAD BALANCE*/ directive can be
used to control this. SELECT still needs /*NO LOAD BALANCE*/. It's
hard to find all tables in a SELECT statement.
2009-10-29 21:58 t-ishii
* child.c, pool.h, pool_process_query.c, Makefile.am (tags:
V2_2_6), Makefile.in (tags: V2_2_6), configure, configure.in,
pool_proto_modules.c: Add pool_relcache.c to Makefile.am.
Refactor need_insert_lock to use pool_search_relcache and friends.
Add LocalSessionId to child.c which manage per session counter of
relcache. Allow to use temp tables with master/slave mode. Parse()
failed. since Parse() was always sent to master and slave and slave
does not have the temp table. To fix this, is_temp_table() added to
pool_proto_modules.c which inquire particular table is a temporary
one or not when INSERT/UPDATE/DELETE. If it's a temporary table,
parse message is sent to only master. Note that /*NO LOAD BALANCE*/
directive can be used to control this. SELECT still needs /*NO LOAD
BALANCE*/. It's hard to find all tables in a SELECT statement.
2009-10-29 21:46 t-ishii
* pool_relcache.c: Per process relation cache module
2009-10-29 21:42 t-ishii
* pool_relcache.c: Per process relation cache module
2009-10-25 16:19 t-ishii
* test/jdbc/: CreateTempTableTest.java (tags: V2_3_2_1, V2_3_2,
V2_3_1, V2_3), expected/CreateTempTable (tags: V2_3_2_1, V2_3_2,
V2_3_1, V2_3), RunTest.java (tags: V2_2_6), RunTest.java (tags:
V2_3_2_1, V2_3_2, V2_3_1, V2_3): Add temp table test
2009-10-25 16:14 t-ishii
* test/jdbc/: CreateTempTableTest.java, expected/CreateTempTable
(utags: V2_2_6): Add temp table test
2009-10-22 20:52 devrim
* redhat/: pgpool.init (tags: V2_2_6), pgpool.sysconfig (tags:
V2_2_6), pgpool.init (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3),
pgpool.sysconfig (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3): Fix
logging, per report from Toshihiro Kitagawa.
2009-10-21 23:39 t-ishii
* pool_process_query.c: Do not execute CREATE/DROP TABLE SPACE
inside a transaction block.
Teach do_command() that S (parameter status) should be ignored until
receiving command complete.
2009-10-21 23:05 t-ishii
* main.c: Let reaper() report the case when child died by segfault.
2009-10-12 11:21 t-ishii
* pgpool.8.in (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3): Fix typo in
man page. Patch provided by Rodolphe.
2009-10-12 11:19 t-ishii
* pgpool.8.in (tags: V2_2_6): Fix typo in man pages. Patch provided
by Rodolphe.
2009-10-12 10:54 t-ishii
* pool_process_query.c: REINDEX DATABASE or SYSTEM should not be
executed in a transaction block. See [pgpool-general-jp: 623] for
more details.
2009-10-12 10:41 t-ishii
* pool_process_query.c: REINDEX DATABASE or SYSTEM should not be
executed in a transaction block. See [pgpool-general-jp: 623] for
more details.
2009-10-06 00:13 devrim
* pgpool.spec:
- Update to 2.2.5, for various fixes described at
http://lists.pgfoundry.org/pipermail/pgpool-general/2009-October/002188.html
- Re-apply a fix for Red Hat Bugzilla #442372
- Add 2 new docs, per Tatsuo.
2009-10-06 00:12 devrim
* pgpool.spec:
Add 2 new docs, per Tatsuo.
2009-10-05 19:38 devrim
* pgpool.spec:
- Update to 2.2.5, for various fixes described at
http://lists.pgfoundry.org/pipermail/pgpool-general/2009-October/002188.html
- Re-apply a fix for Red Hat Bugzilla #442372
- Sync with Fedora spec.
2009-10-04 18:15 t-ishii
* NEWS, configure.in, configure, ChangeLog (utags: V2_2_5): Prepare
2.2.5
2009-10-04 18:15 t-ishii
* doc/pgpool-ja.html (tags: V2_2_5): Add release note for 2.2.5
2009-10-04 08:52 t-ishii
* doc/: tutorial-en.html (tags: V2_2_6, V2_2_5), tutorial-en.html
(tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3), tutorial-ja.html (tags:
V2_3_2_1, V2_3_2, V2_3_1, V2_3): Add sample to use rotatelogs
2009-10-03 21:45 t-ishii
* doc/tutorial-ja.html (tags: V2_2_6, V2_2_5): Add sample to use
rotatelogs
2009-10-03 21:39 t-ishii
* sample/: pgpool_recovery_pitr (tags: V2_2_6, V2_2_5),
pgpool_recovery_pitr (tags: V2_3_2_1, V2_3_2, V2_3_1, V2_3):
Enhance online recovery 2nd stage script to sync sequence value
2009-10-03 20:55 t-ishii
* pool_proto_modules.h (tags: V2_2_5), pool_proto_modules.h: Remove
unnecessary declaration "allow_close_transaction"
2009-10-02 17:00 t-ishii
* pool_proto_modules.c: Prevoius commit was incomplete
2009-10-02 16:56 t-ishii
* pool_proto_modules.c (tags: V2_2_5), pool_proto_modules.c: Fix
Parse() to use wait_for_query_response() instead of synchronize().
2009-10-02 16:53 t-ishii
* pool_process_query.c (tags: V2_2_5), pool_process_query.c: Fix
comment
2009-09-26 18:14 t-ishii
* pool_proto_modules.c: Allow to print more accurate query when
Parse() detects kind mismatch errors.
2009-09-26 16:51 t-ishii
* pool_process_query.c: Fix reset_backend to deal with DEALLOCATE
error. In this case prepared objects are not removed and
reset_backend is infinitely called.
Fix do_command to guard against the case that after execution of an
SQL command, the backend does not return either N, E or C. This
should not happen but there was a report that it actually happend in
certain cases(maybe caused by asynchronized backend data?)
See:
Subject: Re: [Pgpool-general] pgpool 2.2.4: DEALLOCATED children
From: Xavier Noguer Date: Fri, 25 Sep 2009 03:35:57 -0400
For more details.
Patches by Xavier Noguer with minor tweak by Tatsuo Ishii.
2009-09-26 16:36 t-ishii
* pool_process_query.c: Fix reset_backend to deal with DEALLOCATE
error. In this case prepared objects are not removed and
reset_backend is infinitely called.
Fix do_command to guard against the case that after execution of an
SQL command, the backend does not return either N, E or C. This
should not happen but there was a report that it actually happend in
certain cases(maybe caused by asynchronized backend data?)
See:
Subject: Re: [Pgpool-general] pgpool 2.2.4: DEALLOCATED children
From: Xavier Noguer Date: Fri, 25 Sep 2009 03:35:57 -0400
For more details.
Patches by Xavier Noguer with minor tweak by Tatsuo Ishii.
2009-09-26 09:27 t-ishii
* pool_process_query.c: Remove error checks for
pool_write(frontend), pool_flush(frontend) in
SimpleForwardToFrontend.
Check error for send_deallocate() in reset_backend. Otherwise
send_deallocate will be called infinitely. Per bug report from
Agustin Almonte Ferrada. See:
Subject: Re: [Pgpool-general] pgpool 2.2.4: DEALLOCATED children
From: Agustin Almonte Ferrada <[email protected]> To: Tatsuo Ishii
<[email protected]> Cc: [email protected] Date: Wed, 23
Sep 2009 01:55:54 -0400
2009-09-26 09:05 t-ishii
* pool_process_query.c: FIX parallel query
1. Fix JOIN Expr
Subquery was used on larg or rarg.
Subquery was used on ON-Cluase.
Full OUTER JOIN was not optimized.
2. Fail_on_error=false was passed to the 3rd arguments of
dblink.
This patch was applied to only 2.2-STABLE tree by y-mori on
2009/09/08.
2009-09-25 23:36 t-ishii
* pool_proto_modules.c: Make allow_close_transaction to static and
add comments.
Let execute CREATAE TEMP TABLE on every nodes in master/slave mode.
If not, subsequent Parse or Bind to use the table will fail. At
this point this doen't work since MASTER_SLAVE set to 0 in
ProcessFrontendResponse. More analysis is needed...
2009-09-25 16:35 t-ishii
* main.c (tags: V2_2_5), main.c: Fix write_pid_file. It forgot to
write out NULL termination of pid. Pgpool occasionally won't stop