pgpool2.git
15 years agoPrepare 3.0-beta2 V3_0_0_BETA2
Toshihiro Kitagawa [Wed, 25 Aug 2010 04:35:26 +0000 (04:35 +0000)]
Prepare 3.0-beta2

15 years agoHopefully 3.0 to be released in September.
Toshihiro Kitagawa [Wed, 25 Aug 2010 04:31:27 +0000 (04:31 +0000)]
Hopefully 3.0 to be released in September.

15 years agoPrepare 3.0-beta2
Toshihiro Kitagawa [Wed, 25 Aug 2010 04:22:24 +0000 (04:22 +0000)]
Prepare 3.0-beta2

15 years agoHopefullly 3.0 to be released in September.
Tatsuo Ishii [Wed, 25 Aug 2010 03:05:54 +0000 (03:05 +0000)]
Hopefullly 3.0 to be released in September.

15 years agoAdd metiontion about using row lock, rather than table lock when
Tatsuo Ishii [Tue, 24 Aug 2010 05:37:12 +0000 (05:37 +0000)]
Add metiontion about using row lock, rather than table lock  when
inser_lock is enabled.

15 years agoRevert previous fix for insert_lock.
Tatsuo Ishii [Mon, 23 Aug 2010 13:58:49 +0000 (13:58 +0000)]
Revert previous fix for insert_lock.
SELECT FOR UPDATE must be issued by do_query, rather than do_command.

15 years agoFix do_command so that it allows kinds "T" and "D".
Toshihiro Kitagawa [Mon, 23 Aug 2010 06:43:25 +0000 (06:43 +0000)]
Fix do_command so that it allows kinds "T" and "D".
This fix is because insert_lock came to send SELECT command.

15 years agoFix pgpool_switch_xlog so that it checks the size of archived log file.
Toshihiro Kitagawa [Mon, 23 Aug 2010 04:42:31 +0000 (04:42 +0000)]
Fix pgpool_switch_xlog so that it checks the size of archived log file.

15 years agoAdd a header I forgot. Thanks to Tatsuo for the idea.
Guillaume Lelarge [Sun, 22 Aug 2010 10:52:40 +0000 (10:52 +0000)]
Add a header I forgot. Thanks to Tatsuo for the idea.

15 years agoAdd getopt_long.h and getopt_long.c source code files from PostgreSQL source
Guillaume Lelarge [Sun, 22 Aug 2010 08:24:02 +0000 (08:24 +0000)]
Add getopt_long.h and getopt_long.c source code files from PostgreSQL source
code, so that platforms without getopt_long function can still use long
options.

15 years agoFix where_to_send so that it considers white_function_list and
Toshihiro Kitagawa [Fri, 20 Aug 2010 08:05:57 +0000 (08:05 +0000)]
Fix where_to_send so that it considers white_function_list and
black_function_list in replication mode.
Adjust rules in replication mode and parallel mode.

15 years agoFix do_command so that it doesn't call pool_read function after it detects
Toshihiro Kitagawa [Fri, 20 Aug 2010 02:04:28 +0000 (02:04 +0000)]
Fix do_command so that it doesn't call pool_read function after it detects
PANIC or FATAL error.
Change is_panic_or_fatal_error so that it supports V2 protocol.

15 years agoFix SimpleQuery so that it checks backend status when using V2 protocol.
Toshihiro Kitagawa [Fri, 20 Aug 2010 01:57:46 +0000 (01:57 +0000)]
Fix SimpleQuery so that it checks backend status when using V2 protocol.

15 years agoWhen insert_lock is enabled and the table includes SERIAL data type,
Tatsuo Ishii [Thu, 19 Aug 2010 09:25:40 +0000 (09:25 +0000)]
When insert_lock is enabled and the table includes SERIAL data type,
issue row lock on the sequence table. Before we issues table
lock. Problem is, the table lock conflicts with auto vacuum and
sometimes caused excessive lock waiting.

Remove unnused global variable start_internal_transaction

Remove #ifdef out comments in pool_session_context.h

15 years agoRemove unnecessary restriction(with version 2 protoocl it always
Tatsuo Ishii [Thu, 19 Aug 2010 07:35:13 +0000 (07:35 +0000)]
Remove unnecessary restriction(with version 2 protoocl it always
returns 0) of need_insert_lock. do_query has already supports v2
protocol.

15 years ago- Update copyright for the year 2010
Tomoaki Sato [Wed, 18 Aug 2010 13:33:49 +0000 (13:33 +0000)]
- Update copyright for the year 2010
- Fix typo: PgPool -> pgpool
- Enlarge the font size of <pre></pre>
- Add closing tag </a>

15 years agoFix insert_lock to be schema aware.
Tatsuo Ishii [Wed, 18 Aug 2010 07:12:43 +0000 (07:12 +0000)]
Fix insert_lock to be schema aware.

15 years agoPrepare 3.0-beta1 V3_0_0_BETA1
Toshihiro Kitagawa [Wed, 18 Aug 2010 01:53:04 +0000 (01:53 +0000)]
Prepare 3.0-beta1

15 years agoFix default value of log_standby_delay in pgpool.conf.sample-replication.
Toshihiro Kitagawa [Wed, 18 Aug 2010 01:33:32 +0000 (01:33 +0000)]
Fix default value of log_standby_delay in pgpool.conf.sample-replication.
Update comment of replication_stop_on_mismatch.

15 years agoUpdate ChangeLog
Tatsuo Ishii [Wed, 18 Aug 2010 00:28:41 +0000 (00:28 +0000)]
Update ChangeLog

15 years agoAdd description about load balaning in streaming replication mode to
Tatsuo Ishii [Wed, 18 Aug 2010 00:22:09 +0000 (00:22 +0000)]
Add description about load balaning in streaming replication mode to
English doc.
Fix Japanese doc in unnecessary restriction regarding load balaning in
streaming replication mode.

15 years agoPrepare 3.0-beta1
Toshihiro Kitagawa [Tue, 17 Aug 2010 11:20:47 +0000 (11:20 +0000)]
Prepare 3.0-beta1

15 years agoFix reset_variables so that it checks session_context.
Toshihiro Kitagawa [Tue, 17 Aug 2010 09:51:36 +0000 (09:51 +0000)]
Fix reset_variables so that it checks session_context.

15 years agoFix pool_do_parallel_query and pool_parallel_exec so that parallel mode works.
Toshihiro Kitagawa [Tue, 17 Aug 2010 09:23:18 +0000 (09:23 +0000)]
Fix pool_do_parallel_query and pool_parallel_exec so that parallel mode works.
Rename pool_status_stmt flag to skip_reading_from_backends.

15 years agoFix typo.
Tatsuo Ishii [Tue, 17 Aug 2010 06:43:53 +0000 (06:43 +0000)]
Fix typo.

15 years agoAdd description of failover and online recover in master/slave
Tatsuo Ishii [Tue, 17 Aug 2010 06:43:29 +0000 (06:43 +0000)]
Add description of failover and online recover in master/slave
streaming mode.

15 years agoAdd restrictions.
Tatsuo Ishii [Tue, 17 Aug 2010 05:33:20 +0000 (05:33 +0000)]
Add restrictions.

15 years agoDo not rewrite statement which accesses columns having now() etc. as
Tatsuo Ishii [Tue, 17 Aug 2010 05:17:13 +0000 (05:17 +0000)]
Do not rewrite statement which accesses columns having now() etc. as
the default value but the data type are not timestamp etc.
Otherwise we have an error in DMLS. See:

Subject: [Pgpool-general] function epoch seems to be causing error
To: pgpool-general@pgfoundry.org
Date: Mon, 16 Aug 2010 21:48:31 +0000 (UTC)

For more details.

15 years agoFix typo.
Toshihiro Kitagawa [Tue, 17 Aug 2010 04:56:51 +0000 (04:56 +0000)]
Fix typo.

15 years agoFix the bug with V2 protocol's transaction state handling.
Toshihiro Kitagawa [Tue, 17 Aug 2010 04:21:35 +0000 (04:21 +0000)]
Fix the bug with V2 protocol's transaction state handling.

15 years agoFix compiler warnings.
Toshihiro Kitagawa [Tue, 17 Aug 2010 02:22:17 +0000 (02:22 +0000)]
Fix compiler warnings.

15 years agoFix typo in debug message.
Toshihiro Kitagawa [Tue, 17 Aug 2010 02:09:00 +0000 (02:09 +0000)]
Fix typo in debug message.

15 years agoFix raise_intentional_error_if_need so that V2 protocol works.
Toshihiro Kitagawa [Tue, 17 Aug 2010 01:51:38 +0000 (01:51 +0000)]
Fix raise_intentional_error_if_need so that V2 protocol works.

15 years agoChange the dummy query of SimpleQuery to DELETE instead of INSERET, because
Toshihiro Kitagawa [Tue, 17 Aug 2010 01:36:51 +0000 (01:36 +0000)]
Change the dummy query of SimpleQuery to DELETE instead of INSERET, because
INSERT send a command for rewriting timestamp.

15 years agoFix CompletedResponse so that it checks command tag.
Toshihiro Kitagawa [Mon, 16 Aug 2010 01:51:39 +0000 (01:51 +0000)]
Fix CompletedResponse so that it checks command tag.
This fix is the rest of the previous fix.

15 years agoFix CompletedResponse so that child process does not end when figures of
Toshihiro Kitagawa [Mon, 16 Aug 2010 01:15:28 +0000 (01:15 +0000)]
Fix CompletedResponse so that child process does not end when figures of
the row oids are different.

15 years agoAdd the new --verbose option in the usage function.
Guillaume Lelarge [Sat, 14 Aug 2010 18:01:09 +0000 (18:01 +0000)]
Add the new --verbose option in the usage function.

15 years agoShow start_time and create_time in a more friendly way. For both pcp and SHOW commands.
Guillaume Lelarge [Sat, 14 Aug 2010 06:42:08 +0000 (06:42 +0000)]
Show start_time and create_time in a more friendly way. For both pcp and SHOW commands.

15 years agoShow the usual (ie, not normalized) weight with "SHOW pool_nodes".
Guillaume Lelarge [Sat, 14 Aug 2010 02:16:56 +0000 (02:16 +0000)]
Show the usual (ie, not normalized) weight with "SHOW pool_nodes".

15 years agoAdd a --verbose option to pcp_node_info and pcp_proc_info.
Guillaume Lelarge [Sat, 14 Aug 2010 02:05:26 +0000 (02:05 +0000)]
Add a --verbose option to pcp_node_info and pcp_proc_info.

15 years agoUpdate usage to show the long options.
Guillaume Lelarge [Fri, 13 Aug 2010 16:48:14 +0000 (16:48 +0000)]
Update usage to show the long options.

15 years agoUpdate sample file pgpool_recovery_pitr.
Toshihiro Kitagawa [Fri, 13 Aug 2010 00:28:14 +0000 (00:28 +0000)]
Update sample file pgpool_recovery_pitr.

15 years agoFix the bug that V2 protocol does not work.
Toshihiro Kitagawa [Fri, 13 Aug 2010 00:09:46 +0000 (00:09 +0000)]
Fix the bug that V2 protocol does not work.

15 years agoAdd pgpool.conf.sample-stream
Tatsuo Ishii [Thu, 12 Aug 2010 06:36:17 +0000 (06:36 +0000)]
Add pgpool.conf.sample-stream

15 years agoAdd mention about pgpool_switch_xlog.
Tatsuo Ishii [Thu, 12 Aug 2010 01:07:13 +0000 (01:07 +0000)]
Add mention about pgpool_switch_xlog.

15 years agoAdd info about white_function_list and black_function_list.
Tatsuo Ishii [Thu, 12 Aug 2010 00:27:19 +0000 (00:27 +0000)]
Add info about white_function_list and black_function_list.
Add default value for black_function_list(i.e. nextval and setval) for
backward compatibilty for those who do not update pgpool.conf.

15 years agoEnhancing docs.
Tatsuo Ishii [Thu, 12 Aug 2010 00:25:27 +0000 (00:25 +0000)]
Enhancing docs.

15 years agoAdd "troubleshooting" section.
Tatsuo Ishii [Wed, 11 Aug 2010 08:12:10 +0000 (08:12 +0000)]
Add "troubleshooting" section.

15 years agoSync with English document.
Tatsuo Ishii [Wed, 11 Aug 2010 07:05:51 +0000 (07:05 +0000)]
Sync with English document.

15 years agoForgot to change the documentation.
Guillaume Lelarge [Wed, 11 Aug 2010 05:54:20 +0000 (05:54 +0000)]
Forgot to change the documentation.

15 years ago"SHOW pool_pools" now reports the backend ID. With help from Tatsuo Ishii.
Guillaume Lelarge [Wed, 11 Aug 2010 05:51:15 +0000 (05:51 +0000)]
"SHOW pool_pools" now reports the backend ID. With help from Tatsuo Ishii.

15 years agoSync with English doc.
Tatsuo Ishii [Wed, 11 Aug 2010 03:04:06 +0000 (03:04 +0000)]
Sync with English doc.

15 years agoFix typo.
Tatsuo Ishii [Wed, 11 Aug 2010 03:03:41 +0000 (03:03 +0000)]
Fix typo.

15 years agoFix some warnings on gcc.
Guillaume Lelarge [Tue, 10 Aug 2010 15:08:32 +0000 (15:08 +0000)]
Fix some warnings on gcc.

15 years agoAdd support for more "SHOW" commands: pool_nodes, pool_processes, pool_nodes,
Guillaume Lelarge [Tue, 10 Aug 2010 13:21:51 +0000 (13:21 +0000)]
Add support for more "SHOW" commands: pool_nodes, pool_processes, pool_nodes,
and pool_version.

15 years agoFix typo.
Toshihiro Kitagawa [Tue, 10 Aug 2010 09:09:30 +0000 (09:09 +0000)]
Fix typo.

15 years agoTeach pool_where_to_send to recognize whether SELECT uses system
Tatsuo Ishii [Tue, 10 Aug 2010 08:45:10 +0000 (08:45 +0000)]
Teach pool_where_to_send to recognize whether SELECT uses system
catalogs. If so, send query to real master. This will let \d command
works against temp tables.

15 years agoFix session_context_destroy so that it frees memory.
Toshihiro Kitagawa [Tue, 10 Aug 2010 08:06:36 +0000 (08:06 +0000)]
Fix session_context_destroy so that it frees memory.

15 years agoRemove ifdef out code.
Tatsuo Ishii [Tue, 10 Aug 2010 06:18:14 +0000 (06:18 +0000)]
Remove ifdef out code.

15 years agoMinor correction.
Tatsuo Ishii [Tue, 10 Aug 2010 05:40:07 +0000 (05:40 +0000)]
Minor correction.

15 years agoRemove unnecessary global variable.
Tatsuo Ishii [Tue, 10 Aug 2010 05:09:16 +0000 (05:09 +0000)]
Remove unnecessary global variable.

15 years agoRemove variables: select_in_transaction, execute_select.
Toshihiro Kitagawa [Tue, 10 Aug 2010 04:08:27 +0000 (04:08 +0000)]
Remove variables: select_in_transaction, execute_select.
Fix raise_intentional_error_if_need so that it supports replication_mode.

15 years agoSync with Japanese doc.
Tatsuo Ishii [Tue, 10 Aug 2010 03:03:52 +0000 (03:03 +0000)]
Sync with Japanese doc.

15 years agoMake schema aware for 8.3 or before.
Tatsuo Ishii [Tue, 10 Aug 2010 00:58:43 +0000 (00:58 +0000)]
Make schema aware for 8.3 or before.

15 years agoMore fix.
Tatsuo Ishii [Tue, 10 Aug 2010 00:40:52 +0000 (00:40 +0000)]
More fix.

15 years agoFix temporary table checking. Make schema aware. Also a query to
Tatsuo Ishii [Tue, 10 Aug 2010 00:37:57 +0000 (00:37 +0000)]
Fix temporary table checking. Make schema aware. Also a query to
system catalog should be sent to real master, not virtual master.

15 years agoMake timestamp rewriting schema aware.
Tatsuo Ishii [Tue, 10 Aug 2010 00:36:14 +0000 (00:36 +0000)]
Make timestamp rewriting schema aware.

15 years agoAdd pgpool_switch_xlog function.
Toshihiro Kitagawa [Mon, 9 Aug 2010 10:53:52 +0000 (10:53 +0000)]
Add pgpool_switch_xlog function.
pgpool_switch_log is the same as pg_switch_xlog except that it wait till
archiving is completed.
Fix pgpool_recovery and pgpool_remote_start so that they can compile
with PostgreSQL 7.3.

15 years agoAdd raise_intentional_error_if_need function and failed_transaction
Toshihiro Kitagawa [Fri, 6 Aug 2010 13:17:24 +0000 (13:17 +0000)]
Add raise_intentional_error_if_need function and failed_transaction
valiable, to resolve following transaction issue in load_balance_mode.
Now, SELECT is sent to master node when error occurred
in master_slave_mode and load_balance_mode.

example of atomicity issue:

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

15 years agoUpdate for pgpool-II 3.0.
Tatsuo Ishii [Fri, 6 Aug 2010 08:03:36 +0000 (08:03 +0000)]
Update for pgpool-II 3.0.

15 years agoPeer review.
Tatsuo Ishii [Fri, 6 Aug 2010 07:01:54 +0000 (07:01 +0000)]
Peer review.

15 years agoAdd frontend connection status data to pcp_proc_info.
Tatsuo Ishii [Fri, 6 Aug 2010 05:51:27 +0000 (05:51 +0000)]
Add frontend connection status data to pcp_proc_info.

15 years agoRemove pool_index member from POOL_CONNECTION_POOL.
Tatsuo Ishii [Fri, 6 Aug 2010 02:09:42 +0000 (02:09 +0000)]
Remove pool_index member from POOL_CONNECTION_POOL.
Instead has pool_index in pool_connection_pool as a static data.

15 years agoAdd 1/0 field to pcp_proc_info7s output to indicate that this
Tatsuo Ishii [Thu, 5 Aug 2010 23:37:43 +0000 (23:37 +0000)]
Add 1/0 field to pcp_proc_info7s output to indicate that this
connection pool is connected from frontend or not.

15 years agoRemove debug line.
Tatsuo Ishii [Thu, 5 Aug 2010 08:10:57 +0000 (08:10 +0000)]
Remove debug line.

15 years agoImplement pcp_detatch_node gracefull mode.
Tatsuo Ishii [Thu, 5 Aug 2010 08:08:44 +0000 (08:08 +0000)]
Implement pcp_detatch_node gracefull mode.
i.e. wait until all clients disconnected.

15 years agoAdd backend pid to pcp_proc_info.
Tatsuo Ishii [Thu, 5 Aug 2010 03:10:00 +0000 (03:10 +0000)]
Add backend pid to pcp_proc_info.

15 years agoFix ConnectionInfo data on shem.
Tatsuo Ishii [Thu, 5 Aug 2010 03:07:04 +0000 (03:07 +0000)]
Fix ConnectionInfo data on shem.
Add new API to ConnectionInfo pool_coninfo_pid().
Add call to pool_init_process_context to pcp_child.
Add backend pid to pcp_proc_info.

15 years agoTweak debug statement
Tatsuo Ishii [Thu, 5 Aug 2010 03:03:53 +0000 (03:03 +0000)]
Tweak debug statement

15 years agoAdd backend_data_directory checking in pgpool.conf.
Toshihiro Kitagawa [Wed, 4 Aug 2010 07:27:44 +0000 (07:27 +0000)]
Add backend_data_directory checking in pgpool.conf.
Now recovery_1st_stage_command and recovery_2nd_stage_command requires
backend_data_directory to be set.

15 years agoRemove unused codes.
Toshihiro Kitagawa [Wed, 4 Aug 2010 02:58:38 +0000 (02:58 +0000)]
Remove unused codes.

15 years agoFix typo in help message.
Toshihiro Kitagawa [Tue, 3 Aug 2010 09:01:41 +0000 (09:01 +0000)]
Fix typo in help message.

15 years agoNow query dispatch algorithm of Slony-I is exactly same as Streaming
Tatsuo Ishii [Tue, 3 Aug 2010 07:02:02 +0000 (07:02 +0000)]
Now query dispatch algorithm of Slony-I is exactly same as Streaming
rep. Let's see if this works...

15 years agoRemove unused codes.
Toshihiro Kitagawa [Tue, 3 Aug 2010 06:37:18 +0000 (06:37 +0000)]
Remove unused codes.

15 years agoRefactor main() to use pool_coninfo_size and pool_coninfo.
Tatsuo Ishii [Tue, 3 Aug 2010 01:43:52 +0000 (01:43 +0000)]
Refactor main() to use pool_coninfo_size and pool_coninfo.

15 years agoFix cancel_request whic was not working at all.
Tatsuo Ishii [Tue, 3 Aug 2010 01:25:27 +0000 (01:25 +0000)]
Fix cancel_request whic was not working at all.

Add pool_coninfo_size, pool_coninfo_num, pool_coninfo for refactering.
Current ConnectionInfo handling is awfully adhoc and hard to maintain.
These modules encapsulate the layout of ConnectionInfo on shmem somewhat.

15 years agoAdd debug info.
Tatsuo Ishii [Tue, 3 Aug 2010 01:21:28 +0000 (01:21 +0000)]
Add debug info.

15 years agoFix bug in pool_delete_prep_where: It's memset not memcpy.
Toshihiro Kitagawa [Mon, 2 Aug 2010 10:16:06 +0000 (10:16 +0000)]
Fix bug in pool_delete_prep_where: It's memset not memcpy.

15 years agoFix compiler warning.
Toshihiro Kitagawa [Mon, 2 Aug 2010 10:06:16 +0000 (10:06 +0000)]
Fix compiler warning.

15 years agoFix possible crash by using unset pool_memory.
Toshihiro Kitagawa [Mon, 2 Aug 2010 09:13:26 +0000 (09:13 +0000)]
Fix possible crash by using unset pool_memory.

15 years agoFix log level to DEBUG when pending object was NULL.
Toshihiro Kitagawa [Mon, 2 Aug 2010 02:29:22 +0000 (02:29 +0000)]
Fix log level to DEBUG when pending object was NULL.

15 years agoAllow to specify functions those are writing to DB in SELECT.
Tatsuo Ishii [Sun, 1 Aug 2010 08:38:17 +0000 (08:38 +0000)]
Allow to specify functions those are writing to DB in SELECT.
For this purpose, new directive "white_function_lis" and
"black_function_list" added.
Such SELECT are not load balanced in replication mode and
master slave mode.

15 years agoAllow to issue SELECT to temporary tables in master/slave mode.
Tatsuo Ishii [Thu, 29 Jul 2010 10:05:17 +0000 (10:05 +0000)]
Allow to issue SELECT to temporary tables in master/slave mode.
For this purpose two files pool_select_walker.c pool_select_walker.h
added. They contain modules to analyze SELECT statement recursively.

15 years agoFix DEALLOCATE issue when using PHP-PDO.
Toshihiro Kitagawa [Thu, 29 Jul 2010 04:04:07 +0000 (04:04 +0000)]
Fix DEALLOCATE issue when using PHP-PDO.
PHP-PDO uses extended query protocol, but DEALLOCATE sends by simple query protocol.

15 years agoRemove // comments.
Toshihiro Kitagawa [Thu, 29 Jul 2010 00:29:49 +0000 (00:29 +0000)]
Remove // comments.

15 years agoMore updation.
Toshihiro Kitagawa [Thu, 29 Jul 2010 00:05:45 +0000 (00:05 +0000)]
More updation.

15 years agoMore updation.
Toshihiro Kitagawa [Wed, 28 Jul 2010 11:34:40 +0000 (11:34 +0000)]
More updation.

15 years agoMore updation.
Tatsuo Ishii [Wed, 28 Jul 2010 08:36:08 +0000 (08:36 +0000)]
More updation.

15 years agoRe-enable transaction isolation level is serializable case.
Tatsuo Ishii [Tue, 27 Jul 2010 23:26:52 +0000 (23:26 +0000)]
Re-enable transaction isolation level is serializable case.
In this case we need to send SELECTs to primary only to keep
serializable semantics.

15 years agoMore doc updation for 3.0.
Tatsuo Ishii [Tue, 27 Jul 2010 23:24:08 +0000 (23:24 +0000)]
More doc updation for 3.0.