[pgpool-committers: 1025] pgpool: Fix bug with do_query which causes hung in extended protocol.

Tatsuo Ishii ishii at postgresql.org
Mon Jun 3 18:34:01 JST 2013


Fix bug with do_query which causes hung in extended protocol.

When insert lock is enabled and pgpool_catalog.insert_lock exists,
pgpool-II looks for the row which matches the oid of the target
table. If non, pgpool-II will insert the row to obtain a row lock.
The bug was in the process looking for the row. If extended protocol
is used, pgpool-II was waiting for the row data forever which will
never come because there's no such a row in the table. The fix is when
"command complete" received, let pgpool-II regards as if "data row"
received. The bug was introduced when 3.2.1 was released. A
reproducable test case is provided by Karsten Düsterloh.  See
[pgpool-general: 1684] for more details.

Branch
------
master

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=9dd90f45ef4194473c04099e6332af0a8c0d8411

Modified Files
--------------
pool_process_query.c |    5 +++++
1 file changed, 5 insertions(+)



More information about the pgpool-committers mailing list