pgpool1.git
18 years agoAdd replicate_select value to the result of "SHOW pool_status" command.
Yoshiyuki Asaba [Thu, 26 Jul 2007 06:05:05 +0000 (06:05 +0000)]
Add replicate_select value to the result of "SHOW pool_status" command.

18 years agoV3.4 release note
Yoshiyuki Asaba [Thu, 26 Jul 2007 05:45:25 +0000 (05:45 +0000)]
V3.4 release note

18 years agoFix memory leak when connection slot is full.
Yoshiyuki Asaba [Thu, 26 Jul 2007 03:01:42 +0000 (03:01 +0000)]
Fix memory leak when connection slot is full.

18 years agoRun autoconf
Tatsuo Ishii [Thu, 26 Jul 2007 02:09:42 +0000 (02:09 +0000)]
Run autoconf

18 years agoFix typo.
Tatsuo Ishii [Thu, 26 Jul 2007 02:07:05 +0000 (02:07 +0000)]
Fix typo.

18 years agoFix hang up when a SELECT query has error inside transaction block. It
Yoshiyuki Asaba [Wed, 25 Jul 2007 07:01:05 +0000 (07:01 +0000)]
Fix hang up when a SELECT query has error inside transaction block. It
occurs only in simple query protocol. We reproduce the bug with the
following operation.

  BEGIN;
  SELECT * FROM non_exist_table; <-- ERROR
  SELECT 1;

18 years agoFix hang up and SEGV if Parse message contains a warning statement.
Yoshiyuki Asaba [Wed, 25 Jul 2007 06:42:40 +0000 (06:42 +0000)]
Fix hang up and SEGV if Parse message contains a warning statement.

  SELECT '\'';
  WARNING:  nonstandard use of \' in a string literal

If pgpool receives a warning message that is NoticeMessage('N') under
the extended query protocol, it reads a next message.

18 years agoDetect deadlock in do_command().
Yoshiyuki Asaba [Tue, 24 Jul 2007 08:04:41 +0000 (08:04 +0000)]
Detect deadlock in do_command().
When insert_lock was true, kind mismatch error occured.

18 years agoPrepare for 3.4
Yoshiyuki Asaba [Thu, 19 Jul 2007 05:30:25 +0000 (05:30 +0000)]
Prepare for 3.4

18 years agoAdd new parameter named "replication_select".
Yoshiyuki Asaba [Thu, 19 Jul 2007 05:29:57 +0000 (05:29 +0000)]
Add new parameter named "replication_select".

18 years ago- Update to 3.4
Devrim GÜNDÜZ [Wed, 18 Jul 2007 11:36:38 +0000 (11:36 +0000)]
- Update to 3.4
- Removed patches, they are now in upstream

18 years agoAdd new parameter named "replicate_select". Default value is 'false'.
Yoshiyuki Asaba [Wed, 18 Jul 2007 04:48:04 +0000 (04:48 +0000)]
Add new parameter named "replicate_select". Default value is 'false'.

If it is true, pgpool replicates SELECT queries when load balancing is
disabled. This is a old specification which was under V3.2.

If it is false, pgpool only sends them to the master node. This is a
current(V3.3) specification.

18 years agoFix the following bugs in master_slave mode && load_balance mode.
Yoshiyuki Asaba [Thu, 12 Jul 2007 03:48:22 +0000 (03:48 +0000)]
Fix the following bugs in master_slave mode && load_balance mode.
We force to replicate PREPARE and DEALLOCATE statement because of the case.

  PREPARE xx AS SELECT 1;
  EXECUTE xx;

If EXECUTE statement was load balanced, it occured the error.

  ERROR:  prepared statement "xx" does not exist

18 years agoflush output buffer when deadlock error occured in Execute().
Yoshiyuki Asaba [Wed, 11 Jul 2007 02:11:53 +0000 (02:11 +0000)]
flush output buffer when deadlock error occured in Execute().

18 years agoPrevious commit does not fix deadlock error in Execute().
Yoshiyuki Asaba [Wed, 11 Jul 2007 02:08:01 +0000 (02:08 +0000)]
Previous commit does not fix deadlock error in Execute().

18 years agoFixed kind mismatch error when deadlock error occured.
Yoshiyuki Asaba [Wed, 11 Jul 2007 01:40:17 +0000 (01:40 +0000)]
Fixed kind mismatch error when deadlock error occured.
The problem is the following senario.

  A: BEGIN:
  B: BEGIN;
  A: LOCK TABLE t1 IN SHARE ROW EXCLUSIVE MODE;
  B: LOCK TABLE t2 IN SHARE ROW EXCLUSIVE MODE;
  A: LOCK TABLE t2 IN SHARE ROW EXCLUSIVE MODE;
  B: LOCK TABLE t1 IN SHARE ROW EXCLUSIVE MODE;

Transaction "A" aborts on master node, but it completes on another
nodes. It causes wrong failover.

So pgpool checks deadlock error(code == '40P01') and sends error query
to another nodes.

18 years agoFix race condition between flag checking and signal blocking.
Yoshiyuki Asaba [Mon, 9 Jul 2007 05:12:21 +0000 (05:12 +0000)]
Fix race condition between flag checking and signal blocking.

Normally, this case solve to call pselect(2). But Linux's pselect(2)
is emulated by select(2) and sigprocmask(2). It contains this race.
So pgpool archieves using the self-pipe trick.

See 'man pselect' if you want to get more information.

18 years agoModify that pgpool checks signal flags *before* sleeping.
Yoshiyuki Asaba [Mon, 2 Jul 2007 04:04:26 +0000 (04:04 +0000)]
Modify that pgpool checks signal flags *before* sleeping.

18 years agoFix race condition between unsetting SIGCHLD flag and unblocking
Yoshiyuki Asaba [Fri, 29 Jun 2007 14:18:20 +0000 (14:18 +0000)]
Fix race condition between unsetting SIGCHLD flag and unblocking
SIGCHLD signal.

18 years agoFix SIGCHLD signal handling. Child processes are restarted in signal
Yoshiyuki Asaba [Wed, 20 Jun 2007 08:53:49 +0000 (08:53 +0000)]
Fix SIGCHLD signal handling. Child processes are restarted in signal
safe places.

18 years agoFix signal handling for failover. Failover operation is executed in
Yoshiyuki Asaba [Wed, 20 Jun 2007 08:23:26 +0000 (08:23 +0000)]
Fix signal handling for failover. Failover operation is executed in
signal safe places.

18 years agoFix typo EmptyQueryResponse message. pgpool hung up in EXECUTE command.
Yoshiyuki Asaba [Sat, 2 Jun 2007 00:51:54 +0000 (00:51 +0000)]
Fix typo EmptyQueryResponse message. pgpool hung up in EXECUTE command.
(Patch contributed by Kenichi Sawada)

18 years agopgpool did not failover when kind mismatch error occured using an
Yoshiyuki Asaba [Mon, 28 May 2007 01:26:12 +0000 (01:26 +0000)]
pgpool did not failover when kind mismatch error occured using an
extended query protocol. So if it occurs in Execute(), pgpool does
failover.

18 years agoAdd an error message.
Yoshiyuki Asaba [Tue, 22 May 2007 06:27:13 +0000 (06:27 +0000)]
Add an error message.

18 years agoAdd checking a message length is valid.
Yoshiyuki Asaba [Tue, 22 May 2007 06:21:30 +0000 (06:21 +0000)]
Add checking a message length is valid.
(Reported by Fujii Masao)

18 years agopgpool.pam is now installed as "share/pgpool/pgpool.pam"
User yamaguti [Mon, 21 May 2007 02:04:10 +0000 (02:04 +0000)]
pgpool.pam is now installed as "share/pgpool/pgpool.pam"

18 years agoPrepare for 3.3 V3_3
Yoshiyuki Asaba [Fri, 18 May 2007 05:40:27 +0000 (05:40 +0000)]
Prepare for 3.3

18 years agoVersion 3.3
Yoshiyuki Asaba [Fri, 18 May 2007 05:27:14 +0000 (05:27 +0000)]
Version 3.3

18 years agoadded an explanation about /*REPLICATION*/ .
User yamaguti [Fri, 18 May 2007 02:45:05 +0000 (02:45 +0000)]
added an explanation about /*REPLICATION*/ .

18 years agoResync to updated configure.in
Tatsuo Ishii [Thu, 17 May 2007 06:56:38 +0000 (06:56 +0000)]
Resync to updated configure.in

18 years agoUpdate flex generated file
Tatsuo Ishii [Thu, 17 May 2007 06:54:28 +0000 (06:54 +0000)]
Update flex generated file

18 years agoPAM service configuration sample file
User yamaguti [Thu, 17 May 2007 06:34:40 +0000 (06:34 +0000)]
PAM service configuration sample file

18 years agoadded a description about "log_hostname"
User yamaguti [Thu, 17 May 2007 05:38:04 +0000 (05:38 +0000)]
added a description about "log_hostname"

18 years agothese files will be updated soon. committing for the log purpose.
User yamaguti [Thu, 17 May 2007 04:53:27 +0000 (04:53 +0000)]
these files will be updated soon. committing for the log purpose.

18 years agoadded a comment about PAM.
User yamaguti [Thu, 17 May 2007 04:47:54 +0000 (04:47 +0000)]
added a comment about PAM.

18 years ago* changed "enable_pool_hba" to be true by default.
User yamaguti [Thu, 17 May 2007 04:46:47 +0000 (04:46 +0000)]
* changed "enable_pool_hba" to be true by default.

* install pgpool.pam for PAM configuration

* updated NEWS, ChangeLog, README*

18 years agoRun autoconf
Tatsuo Ishii [Thu, 17 May 2007 03:40:12 +0000 (03:40 +0000)]
Run autoconf

18 years agoAdd ps display changed.
Yoshiyuki Asaba [Thu, 17 May 2007 02:29:21 +0000 (02:29 +0000)]
Add ps display changed.

18 years agofixed the ps display to follow the order in PostgreSQL.
User yamaguti [Thu, 17 May 2007 02:05:50 +0000 (02:05 +0000)]
fixed the ps display to follow the order in PostgreSQL.
pgpool was showing

pgpool: database user host status

but PostgreSQL shows

postgres: user database host status

18 years agoPrepare for 3.3
Yoshiyuki Asaba [Tue, 15 May 2007 02:36:25 +0000 (02:36 +0000)]
Prepare for 3.3

18 years agoJapanese release note for 3.3
Yoshiyuki Asaba [Tue, 15 May 2007 02:34:04 +0000 (02:34 +0000)]
Japanese release note for 3.3

18 years agoDelay buffer flush in SimpleForwardToBackend().
Yoshiyuki Asaba [Tue, 15 May 2007 02:32:28 +0000 (02:32 +0000)]
Delay buffer flush in SimpleForwardToBackend().

18 years agoAdd handling nextval()/setval()
Yoshiyuki Asaba [Mon, 7 May 2007 04:06:57 +0000 (04:06 +0000)]
Add handling nextval()/setval()

18 years agoRetry connect() when it is interrupted by signal.
Yoshiyuki Asaba [Thu, 26 Apr 2007 05:14:53 +0000 (05:14 +0000)]
Retry connect() when it is interrupted by signal.

18 years agoEnhance that the query that begins with "SELECT nextval()" or "SELECT
Yoshiyuki Asaba [Fri, 20 Apr 2007 06:14:20 +0000 (06:14 +0000)]
Enhance that the query that begins with "SELECT nextval()" or "SELECT
setval()" are always replicated under replication mode.

Then, SELECT statements are only executed by MASTER node if
load_balance_mode is false. If need to replicate select statement, add
a comment in the begining of the query.

Example:
  SELECT foo() -> /*REPLICATION*/ SELECT foo()

18 years agoAdd description about -a option.
User yamaguti [Wed, 21 Feb 2007 12:16:05 +0000 (12:16 +0000)]
Add description about -a option.

18 years agoFixed compile error on FreeBSD 4.11.
Yoshiyuki Asaba [Wed, 21 Feb 2007 06:49:37 +0000 (06:49 +0000)]
Fixed compile error on FreeBSD 4.11.

18 years agoadded a hstrerror() function check so that a compiler on some
User yamaguti [Tue, 13 Feb 2007 08:06:32 +0000 (08:06 +0000)]
added a hstrerror() function check so that a compiler on some
platforms won't complain.

18 years agofixed a compilation error on FreeBSD 4.11 ([pgsql-jp: 38011]) reported
User yamaguti [Tue, 13 Feb 2007 07:17:31 +0000 (07:17 +0000)]
fixed a compilation error on FreeBSD 4.11 ([pgsql-jp: 38011]) reported
by Tom.

18 years ago- Add pgpool.pam file for pam authentication
Devrim GÜNDÜZ [Tue, 13 Feb 2007 07:11:36 +0000 (07:11 +0000)]
- Add pgpool.pam file for pam authentication
- configure with pam support. This is a bugfix for new hba auth.
- Removed vendor tag, per rh bugzilla #222797
- Update to latest release

18 years agopgpool *only* checks backend connection when connection pool is
Yoshiyuki Asaba [Mon, 12 Feb 2007 06:21:03 +0000 (06:21 +0000)]
pgpool *only* checks backend connection when connection pool is
reused.

18 years agoFixed to hang up in PREPARE TRANSACTION and EXECUTE command.
Yoshiyuki Asaba [Mon, 12 Feb 2007 06:19:37 +0000 (06:19 +0000)]
Fixed to hang up in PREPARE TRANSACTION and EXECUTE command.

18 years agoPrepare for 3.2 V3_2
Tatsuo Ishii [Sat, 10 Feb 2007 09:58:37 +0000 (09:58 +0000)]
Prepare for 3.2

18 years agoinclude ac_func_accept_argtypes.m4 to avoid configure error.
Tatsuo Ishii [Wed, 7 Feb 2007 09:57:58 +0000 (09:57 +0000)]
include ac_func_accept_argtypes.m4 to avoid configure error.
Patch made by Taiki Yamaguchi.

18 years agodelete a commented line about "aclocal -I ./"
User yamaguti [Tue, 6 Feb 2007 04:09:28 +0000 (04:09 +0000)]
delete a commented line about "aclocal -I ./"

18 years agoAdd checking socket state when connection pool is reused.
Yoshiyuki Asaba [Tue, 6 Feb 2007 02:11:07 +0000 (02:11 +0000)]
Add checking socket state when connection pool is reused.
If socket is closed, pgpool try to create new connection pool.

18 years agoDetach secondary server when "kind mismatch error" is detected
Tatsuo Ishii [Sat, 3 Feb 2007 04:56:18 +0000 (04:56 +0000)]
Detach secondary server when "kind mismatch error" is detected

18 years agoAdd support for log_hostname
Tatsuo Ishii [Sat, 3 Feb 2007 04:22:21 +0000 (04:22 +0000)]
Add support for log_hostname
Prepare for 3.2

18 years agoUpdate copyright and comments
Tatsuo Ishii [Sat, 3 Feb 2007 00:03:57 +0000 (00:03 +0000)]
Update copyright and comments

18 years agoshow frontend address in ps status.
Tatsuo Ishii [Fri, 2 Feb 2007 03:57:55 +0000 (03:57 +0000)]
show frontend address in ps status.
Also commit pool_config.c.

18 years agomodified pool_open and pool_close to suit with new variables for HBA.
User yamaguti [Thu, 1 Feb 2007 16:40:35 +0000 (16:40 +0000)]
modified pool_open and pool_close to suit with new variables for HBA.

18 years agoNew files and modifications to support client authentication (pool_hba).
User yamaguti [Thu, 1 Feb 2007 15:31:59 +0000 (15:31 +0000)]
New files and modifications to support client authentication (pool_hba).

18 years agoShow status via ps command like PostgreSQL
Tatsuo Ishii [Thu, 1 Feb 2007 13:33:26 +0000 (13:33 +0000)]
Show status via ps command like PostgreSQL
(ps_status.c and strlcpy.c are stolen from PostgreSQL)

18 years agoFixed SIGSEGV using DBD-Pg.
Yoshiyuki Asaba [Mon, 22 Jan 2007 11:36:51 +0000 (11:36 +0000)]
Fixed SIGSEGV using DBD-Pg.
Reported by Kenichi Sawada.

18 years agoFix auto-deallocation. If a client used PDO or DBD-pg interface,
Yoshiyuki Asaba [Sat, 13 Jan 2007 11:13:38 +0000 (11:13 +0000)]
Fix auto-deallocation. If a client used PDO or DBD-pg interface,
pgpool didn't clean prepared statement.

18 years agoUpdate copyright
Devrim GÜNDÜZ [Thu, 4 Jan 2007 17:01:36 +0000 (17:01 +0000)]
Update copyright

18 years agofixed a mistype in the define macro.
User yamaguti [Sun, 17 Dec 2006 11:20:22 +0000 (11:20 +0000)]
fixed a mistype in the define macro.

18 years agoFix typo
Devrim GÜNDÜZ [Wed, 13 Dec 2006 09:16:11 +0000 (09:16 +0000)]
Fix typo

18 years agoAdd cvs tag command. V3_1_2
Yoshiyuki Asaba [Mon, 11 Dec 2006 04:13:06 +0000 (04:13 +0000)]
Add cvs tag command.

18 years agoVersion 3.1.2
Yoshiyuki Asaba [Mon, 11 Dec 2006 04:06:43 +0000 (04:06 +0000)]
Version 3.1.2

18 years agoChange release date.
Yoshiyuki Asaba [Mon, 11 Dec 2006 04:05:30 +0000 (04:05 +0000)]
Change release date.

18 years agoOoops, fix version
Devrim GÜNDÜZ [Tue, 5 Dec 2006 13:05:58 +0000 (13:05 +0000)]
Ooops, fix version

18 years agoBetter fix for conf file problem, per bugzilla review
Devrim GÜNDÜZ [Tue, 5 Dec 2006 13:05:24 +0000 (13:05 +0000)]
Better fix for conf file problem, per bugzilla review

18 years agoVersion 3.1.2.
Yoshiyuki Asaba [Tue, 5 Dec 2006 07:12:35 +0000 (07:12 +0000)]
Version 3.1.2.

18 years agoUpdate to 3.1.2
Devrim GÜNDÜZ [Tue, 5 Dec 2006 05:10:20 +0000 (05:10 +0000)]
Update to 3.1.2

18 years agoFixed segmentation fault when a Parse message was failed.
Yoshiyuki Asaba [Fri, 1 Dec 2006 06:50:26 +0000 (06:50 +0000)]
Fixed segmentation fault when a Parse message was failed.

18 years agoRelease procedure document (Japanese)
Tatsuo Ishii [Fri, 1 Dec 2006 06:44:59 +0000 (06:44 +0000)]
Release procedure document (Japanese)

18 years agoupdate items implemented in pgpool-II
Tatsuo Ishii [Fri, 1 Dec 2006 06:26:44 +0000 (06:26 +0000)]
update items implemented in pgpool-II

18 years agoversion 3.1.2
Tatsuo Ishii [Fri, 1 Dec 2006 06:18:56 +0000 (06:18 +0000)]
version 3.1.2

18 years agoUpdates to spec, per bugzilla review.
Devrim GÜNDÜZ [Sun, 26 Nov 2006 17:58:43 +0000 (17:58 +0000)]
Updates to spec, per bugzilla review.

18 years agoRemove a restriction of an extended query protocol.
Yoshiyuki Asaba [Tue, 10 Oct 2006 04:34:32 +0000 (04:34 +0000)]
Remove a restriction of an extended query protocol.

18 years agoLoad balancing an extended query protocol.
Yoshiyuki Asaba [Tue, 10 Oct 2006 04:31:18 +0000 (04:31 +0000)]
Load balancing an extended query protocol.

18 years agoAdd pam authentication in supported authentication protocol list.
Yoshiyuki Asaba [Mon, 25 Sep 2006 02:50:43 +0000 (02:50 +0000)]
Add pam authentication in supported authentication protocol list.
Reported by Jeff Davis.

19 years agoFix kind mismatch error in COPY FROM STDIN.
Yoshiyuki Asaba [Wed, 13 Sep 2006 10:13:20 +0000 (10:13 +0000)]
Fix kind mismatch error in COPY FROM STDIN.

19 years agoRemove dependency for postgresql-server.
Devrim GÜNDÜZ [Fri, 8 Sep 2006 08:58:59 +0000 (08:58 +0000)]
Remove dependency for postgresql-server.

19 years agoImprove error message when a connection is rejected by postmaster with
Tatsuo Ishii [Wed, 30 Aug 2006 01:11:48 +0000 (01:11 +0000)]
Improve error message when a connection is rejected by postmaster with
no pg_hba.conf entries. Patches contributed by Kenji Kikuchi.
See [Pgpool-general] Small change for v3 formatted ErrorResponce
handling. on 2006/8/26 for more details.

19 years agoFix typos
Devrim GÜNDÜZ [Sun, 13 Aug 2006 22:36:06 +0000 (22:36 +0000)]
Fix typos

19 years agoallow 0 weight
Tatsuo Ishii [Wed, 2 Aug 2006 08:27:29 +0000 (08:27 +0000)]
allow 0 weight

19 years agoFix pool_close() to avoid free() not allocated
Tatsuo Ishii [Wed, 2 Aug 2006 08:00:56 +0000 (08:00 +0000)]
Fix pool_close() to avoid free() not allocated
memory. pool_discard_params() should be called only when
this is the backend connection.

19 years ago- Fixed spec file, per bugzilla review (#199679)
Devrim GÜNDÜZ [Mon, 31 Jul 2006 12:16:36 +0000 (12:16 +0000)]
- Fixed spec file, per bugzilla review (#199679)

19 years ago- Fixed bogus char :(
Devrim GÜNDÜZ [Sun, 23 Jul 2006 14:01:03 +0000 (14:01 +0000)]
- Fixed bogus char :(

19 years ago- Fixed spec file, per bugzilla review (#199679)
Devrim GÜNDÜZ [Sun, 23 Jul 2006 13:51:36 +0000 (13:51 +0000)]
- Fixed spec file, per bugzilla review (#199679)

19 years agoUpdated version numbers
Devrim GÜNDÜZ [Sun, 23 Jul 2006 13:50:22 +0000 (13:50 +0000)]
Updated version numbers

19 years ago- Fixed spec file, per bugzilla review (#199679)
Devrim GÜNDÜZ [Sun, 23 Jul 2006 12:42:38 +0000 (12:42 +0000)]
- Fixed spec file, per bugzilla review (#199679)
- Update to 3.1.1

19 years agoVersion 3.1.1 V3_1_1
Tatsuo Ishii [Sun, 23 Jul 2006 11:41:51 +0000 (11:41 +0000)]
Version 3.1.1

19 years agoFix problem NOTIFY messages does arrive client.
Tatsuo Ishii [Fri, 21 Jul 2006 04:25:42 +0000 (04:25 +0000)]
Fix problem NOTIFY messages does arrive client.
Modify SimpleForwardToFrontend so that flush the client stream
immediatly if the packet kind is 'A' (notification response)
Per report from Michael Ulitskiy.
See

[Pgpool-general] Problem with LISTEN/NOTIFY through pgpool again
Date: Thu, 20 Jul 2006 14:13:09 -0400

for more problem details.

19 years agoAdd mail address V3_1
Tatsuo Ishii [Sat, 1 Jul 2006 11:49:00 +0000 (11:49 +0000)]
Add mail address

19 years agoFix release date
Tatsuo Ishii [Sat, 1 Jul 2006 11:48:08 +0000 (11:48 +0000)]
Fix release date

19 years agoAdd configure (accidently removed)
Tatsuo Ishii [Sat, 1 Jul 2006 11:45:26 +0000 (11:45 +0000)]
Add configure (accidently removed)

19 years agoV3.1
Tatsuo Ishii [Sat, 1 Jul 2006 11:44:09 +0000 (11:44 +0000)]
V3.1