forked from machack666/pgpool-II
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChangeLog
More file actions
7787 lines (5502 loc) · 272 KB
/
ChangeLog
File metadata and controls
7787 lines (5502 loc) · 272 KB
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
2011-05-03 18:18 kitagawa
* NEWS, doc/pgpool-ja.html: Prepare 3.1-alpha2.
2011-05-02 22:31 t-ishii
* child.c, main.c, pool.h, pcp/libpcp_ext.h: Enhance online
recovery in streaming replication mode. Now restarting pgpool-II
children is avoided when recovery finished. So existing sessions
can be continued while doing online recovery. For this
VALID_BACKEND macro is modified. pgpool-II main looks into status in
shared memory are as it were. pgpool-II child now looks into local
cache space. Pgpool-II child recognizes same number of backends
before failback util existing session ends. Then the process exits
with status 1, so that new process starts, which will recognizes
failback node. For this purpose "need_to_restart" flag added to
ProcessInfo structure.
2011-05-02 21:45 kitagawa
* main.c: Fix failover() so that it does not cause "kind does not
match" error. Add ifdef not to check pgpool_walrecrunning().
Adjust error messages.
2011-05-01 18:40 t-ishii
* doc/: pgpool-en.html, pgpool-ja.html: Enhance online recovery
documents in streaming replication.
2011-04-26 20:33 harukat
* doc/: pgpool-en.html, pgpool-ja.html:
- add <a name="..."> tags into all parameter in the pgpool-ii user
manual.
2011-04-26 09:44 kitagawa
* pcp/: Makefile.am, Makefile.in: Add pool_process_reporting.h to
be installed.
2011-04-26 07:58 t-ishii
* recovery.c: Fix bug with start_recoery(). It calls
connect_backend() and then calls PQfinish(NULL) if connect_backend()
returns NULL, which is apparently wrong usage of PQfinish().
Actually PQfinish() has been called in connect_backend() in this
case. Also fix typo and enhance error message.
2011-04-25 22:56 t-ishii
* pcp/: Makefile.am, Makefile.in: Add libpcp_ext.h to be installed.
2011-04-25 20:43 kitagawa
* ChangeLog: Prepare 3.1-alpha2.
2011-04-25 20:33 kitagawa
* pool_process_reporting.h, pcp/pcp_pool_status.c: Forgot to add
pool_process_reporting.h, pcp/pcp_pool_status.c.
2011-04-25 15:29 kitagawa
* NEWS, doc/pgpool-ja.html: Prepare 3.1-alpha2.
2011-04-23 16:49 t-ishii
* pool_type.h, pcp/libpcp_ext.h, pcp/pcp.h: Refactor pcp related
header files. Add libpcp_ext.h which is inteded to be included by
libpcp applications including PostgreSQL C functions.
2011-04-23 14:10 t-ishii
* pcp/pcp.c: Fix bug with pcp_connect() which causes double free.
Fix contributed by Jehan-Guillaume (ioguix) de Rorthais.
2011-04-22 20:40 kitagawa
* pool_select_walker.c: Increase relcache size from 32 to 128. This
has the effect of reducing "unnamed prepared statement does not
exist" error.
Bug report from Joseph Jacob. See: Subject: Fwd: Test java program
Date: Fri, 15 Apr 2011 12:16:04 -0700
2011-04-22 16:33 t-ishii
* pcp_child.c, pool_process_reporting.c, pool_proto_modules.h,
pool_type.h, pcp/Makefile.am, pcp/Makefile.in, pcp/pcp.c,
pcp/pcp.h: Add pcp_pool_status, pcp_node_info. Patch contributed
by Jehan-Guillaume.
2011-04-22 11:50 kitagawa
* COPYING, configure, configure.in, version.h: Prepare 3.1-alpha2.
2011-04-22 11:35 kitagawa
* main.c: Fix find_primary_node() so that it judges primary node
correctly.
Remove pgpool_walrecrunning() from find_primary_node() and add
find_primary_node_repeatedly() that waits until finding primary
node.
The reason for removing pgpool_walrecrunning() is that
"pg_is_in_recovery() AND pgpool_walrecrunning()" cannot judge
primary node and standby node correctly.
2011-04-22 10:09 kitagawa
* doc/: pgpool-en.html, pgpool-ja.html: Add description about
follow_master_command
2011-04-21 19:12 kitagawa
* main.c: Change follow_master_command so that it doesn't detach
standby nodes, if it's empty.
2011-04-21 14:00 kitagawa
* pgpool.conf.sample, pgpool.conf.sample-master-slave,
pgpool.conf.sample-replication, pgpool.conf.sample-stream: Remove
unnecessary semicolon.
2011-04-21 11:44 kitagawa
* doc/pgpool-ja.html: Add description of pcp_promote_node command.
2011-04-21 10:02 kitagawa
* main.c, pcp_child.c, pool.h, doc/pgpool-en.html, pcp/Makefile.am,
pcp/Makefile.in, pcp/pcp.c, pcp/pcp.h, pcp/pcp_promote_node.c:
Add pcp_promote_node command. Patch contributed by Gilles Darold.
2011-04-12 07:55 t-ishii
* doc/: pgpool-en.html, pgpool-ja.html: Add description about
parameters for recovery_1st_stage_command and
recovery_2nd_stage_command. It's shame that the description had been
missing from day 0.
2011-04-03 08:41 t-ishii
* main.c: Remove unsed global variable "weight_master.
2011-04-01 19:57 kitagawa
* pool_proto_modules.c: Fix hangup with CloseComplete(C) message
handling.
2011-03-31 17:12 kitagawa
* pool_process_query.c: Refactor pool_process_query().
- Fix hangup when received Flush(H) message.
See following for more details:
Subject: [Pgpool-general] Issue with pgpool-II-3.0.3-beta1
prepared statements execution
Date: Tue, 22 Feb 2011 13:55:25 +0300
- Fix possible hangup that happen for the receiving timing of
ReadyForQuery(Z) message.
How to reproduce:
frontend -> pgpool-II -> pgpool-II -> backend
Both pgpool-II are in connection pooling mode.
2011-03-30 11:13 kitagawa
* main.c, pgpool.conf.sample, pgpool.conf.sample-master-slave,
pgpool.conf.sample-replication, pgpool.conf.sample-stream,
pool_config.c, pool_config.h, pool_config.l,
pool_process_reporting.c: Add follow_master_command directive.
We need to fix find_primary_node() that is still pending. Patch
contributed by Gilles Darold.
2011-03-17 11:12 kitagawa
* pool_params.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix warning
of parser_set_param().
2011-03-16 18:11 kitagawa
* Makefile.am, Makefile.in, test/parser/expected/scanner.out,
test/parser/expected/v90.out, test/parser/input/scanner.sql,
test/parser/input/v90.sql (utags: V3_1_0_WITHOUT_FOLLOW_COMMAND):
Forgot to add files.
2011-03-16 14:55 kitagawa
* pool_query_context.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix
hangup when using /*NO LOAD BALANCE*/ comment. The condition is
load_balance_mode=true and PRIMARY_NODE_ID!=0 and /*NO LOAD
BALANCE*/.
2011-03-07 16:00 kitagawa
* pcp_child.c, pool_proto_modules.c, recovery.c (utags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Change REAL_MASTER_NODE_ID to
consider PRIMARY_NODE_ID.
2011-03-07 15:48 kitagawa
* pool_proto_modules.c: Fix bug with load balancing such as
following when PRIMARY_NODE_ID is not same as REAL_MASTER_NODE_ID.
testdb=> BEGIN; BEGIN testdb=> SELECT * FROM t1; ERROR: relation
"t1" does not exist LINE 1: SELECT * FROM t1;
^ testdb=> SELECT * FROM t2;
id ---- (0 rows)
testdb=> COMMIT; ROLLBACK
2011-03-07 15:35 kitagawa
* pool_process_query.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix
insert_lock() so that it extracts sequence name directly.
2011-03-07 14:56 kitagawa
* pool_process_query.c, pool_proto_modules.c, pool_query_context.c,
pool_query_context.h (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
pool_session_context.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
pool_session_context.h (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
pool_timestamp.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
pool_timestamp.h (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Change
session information to integrate Portal and PreparedStatement
structure into POOL_SENT_MESSAGE structure.
Portal and PreparedStatement structure were used by only extended
query protocol before. but POOL_SENT_MESSAGE is used by simple query
protocol too.
This change fixes issues that happen when two protocols were mixed
in one session.
PHP example)
// PREPARE using simple query protocol pg_query($dbconn, 'PREPARE
my_query(TEXT) AS SELECT $1::TEXT');
// EXECUTE using exetended query protocol pg_execute($dbconn,
"my_query", array('test'));
2011-02-28 09:50 t-ishii
* sql/pgpool-regclass/pgpool-regclass.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix pgpool-regclass() to be
compiled in PostgreSQL 8.0 or later. 7.4 still produces errors but
I doubt fixing effort is worth the trouble.
2011-02-23 16:21 t-ishii
* TODO (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Update TODO.
2011-02-23 15:47 t-ishii
* pool_worker_child.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Do not
keep persistent connection to backends. The connection may become
bogus if a node down and then wake up between replication delay
checking period. Restarting worker process is not feasible since
there is a time lang between backend down and restarting worker
process.
2011-02-23 15:45 t-ishii
* pool_process_query.c: Add error message to
send_simplequery_message(). Enhance do_query() so that it emmits an
error message when receiving ERROR from backend.
2011-02-23 12:49 t-ishii
* child.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix typo in
comment.
2011-02-22 13:14 t-ishii
* child.c, pool.h (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Adapt
application_name introduced in PostgreSQL 9.0. When reusing
connection, send application_name in the startup packet to backend
and send parameter status to frontend.
2011-02-21 11:16 t-ishii
* sql/pgpool-walrecrunning/README (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): README file for
pgpool-walrecrunning.
2011-02-20 16:06 t-ishii
* child.c: Fix discard_persistent_db_connection() so that it sends
a terminate packet to backend befoe closing the connection to the
backend. Without this, backend complains "unexpected EOF on client
connection".
2011-02-19 21:43 t-ishii
* main.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Enhance
find_primary_node() not to fail if pgpool_walrecrunning() is not
installed. In this case it returns -1, which means pgpool-II assumes
the youngest node to be the primary.
2011-02-18 22:48 kitagawa
* pool_proto_modules.c: Fix bug with load_balance that JDBC driver
sends BEGIN to master node many times.
2011-02-18 22:39 kitagawa
* pool_query_context.c: Fix bug that /*NO LOAD BALANCE*/ doesn't
work in stream mode. Reported by Hadadi Peter. Fix bug with load
balance in stream mode.
2011-02-18 20:51 kitagawa
* pool_process_query.c, pool_proto_modules.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Remove unnecessary function:
load_balance_enabled().
2011-02-18 13:29 t-ishii
* doc/pgpool-en.html (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix
typo.
2011-02-18 12:27 kitagawa
* Makefile.in, sql/pgpool-walrecrunning/pgpool-walrecrunning.c
(tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix typo.
2011-02-16 15:05 t-ishii
* Makefile.am: Add sql/Makefile as a dist file.
2011-02-16 14:51 t-ishii
* sql/Makefile (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Add sql
directories main Makefile.
2011-02-16 14:31 t-ishii
* Makefile.am: Adjust sql sub directory name change.
pgpool-walrecvrunning -> pgpool-walrecrunning
2011-02-13 21:04 t-ishii
* TODO: Update TODO
2011-02-13 20:44 t-ishii
* ChangeLog (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Run cvs2cl.pl -t
--fsf.
2011-02-10 11:14 t-ishii
* main.c: Fix pool_get_node_info() so that it deals with
node_number == -1 case. This could happen get_next_master_node()
returns -1 because there's no master node available (all nodes down
case). Also tweak trigger_failover_command() to deal with
pool_get_node_info() returns NULL case. Per report from Wouter
D'Haeseleer. Subject: [Pgpool-general] PGpool crashes when all DB
servers go down To: "pgpool-general@pgfoundry.org"
<pgpool-general@pgfoundry.org> Date: Mon, 07 Feb 2011 09:35:50 +0100
2011-02-10 11:08 t-ishii
* pool_query_context.c: Update copyright years.
2011-02-01 17:18 kitagawa
* pool_query_context.c: Fix bug that failover fails in raw mode.
This used to work but was broken in 3.0.
2011-01-31 23:47 t-ishii
* pool_process_reporting.c, pool_relcache.c (utags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix warning of printf() and
time_t.
2011-01-31 01:16 gleu
* pgpool.conf.sample, pgpool.conf.sample-master-slave,
pgpool.conf.sample-replication, pgpool.conf.sample-stream (utags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Reorganize pgpool.conf sample
files so that they are easier to read.
2011-01-31 01:09 gleu
* Makefile.in: Add understandable "make" and "make install" end
messages.
2011-01-30 09:23 t-ishii
* doc/: pgpool-en.html, pgpool-ja.html (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Add mention about
pgpool-walrecrunning.
2011-01-30 09:17 t-ishii
* sql/: pgpool-walrecrunning/Makefile (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND),
pgpool-walrecrunning/pgpool-walrecrunning.c,
pgpool-walrecrunning/pgpool-walrecrunning.sql.in (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), pgpool-walrecvrunning/Makefile,
pgpool-walrecvrunning/pgpool-walrecrunning.c,
pgpool-walrecvrunning/pgpool-walrecrunning.sql.in: Rename
pgpool-walrecvrunning, which was mistakenly named to
pgpool-walrecrunning.
2011-01-27 16:55 t-ishii
* child.c, main.c, pool_config.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), pool_config.l (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), pool_connection_pool.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), pool_process_reporting.c,
recovery.c, doc/pgpool-en.html: Deprecate backend_socket_dir.
Instead, if backend_hostname starts with '/' it is regarded the as
path to Unix domain. If backend_hostname is left empty, then
default Unix domain path(/tmp) is used. This follows the convention
of libpq interface. Patch contributed by Jehan-Guillaume de
Rorthais. Additional fixes to main.c and recovery.c by me.
2011-01-26 10:11 t-ishii
* sql/pgpool-regclass/pgpool-regclass.c: Fix pgpool-regclass(). It
appeared that using PG_TRY/CATCH is not safe, sometimes backend dies
with PANIC: ERRORDATA_STACK_SIZE exceeded. The only solution is
stealing some functions from PostgreSQL and modify it not to throw
errors. This is not elegant at all but PostgreSQL developers do not
allow to add such that built-in functions. Sigh.
2011-01-25 18:25 kitagawa
* pool_proto_modules.c: Fix bug that DROP DATABASE fails. This
used to work but was broken in 3.0.
2011-01-24 13:44 t-ishii
* ChangeLog: Update ChangeLog by using cvs2cl.pl -t --fsf.
2011-01-24 13:36 t-ishii
* doc/pgpool-en.html: Update English documentation.
- add description of new configuration directive 'log_destination'
- add description of new configuration directive 'syslog_facility'
- add description of new configuration directive 'syslog_ident'
- add some lines and sample to 'white_function_list' regex usage
- add some lines and sample to 'black_function_list' regex usage
- add information and fix output sample for the 'id' column on
'pool_nodes' command
Patch provided by Gilles Darold.
Also I added description for black_function_list that having lastval
and currval to black_function_list is a good idea.
2011-01-20 15:28 kitagawa
* pool_process_query.c, pool_proto_modules.c, pool_proto_modules.h:
Remove unnecessary variables: receive_extended_begin.
2011-01-19 11:52 t-ishii
* pool_select_walker.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix
bug with function_call_walker(). It always regarded the first
element is the function name, which is not true if the function has
schema qualification. In this case we should use lsecond() rather
than lfirst() to extract the function name because the first element
is the schema name.
2011-01-16 19:31 t-ishii
* pgpool.conf.sample, pgpool.conf.sample-master-slave,
pgpool.conf.sample-replication, pgpool.conf.sample-stream,
pool_config.c, pool_config.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), pool_config.l,
pool_process_reporting.c, pool_relcache.c, pool_relcache.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), doc/pgpool-en.html,
doc/pgpool-ja.html: Implement relcache expiration control
directive "relcache_expire".
2011-01-14 15:58 kitagawa
* pool_process_reporting.c: Remove parameters from pool_status:
recovery_password, system_db_password.
2011-01-14 15:42 kitagawa
* pool_config.c, pool_config.h, pool_config.l,
pool_process_reporting.c, test/timestamp/main.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Remove unnecessary variables:
replication_enabled, master_slave_enabled.
2011-01-13 15:08 t-ishii
* pg_md5.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix
update_pool_passwd()'s lack of dirname() usage portability.
2011-01-11 09:43 t-ishii
* main.c: Emit log if particular backend is down status while
reading the status file. This will make users less confusing.
2011-01-06 18:35 kitagawa
* child.c, pool_connection_pool.c: Fix the bug which makes a child
process crash while doing failover. This bug has been there since
pgpool-II 3.0.
2011-01-06 18:31 gleu
* doc/pgpool-en.html: Documentation rewrite by Marc Cousin.
Reviewed by me.
2011-01-04 13:38 kitagawa
* pool_process_reporting.c: Fix pool_status so that
failback_command and fail_over_on_backend_error show correct values.
2010-12-30 22:06 t-ishii
* main.c: Fix bug with debug_level directive. Patch contributed by
Gilles Darold. Followings are his explanation.
I found a bug when playing with pgpool yesterday. The problem is
that enabling debug_level to 1 into pgpool.conf doesn't has any
effect as it is overriden in the main.c file after getting
configuration so that it is only enabled when the -d command line
option is present.
2010-12-30 09:47 t-ishii
* main.c, pgpool.conf.sample, pgpool.conf.sample-master-slave,
pgpool.conf.sample-replication, pgpool.conf.sample-stream,
pool.h, pool_auth.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
pool_config.c, pool_config.h, pool_config.l, pool_error.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), pool_process_reporting.c,
pool_shmem.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Add syslog
support. Patch contributed by Gilles Darold. Review and editing by
Guillaume Lelarge.
2010-12-26 09:58 t-ishii
* pool_config.c, pool_config.h, pool_config.l,
pool_select_walker.c: Allow to use regular expressions in black
and white function list. Patch created by Gilles Darold. Here is
the description he wrote.
Regex patch :
The regex struct array is stored in pool_config struct, it is
dynamically expendable by PATTERN_ARR_SIZE when it reached
NxPATTERN_ARR_SIZE (start with 16 regex max).
All entries in white_function_list or black_function_list are stored
in this array with a flag to differentiate them. To preserve
backward compatibility and prevent partial matching lists
entries are all prefixed with '^' and ended with '$' if not
already done. This also mean that if we want to match function
beginning with "write_" it has to be written : "write_.*". Indeed
"^write_.*$" works too.
Patch reviewd by Guillaume Lela.
2010-12-23 09:57 t-ishii
* parser/: pg_wchar.h, scanner.h, scansup.c, wchar.c (utags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Import PostgreSQL 9.0 parser.
This allows to use CREATE INDEX with implicit index name, which is
new in 9.0.
Allow to use set standard_conforming_string command. It affetcs the
scanner in PostgreSQL 9.0 or later.
Change outfuncs.c to adopt to the effect of server encoding. This
happens in PostgreSQL 9.0 parser.
Patch provided by Akio Ishida.
2010-12-16 17:42 t-ishii
* pool_auth.c: Fix do_md5(). If raw mode or number of backend is 1,
pgpool child segfaults. patch contributed by Rob Shepherd, slight
editing by Tatsuo Ishii.
Fix read_password_packet(). Guard against invalid password lenghth.
Fix send_password_packet(). password string in a password packet
must be a "string" message type, which must has a null termination.
Otherwise you will see "invalid passoword packet size" error message
in backend.
2010-12-14 18:21 t-ishii
* Makefile.am, Makefile.in, pool_params.c, pool_process_query.c,
pool_rewrite_outfuncs.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
pool_timestamp.c, parser/Makefile.am (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/Makefile.in (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/copyfuncs.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/gram.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/gram.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/gram.y (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/gramparse.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/keywords.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/keywords.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/kwlist.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/kwlookup.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/list.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/makefuncs.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/nodes.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/outfuncs.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/parsenodes.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/parser.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/parser.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/pool_parser.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/primnodes.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/scan.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/scan.l (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), parser/scansup.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), test/parser/Makefile (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), test/parser/main.c (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), test/parser/parse_schedule (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), test/parser/run-test (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), test/parser/expected/copy.out
(tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
test/parser/expected/create.out (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), test/parser/expected/delete.out
(tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
test/parser/expected/misc.out (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), test/parser/expected/update.out
(tags: V3_1_0_WITHOUT_FOLLOW_COMMAND), test/parser/input/copy.sql
(tags: V3_1_0_WITHOUT_FOLLOW_COMMAND),
test/parser/input/create.sql (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Import PostgreSQL 9.0 parser.
This allows to use CREATE INDEX with implicit index name, which is
new in 9.0.
Allow to use set standard_conforming_string command. It affetcs the
scanner in PostgreSQL 9.0 or later.
Change outfuncs.c to adopt to the effect of server encoding. This
happens in PostgreSQL 9.0 parser.
Patch provided by Akio Ishida.
2010-12-14 16:21 t-ishii
* parser/outfuncs.c: Fix long standing bug with timestamp rewriting
against array and complex types. Failed examples are:
INSERT INTO r1(col[1], col2.foo) VALUES (1, 2); --
insert_column_item UPDATE r1 SET col1[1] = 1, col2.foo = 1; --
set_target PREPARE "p" (int4[]) AS SELECT $1[1]; -- c_expr SELECT
(ARRAY[1,2,3])[1]; SELECT (ARRAY[ARRAY[1]])[1][1]; SELECT
('{1,2,3}'::int[])[1]; SELECT ('{1,2,3}'::int[3])[1]; SELECT
r1.col[1], (r1.col1).bar, (r1.col1).* FROM r1; -- columnref SELECT
(r1.col1).baz[1], (r1.col1).baz[1][2] FROM r1;
Patch provided by Akio Ishida.
2010-12-14 09:53 t-ishii
* pool_auth.c: Fix comment in send_password_packet().
2010-11-28 23:57 gleu
* pool_process_reporting.c: Add node_id column in pool_nodes
"view".
Patch from Jean-Paul Argudo.
2010-11-28 20:00 t-ishii
* pool_passwd.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix
pool_get_passwd() in the case when user name is 32 bytes long.
2010-11-17 15:57 t-ishii
* pool_process_query.c: Fix insert_lock(). Comment for this
function was not correct. It did not issue BEGIN.
per_node_statement was not called for nodes other than master.
2010-11-14 19:59 t-ishii
* pool_process_query.c: Fix insert_lock() to obtain proper sequence
name by considering that get_insert_command_table_name() returns
double-qutation-added table name. Without this, pgpool tries to
execute SELECT * FROM "foo"_bar_seq FOR UPDATED, which interepreted
as SELECT * FROM "foo" AS _bar_seq FOR UPDATED.
2010-11-14 16:33 t-ishii
* pool_hba.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND): Fix load_hba()
not to exit(1) if error occurs. If exit(1) is issued, pgpool main
exits but children remain, which is not good.
2010-11-12 17:09 t-ishii
* pool.h: Fix load_hba() not to exit(1) if error occurs. If
exit(1) is issued, pgpool main exits but children remain, which is
not good.
2010-11-12 14:47 t-ishii
* main.c: Fix find_primary_node to avoid segfault when
pool_walrecrunning() is not installed.
2010-11-12 10:37 t-ishii
* Makefile.am, Makefile.in: Fix typo.
2010-11-12 10:31 t-ishii
* Makefile.in: Update Makefile.am.
2010-11-12 10:24 t-ishii
* Makefile.am: Add missing entries for sql/walrecvrunning
2010-11-10 11:17 t-ishii
* parser/: gram.c, gram.h: Update grammer files generated by bison.
2010-11-10 11:00 t-ishii
* parser/Makefile.in: Oops. Forgot to commit.
2010-11-10 10:53 t-ishii
* Makefile.am, Makefile.in, aclocal.m4 (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), config.h.in (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), configure (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), configure.in (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), ltmain.sh (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND), pcp/Makefile.in (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND): Rerun libtoolize to adopt newer
developping environment.
2010-11-04 18:54 kitagawa
* pool.h: Fix bug in raw mode.
The following change has not worked since pgpool-II 3.0.
Subject: [Pgpool-committers] pgpool... Date: Sun, 16 May 2010
08:38:16 +0000 (UTC)
- In row mode and if there's only one DB node, if a problem occurs
with the DB node, it will be brought to down status. However if
the DB node goes into good condition again, you can use the DB
node without restarting pgpool.
2010-10-30 20:12 t-ishii
* main.c, pgpool.conf.sample, pgpool.conf.sample-master-slave,
pgpool.conf.sample-replication, pgpool.conf.sample-stream,
doc/pgpool-en.html, doc/pgpool-ja.html (utags: V3_1_0_ALPHA1):
Allow to use %P(old primary node id) to failover/failback script.
This is neccessary for failover script in streaming replication
mode.
2010-10-30 12:23 t-ishii
* doc/pgpool-en.html, doc/pgpool-ja.html, sample/pgpool_recovery
(tags: V3_1_0_WITHOUT_FOLLOW_COMMAND, V3_0_3, V3_0_3_BETA1,
V3_0_2, V3_1_0_ALPHA1): Add -c (checksum) option to ensure
reliable file transmittion.
2010-10-23 08:53 t-ishii
* main.c: Fix in-portability of the way to use dirname(3) in
locating pool_passwd. Bug report from a FreeBSD user.
2010-10-20 10:08 t-ishii
* child.c (tags: V3_1_0_ALPHA1), main.c, pool.h (tags:
V3_1_0_ALPHA1), pool_query_context.c (tags: V3_1_0_ALPHA1),
pool_worker_child.c (tags: V3_0_3_BETA1, V3_0_2, V3_1_0_ALPHA1),
sql/pgpool-walrecvrunning/Makefile (tags: V3_0_2, V3_1_0_ALPHA1),
sql/pgpool-walrecvrunning/pgpool-walrecrunning.c (tags: V3_0_2,
V3_1_0_ALPHA1),
sql/pgpool-walrecvrunning/pgpool-walrecrunning.sql.in (tags:
V3_0_2, V3_1_0_ALPHA1): Fix bug when primary node is not the
youngest. Before pgpool-II unconditionally assumed the master
node(the youngest live node) is a primary server, which is apprently
wrong assumption. To fix the problem, now pgpool-II have info on
shmem(Req_info) to know which is the primary. The info is set when
1)pgpool-II started 2)failover occurs. The work is done by new
function find_primary_node(main.c). It does SELECT
pg_is_in_recovery() AND pgpool_walrecrunning() to know the node in
question is actually standby. pgpool_walrecrunning() is new
PostgreSQL C function, to check if walreceiver is in running status.
This is neccessary when failover occurs. Unfortunately
pg_is_in_recovery() returns true even if standby is promoting
because it found a trigger file. Installing pgpool_walrecrunning()
is annoying but no way. Also where_to_send() is modified to use
PRIMARY_NODE_ID, rather than MASTER_NODE_ID. CVS:
----------------------------------------------------------------------main.c pool.h pool_query_context.c pool_worker_child.c CVS: Added
Files: CVS: sql/pgpool-walrecvrunning/Makefile CVS:
sql/pgpool-walrecvrunning/pgpool-walrecrunning.c CVS:
sql/pgpool-walrecvrunning/pgpool-walrecrunning.sql.in CVS:
----------------------------------------------------------------------
2010-10-20 09:34 t-ishii
* pool_proto_modules.c (tags: V3_1_0_ALPHA1): Fix bug with
find_victim_node. If the number of inserted/updated/deleted tuples
at a victim node is 0, no failover event happens. See:
Subject: Re: [Pgpool-general] Replication failover problem Date:
Wed, 20 Oct 2010 09:24:30 +0900 (JST)
For mode details.
2010-10-20 08:47 t-ishii
* pool_process_reporting.c (tags: V3_1_0_ALPHA1): Add entry for
failover_if_affected_tuples_mismatch. I seem to forgot to add this
for 3.0 release. Sigh. Also expand column name from 34 to 64, since
failover_if_affected_tuples_mismatch. is longer than 32.
2010-10-19 23:36 kitagawa
* ChangeLog (tags: V3_1_0_ALPHA1, V3_0_1): Prepare 3.0.1
2010-10-19 23:32 kitagawa
* NEWS (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND, V3_1_0_ALPHA1),
configure (tags: V3_1_0_ALPHA1), configure.in (tags:
V3_1_0_ALPHA1), doc/pgpool-ja.html (utags: V3_0_1): Prepare 3.0.1
2010-10-19 20:22 t-ishii
* ChangeLog: Update ChangeLog.
2010-10-19 20:17 t-ishii
* doc/pgpool-en.html (tags: V3_0_1): Fix typo.
2010-10-19 17:57 kitagawa
* pool_proto_modules.c, pool_session_context.c (tags:
V3_1_0_ALPHA1) (utags: V3_0_1): Fix hungup when a query sent to
one node caused an error.
2010-10-15 12:10 kitagawa
* pool_proto2.c (tags: V3_1_0_WITHOUT_FOLLOW_COMMAND, V3_0_3,
V3_0_3_BETA1, V3_0_2, V3_1_0_ALPHA1, V3_0_1): Fix ErrorResponse
so that it checks existence of a session context.
2010-10-14 19:42 t-ishii
* doc/pgpool-en.html: Fix typo. Patch contributed by Asaf Ohaion.
2010-10-14 15:39 t-ishii
* doc/pgpool-en.html: Fix typo in English doc. Patch contributed by
Asaf Ohaion.
2010-10-12 20:39 kitagawa
* pool_proto_modules.c, pool_session_context.c,
pool_session_context.h (tags: V3_1_0_ALPHA1, V3_0_1): Fix portal
handling in extended query protocol. Now, prepared statements and
portals are closed separately. This issue is possible to reappear
by a program using setFetchSize(1) of JDBC.
2010-10-12 20:05 kitagawa
* pg_md5.c (tags: V3_1_0_ALPHA1, V3_0_1): Cancel previous commit.
2010-10-01 15:15 kitagawa
* pg_md5.c: Add a new option for md5 authentication: -U,
--username=NAME. Fix help message.
2010-09-28 17:00 t-ishii
* pool_auth.c (tags: V3_1_0_ALPHA1, V3_0_1): Fix bug with md5 auth.
If there's more than 1 servers to be authenticated, it sefaults.
2010-09-27 11:01 kitagawa
* pool_proto_modules.c, pool_proto_modules.h (tags: V3_1_0_ALPHA1,
V3_0_1): Fix the bug that causes segfault of a child process when
syntax error occurred in extended query protocol.
2010-09-10 09:39 kitagawa
* configure, configure.in, Makefile.am (tags: V3_0_2,
V3_1_0_ALPHA1, V3_0_1), Makefile.in (tags: V3_0_2, V3_1_0_ALPHA1,
V3_0_1), NEWS, ChangeLog (utags: V3_0_0): Prepare 3.0
2010-09-09 13:15 kitagawa
* doc/: where_to_send_queries.odg, where_to_send_queries.pdf
(utags: V3_0_0, V3_0_1, V3_0_2, V3_0_3, V3_0_3_BETA1,
V3_1_0_ALPHA1, V3_1_0_WITHOUT_FOLLOW_COMMAND): Update flow
charts.
2010-09-09 11:41 t-ishii
* doc/: pgpool-en.html, pgpool-ja.html (utags: V3_0_0): Fix typo
and enhance documents. Update release date.
2010-09-08 17:43 kitagawa
* NEWS, configure, configure.in, doc/pgpool-ja.html, ChangeLog
(utags: V3_0_0_RC1): Prepare 3.0-RC1
2010-09-07 17:42 kitagawa
* doc/pgpool-ja.html: Fix typo.
2010-09-06 17:33 kitagawa
* pool_timestamp.c (tags: V3_1_0_ALPHA1, V3_0_1, V3_0_0,
V3_0_0_RC1): Fix the bug with previous fix.
2010-09-06 14:03 t-ishii
* pool_process_query.c (tags: V3_1_0_ALPHA1, V3_0_1, V3_0_0,
V3_0_0_RC1), pool_select_walker.c (tags: V3_1_0_ALPHA1, V3_0_1,
V3_0_0, V3_0_0_RC1), pool_select_walker.h (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND, V3_0_3, V3_0_3_BETA1, V3_0_2,
V3_1_0_ALPHA1, V3_0_1, V3_0_0, V3_0_0_RC1), pool_timestamp.c,
doc/pgpool-en.html (tags: V3_0_0_RC1), doc/pgpool-ja.html: Use
custom function pgpool_regclass() instead of regclass to convert
table name to oid. Problem with regclass is, it throws an error if
the table does not exist. pgpool_regclass is just a wrapper of
regclass by using PG_TRY()/PG_CATCH(). If user does not install
pgpool_regclass(), pgpool-II falls back to pre 3.0 behavior, i.e.
ignores schema qualification.
2010-09-06 11:39 t-ishii
* sql/pgpool-regclass/: Makefile (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND, V3_0_3, V3_0_3_BETA1, V3_0_2),
pgpool-regclass.c, pgpool-regclass.sql.in (tags:
V3_1_0_WITHOUT_FOLLOW_COMMAND, V3_0_3, V3_0_3_BETA1, V3_0_2)
(utags: V3_0_0, V3_0_0_RC1, V3_0_1, V3_1_0_ALPHA1): Add
pgpool_regclass function. This is an alternative for regclassin.
Problem is, regclassin throws an error if invalid table name is
specified and pgpool's internal query fails. Someday we might have
such a builtin function but until that day we use pgpool_regclass
instead...
2010-09-03 16:02 kitagawa
* Makefile.am (tags: V3_0_0_RC1): Remove load_balance.odp,
load_balance.png. Add where_to_send_queries.odg,
where_to_send_queries.pdf.
2010-09-03 15:58 kitagawa
* doc/: where_to_send_queries.odg, where_to_send_queries.pdf
(utags: V3_0_0_RC1): A destination node decision logic
explanation figure
2010-09-03 15:58 kitagawa
* doc/: load_balance.odp, load_balance.png: Remove
2010-09-03 15:58 kitagawa
* doc/pgpool-en.html: Update the table of replicate_select. Update
the link file name of a flow chart.
2010-09-03 15:58 kitagawa
* doc/pgpool-ja.html: Update the table of replicate_select. Update
the link file name of a flow chart. Update release note.
2010-09-03 15:58 kitagawa
* Makefile.in (tags: V3_0_0_RC1): Remove load_balance.odp,
load_balance.png. Add where_to_send_queries.odg,
where_to_send_queries.pdf.
2010-09-01 18:02 kitagawa
* ChangeLog (tags: V3_0_0_BETA3): Prepare 3.0-beta3
2010-09-01 17:58 kitagawa
* NEWS, doc/pgpool-ja.html (utags: V3_0_0_BETA3): Prepare 3.0-beta3
2010-09-01 15:50 kitagawa
* configure, configure.in (utags: V3_0_0_BETA3): Prepare 3.0-beta3
2010-09-01 15:10 kitagawa
* pool_query_context.c (tags: V3_0_1, V3_0_0, V3_0_0_RC1,
V3_0_0_BETA3): Fix where_to_send so that DEALLOCATE works
properly in replication mode or parallel mode.