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.
Tatsuo Ishii [Mon, 26 Jul 2010 12:48:05 +0000 (12:48 +0000)]
More updation...
Tatsuo Ishii [Mon, 26 Jul 2010 09:52:38 +0000 (09:52 +0000)]
Fix reset_backend. Check if backend is valid.
Tatsuo Ishii [Mon, 26 Jul 2010 07:56:13 +0000 (07:56 +0000)]
More working in progress updation.
Cosmetic changes (h3, 4 etc. -> h1)
Add more description to master/slave+streaming rep.
Toshihiro Kitagawa [Mon, 26 Jul 2010 05:27:02 +0000 (05:27 +0000)]
Fix typo.
Update release note ver.3.0.
Tatsuo Ishii [Mon, 26 Jul 2010 02:52:04 +0000 (02:52 +0000)]
Work in progress docs update for pgpool-II 3.0.
Tatsuo Ishii [Mon, 26 Jul 2010 00:23:38 +0000 (00:23 +0000)]
Fix pool_passwd handling. It broke pass to config file, and caused
reload config failure.
Tatsuo Ishii [Sun, 25 Jul 2010 08:17:59 +0000 (08:17 +0000)]
Fix pool_init_process_context(). It forgot to set process id (not UNIX
pid).
Tatsuo Ishii [Fri, 23 Jul 2010 09:40:19 +0000 (09:40 +0000)]
Allow to online recovery standby node in streaming replication
mode. Primary node is not allowed, however.
Tatsuo Ishii [Fri, 23 Jul 2010 09:38:55 +0000 (09:38 +0000)]
Destroy session context at the end of session.
Tatsuo Ishii [Fri, 23 Jul 2010 06:54:34 +0000 (06:54 +0000)]
Fix do_query so that 0 out malloced area. Without this,
subsequent call to free_select_result(res) cause invalid
free() call.
Tatsuo Ishii [Fri, 23 Jul 2010 06:22:34 +0000 (06:22 +0000)]
Fix in case of health_check period is 0.
Tatsuo Ishii [Fri, 23 Jul 2010 06:08:33 +0000 (06:08 +0000)]
Add reset_context flag to session context.
This is to be called while executing reset queries.
Fix SimpleQuery so that if function call is executed under
dummy query context.
Tatsuo Ishii [Fri, 23 Jul 2010 06:04:17 +0000 (06:04 +0000)]
Add new function pool_session_context_destroy, which destorys
session context.
Shoould be called at the end of session.
For now it is just called at the very beginning of session.
Also it needs more work to release memory.
Toshihiro Kitagawa [Fri, 23 Jul 2010 05:40:15 +0000 (05:40 +0000)]
Fix pool_init_session_context so that it set query_context to NULL.
Toshihiro Kitagawa [Fri, 23 Jul 2010 04:57:15 +0000 (04:57 +0000)]
Fix read_kind_from_backend so that it check query_context exist.
Toshihiro Kitagawa [Thu, 22 Jul 2010 08:50:51 +0000 (08:50 +0000)]
Fix segmentation fault when executed JDBC test suite.
Tatsuo Ishii [Thu, 22 Jul 2010 05:50:03 +0000 (05:50 +0000)]
Fix SimpleQuery. If query is rewritten by timestamp, query string and
its length was not consistent.
Tatsuo Ishii [Thu, 22 Jul 2010 04:24:34 +0000 (04:24 +0000)]
Add failover_if_affected_tuples_mismatch which trigger when
number of affcted tuples by UPDATE/DELETE.
Toshihiro Kitagawa [Wed, 21 Jul 2010 12:16:20 +0000 (12:16 +0000)]
Fix hungup when executed regression test.
Toshihiro Kitagawa [Wed, 21 Jul 2010 10:08:22 +0000 (10:08 +0000)]
Fix hungup when executed Copy from stdin.
Toshihiro Kitagawa [Wed, 21 Jul 2010 08:01:58 +0000 (08:01 +0000)]
Fix CommandComplete so that it doesn't crash when executing DEALLOCATE
in Simple query protocol.
Toshihiro Kitagawa [Wed, 21 Jul 2010 07:08:07 +0000 (07:08 +0000)]
Merge Revision 1.59.
Tatsuo Ishii [Wed, 21 Jul 2010 07:05:27 +0000 (07:05 +0000)]
Fix hungup when simple error query issued.
Toshihiro Kitagawa [Wed, 21 Jul 2010 05:31:39 +0000 (05:31 +0000)]
Add function parse_before_bind() which is used in Load balance mode.
Add function overwrite_map_for_deallocate() which is used to overwrite
where_ot_send map by a specified query context.
Add length and contents arguments to private functions that process message.
Remove pending_function variable.
Change ReadyForQuery() so that it does not destroy a query context in
extended query protocol.
Refactor following functions.
- Parse()
- Execute()
- ProcessFrontendResponse()
Add private functions that process message.
- Bind()
- Describe()
- Close()
- FunctionCall3()
- ParseComplete()
- BindComplete()
- CloseComplete()
- CommandComplete()
- ErrorResponse3()
Toshihiro Kitagawa [Wed, 21 Jul 2010 05:16:30 +0000 (05:16 +0000)]
Divide a part of pool_process_query() into ProcessBackend().
Divide SimpleForwardToFrontend() into private functions.
Divide SimpleForwardToBackend() into private functions.
send_sync_to_recover() is not used now.
Toshihiro Kitagawa [Wed, 21 Jul 2010 05:06:42 +0000 (05:06 +0000)]
Fix bug that did not clear a list at pool_clear_prepared_statement_list().
Fix bug that change state of query_in_progres flag at
pool_remove_prepared_statement_by_pstmt_name().
Change variables of list so that they are not pointer.
Change pool_create_prepared_statement() so that it does not copy a query context.
Remove pending_function variable.
Move static functions to the end.
Add length variable and contents variable to PreparedStatement structure.
These variables hold the contents of Parse message.
Add following flags.
- doing_extended_query_message
- ignore_till_sync
- pool_status_stmt