Toshihiro Kitagawa [Wed, 25 Aug 2010 04:35:26 +0000 (04:35 +0000)]
Prepare 3.0-beta2
Toshihiro Kitagawa [Wed, 25 Aug 2010 04:31:27 +0000 (04:31 +0000)]
Hopefully 3.0 to be released in September.
Toshihiro Kitagawa [Wed, 25 Aug 2010 04:22:24 +0000 (04:22 +0000)]
Prepare 3.0-beta2
Tatsuo Ishii [Wed, 25 Aug 2010 03:05:54 +0000 (03:05 +0000)]
Hopefullly 3.0 to be released in September.
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.
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.
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.
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.
Guillaume Lelarge [Sun, 22 Aug 2010 10:52:40 +0000 (10:52 +0000)]
Add a header I forgot. Thanks to Tatsuo for the idea.
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.
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.
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.
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.
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
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.
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>
Tatsuo Ishii [Wed, 18 Aug 2010 07:12:43 +0000 (07:12 +0000)]
Fix insert_lock to be schema aware.
Toshihiro Kitagawa [Wed, 18 Aug 2010 01:53:04 +0000 (01:53 +0000)]
Prepare 3.0-beta1
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.
Tatsuo Ishii [Wed, 18 Aug 2010 00:28:41 +0000 (00:28 +0000)]
Update ChangeLog
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.
Toshihiro Kitagawa [Tue, 17 Aug 2010 11:20:47 +0000 (11:20 +0000)]
Prepare 3.0-beta1
Toshihiro Kitagawa [Tue, 17 Aug 2010 09:51:36 +0000 (09:51 +0000)]
Fix reset_variables so that it checks session_context.
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.
Tatsuo Ishii [Tue, 17 Aug 2010 06:43:53 +0000 (06:43 +0000)]
Fix typo.
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.
Tatsuo Ishii [Tue, 17 Aug 2010 05:33:20 +0000 (05:33 +0000)]
Add restrictions.
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.
Toshihiro Kitagawa [Tue, 17 Aug 2010 04:56:51 +0000 (04:56 +0000)]
Fix typo.
Toshihiro Kitagawa [Tue, 17 Aug 2010 04:21:35 +0000 (04:21 +0000)]
Fix the bug with V2 protocol's transaction state handling.
Toshihiro Kitagawa [Tue, 17 Aug 2010 02:22:17 +0000 (02:22 +0000)]
Fix compiler warnings.
Toshihiro Kitagawa [Tue, 17 Aug 2010 02:09:00 +0000 (02:09 +0000)]
Fix typo in debug message.
Toshihiro Kitagawa [Tue, 17 Aug 2010 01:51:38 +0000 (01:51 +0000)]
Fix raise_intentional_error_if_need so that V2 protocol works.
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.
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.
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.
Guillaume Lelarge [Sat, 14 Aug 2010 18:01:09 +0000 (18:01 +0000)]
Add the new --verbose option in the usage function.
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.
Guillaume Lelarge [Sat, 14 Aug 2010 02:16:56 +0000 (02:16 +0000)]
Show the usual (ie, not normalized) weight with "SHOW pool_nodes".
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.
Guillaume Lelarge [Fri, 13 Aug 2010 16:48:14 +0000 (16:48 +0000)]
Update usage to show the long options.
Toshihiro Kitagawa [Fri, 13 Aug 2010 00:28:14 +0000 (00:28 +0000)]
Update sample file pgpool_recovery_pitr.
Toshihiro Kitagawa [Fri, 13 Aug 2010 00:09:46 +0000 (00:09 +0000)]
Fix the bug that V2 protocol does not work.
Tatsuo Ishii [Thu, 12 Aug 2010 06:36:17 +0000 (06:36 +0000)]
Add pgpool.conf.sample-stream
Tatsuo Ishii [Thu, 12 Aug 2010 01:07:13 +0000 (01:07 +0000)]
Add mention about pgpool_switch_xlog.
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.
Tatsuo Ishii [Thu, 12 Aug 2010 00:25:27 +0000 (00:25 +0000)]
Enhancing docs.
Tatsuo Ishii [Wed, 11 Aug 2010 08:12:10 +0000 (08:12 +0000)]
Add "troubleshooting" section.
Tatsuo Ishii [Wed, 11 Aug 2010 07:05:51 +0000 (07:05 +0000)]
Sync with English document.
Guillaume Lelarge [Wed, 11 Aug 2010 05:54:20 +0000 (05:54 +0000)]
Forgot to change the documentation.
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.
Tatsuo Ishii [Wed, 11 Aug 2010 03:04:06 +0000 (03:04 +0000)]
Sync with English doc.
Tatsuo Ishii [Wed, 11 Aug 2010 03:03:41 +0000 (03:03 +0000)]
Fix typo.
Guillaume Lelarge [Tue, 10 Aug 2010 15:08:32 +0000 (15:08 +0000)]
Fix some warnings on gcc.
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.
Toshihiro Kitagawa [Tue, 10 Aug 2010 09:09:30 +0000 (09:09 +0000)]
Fix typo.
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.
Toshihiro Kitagawa [Tue, 10 Aug 2010 08:06:36 +0000 (08:06 +0000)]
Fix session_context_destroy so that it frees memory.
Tatsuo Ishii [Tue, 10 Aug 2010 06:18:14 +0000 (06:18 +0000)]
Remove ifdef out code.
Tatsuo Ishii [Tue, 10 Aug 2010 05:40:07 +0000 (05:40 +0000)]
Minor correction.
Tatsuo Ishii [Tue, 10 Aug 2010 05:09:16 +0000 (05:09 +0000)]
Remove unnecessary global variable.
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.
Tatsuo Ishii [Tue, 10 Aug 2010 03:03:52 +0000 (03:03 +0000)]
Sync with Japanese doc.
Tatsuo Ishii [Tue, 10 Aug 2010 00:58:43 +0000 (00:58 +0000)]
Make schema aware for 8.3 or before.
Tatsuo Ishii [Tue, 10 Aug 2010 00:40:52 +0000 (00:40 +0000)]
More fix.
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.
Tatsuo Ishii [Tue, 10 Aug 2010 00:36:14 +0000 (00:36 +0000)]
Make timestamp rewriting schema aware.
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.
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
Tatsuo Ishii [Fri, 6 Aug 2010 08:03:36 +0000 (08:03 +0000)]
Update for pgpool-II 3.0.
Tatsuo Ishii [Fri, 6 Aug 2010 07:01:54 +0000 (07:01 +0000)]
Peer review.
Tatsuo Ishii [Fri, 6 Aug 2010 05:51:27 +0000 (05:51 +0000)]
Add frontend connection status data to pcp_proc_info.
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.
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.
Tatsuo Ishii [Thu, 5 Aug 2010 08:10:57 +0000 (08:10 +0000)]
Remove debug line.
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.
Tatsuo Ishii [Thu, 5 Aug 2010 03:10:00 +0000 (03:10 +0000)]
Add backend pid to pcp_proc_info.
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.
Tatsuo Ishii [Thu, 5 Aug 2010 03:03:53 +0000 (03:03 +0000)]
Tweak debug statement
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.
Toshihiro Kitagawa [Wed, 4 Aug 2010 02:58:38 +0000 (02:58 +0000)]
Remove unused codes.
Toshihiro Kitagawa [Tue, 3 Aug 2010 09:01:41 +0000 (09:01 +0000)]
Fix typo in help message.
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...
Toshihiro Kitagawa [Tue, 3 Aug 2010 06:37:18 +0000 (06:37 +0000)]
Remove unused codes.
Tatsuo Ishii [Tue, 3 Aug 2010 01:43:52 +0000 (01:43 +0000)]
Refactor main() to use pool_coninfo_size and pool_coninfo.
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.
Tatsuo Ishii [Tue, 3 Aug 2010 01:21:28 +0000 (01:21 +0000)]
Add debug info.
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.
Toshihiro Kitagawa [Mon, 2 Aug 2010 10:06:16 +0000 (10:06 +0000)]
Fix compiler warning.
Toshihiro Kitagawa [Mon, 2 Aug 2010 09:13:26 +0000 (09:13 +0000)]
Fix possible crash by using unset pool_memory.
Toshihiro Kitagawa [Mon, 2 Aug 2010 02:29:22 +0000 (02:29 +0000)]
Fix log level to DEBUG when pending object was NULL.
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.
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.
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.
Toshihiro Kitagawa [Thu, 29 Jul 2010 00:29:49 +0000 (00:29 +0000)]
Remove // comments.
Toshihiro Kitagawa [Thu, 29 Jul 2010 00:05:45 +0000 (00:05 +0000)]
More updation.
Toshihiro Kitagawa [Wed, 28 Jul 2010 11:34:40 +0000 (11:34 +0000)]
More updation.
Tatsuo Ishii [Wed, 28 Jul 2010 08:36:08 +0000 (08:36 +0000)]
More updation.
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.
Tatsuo Ishii [Tue, 27 Jul 2010 23:24:08 +0000 (23:24 +0000)]
More doc updation for 3.0.