Bo Peng [Fri, 19 Oct 2018 02:33:49 +0000 (11:33 +0900)]
Some changes to SPEC file.
Bo Peng [Fri, 19 Oct 2018 01:01:58 +0000 (10:01 +0900)]
Some changes to SPEC file.
Bo Peng [Fri, 19 Oct 2018 00:53:25 +0000 (09:53 +0900)]
Some changes to release-note.
Bo Peng [Thu, 18 Oct 2018 09:12:24 +0000 (18:12 +0900)]
Fix syntax error in native replication, when queries including now() etc. and "IN (SELECT ...)" in WHERE clause.
In native replication, queries including now() etc. are rewritten to a timestamp constant value.
However, Pgpool-II didn't support queries including now() etc. and "IN (SELECT ...)" in WHERE clause.
Per bug433.
Bo Peng [Thu, 18 Oct 2018 09:05:47 +0000 (18:05 +0900)]
Fix docuemnt typos and update release date.
Bo Peng [Thu, 18 Oct 2018 08:51:13 +0000 (17:51 +0900)]
Change pgpool.spec file to install extension to server which supports LLVM JIT.
Tatsuo Ishii [Fri, 12 Oct 2018 04:52:57 +0000 (13:52 +0900)]
Fix occasional less data returned to frontend.
While piggy-packing queries to system catalog data,
pool_push_pending_data() is responsible for pushing response from
backend. To judge whether pending data remains or not, it checks
socket fd of backend and dummy close message response (close
complete). Problem is, if the socket is not ready and accidentally
actual (non dummy) close message response is returned,
pool_push_pending_data() believes that there's no pending data any
more. As a result, some of pending data is not recovered after
returning to normal process.
The idea for fix is, use pending message data list. It records
messages from frontend, and it is expected that we will receive same
number of messages (or more -- e.g. execute message). So we can use
the data to make above judgment more robust for the case described
above.
Initial patch is created by Yugo Nagata. Fix to the patch for certain
cases by me.
See:
https://www.pgpool.net/mantisbt/view.php?id=432
for more details.
Tatsuo Ishii [Thu, 11 Oct 2018 08:52:57 +0000 (17:52 +0900)]
Fix memory leak when query cache enabled in streaming replication mode + extended query case.
If BEGIN is executed in extended protocol, allocated temp buffer for
the command never discarded. This is because in streaming replication
mode + extended query case, when handle_query_cache gets called at the
command complete timing, the reference counter to query context is not
0, which in turn prevents from calling
pool_discard_temp_query_cache().
In reality, we don't need to care about the query context here, so
let's proceed in streaming replication mode + extended query case.
Note that the memory leak case can be easily reproduced by "pgbench -M
extended" command (standard TPC-B).
Tatsuo Ishii [Wed, 10 Oct 2018 04:05:39 +0000 (13:05 +0900)]
doc: add note to online recovery doc.
This warns that client_idle_limit_in_recovery must be smaller than
recovery_timeout.
Tatsuo Ishii [Tue, 9 Oct 2018 08:56:31 +0000 (17:56 +0900)]
Add "log_client_messages = on" to pursue occasional failure of 065 test.
Sometimes it fails with:
Exception in thread "main" org.postgresql.util.PSQLException: ResultSet not positioned properly, perhaps you need to call next.
at org.postgresql.jdbc.PgResultSet.checkResultSet(PgResultSet.java:2789)
at org.postgresql.jdbc.PgResultSet.getString(PgResultSet.java:1887)
at Main.main(Main.java:26)
Tatsuo Ishii [Tue, 9 Oct 2018 08:37:25 +0000 (17:37 +0900)]
Fix memory leak pointed out by Coverity.
Tatsuo Ishii [Tue, 9 Oct 2018 04:49:49 +0000 (13:49 +0900)]
Fix memory leak in trigger_failover_command.
Pointed out by Coverity.
Tatsuo Ishii [Tue, 9 Oct 2018 01:47:24 +0000 (10:47 +0900)]
Allow to handle beta or rc version.
pgpool_setup failed to extract major version number if it includes non
numeric characters.
Bo Peng [Tue, 9 Oct 2018 00:20:39 +0000 (09:20 +0900)]
Fix memory leak when memory_cache_enabled = on and write SQLs are sent.
In a explicit transaction, we the SELECT results are cached in temporary buffer.
If a write SQL is sent which modifies the table, the temporary buffe should be reset.
Tatsuo Ishii [Mon, 8 Oct 2018 22:50:03 +0000 (07:50 +0900)]
Fix occasional failure in regression 065.bug152.
In the test first create a table with some data, then query
it. However sometimes it seems replication delay causes the table
still not ready in standby. Since there's no reason we need to a
standby or slave for this particular test, let the test have only
primary/master.
Tatsuo Ishii [Fri, 5 Oct 2018 22:17:16 +0000 (07:17 +0900)]
Fix comment broken by pgindent.
Tatsuo Ishii [Fri, 5 Oct 2018 22:12:50 +0000 (07:12 +0900)]
Revert "Fix comment broken by pgindent."
This reverts commit
228b20e43e7d719bb4acc5dc03e7c521f0099f3b.
Tatsuo Ishii [Fri, 5 Oct 2018 12:49:22 +0000 (21:49 +0900)]
Fix comment broken by pgindent.
Tatsuo Ishii [Fri, 5 Oct 2018 08:38:47 +0000 (17:38 +0900)]
Add "log_client_messages = on" to know more detailed info.
We see occasional failure of the test. To know what's going on, the
new parameter in 4.0 should help a lot.
Tatsuo Ishii [Fri, 5 Oct 2018 02:10:08 +0000 (11:10 +0900)]
Fix memory leak pointed out by 2018/10/5 Coverity scan.
While processing command complete message in extended query/streaming
replication mode, failure to read from socket leads to memory leak.
Tatsuo Ishii [Thu, 4 Oct 2018 22:56:57 +0000 (07:56 +0900)]
Fix some coverity warnings.
CommandComplete.c: fix memory leak
pool_memqcache.c: fix access to already freed data
Tatsuo Ishii [Thu, 4 Oct 2018 04:29:08 +0000 (13:29 +0900)]
Fix regression test 024 failure.
The generated SSL auth files, at least key files needed to be set
permissions to 600.
Bo Peng [Wed, 3 Oct 2018 02:46:54 +0000 (11:46 +0900)]
Fix document typo.
Tatsuo Ishii [Sat, 29 Sep 2018 13:13:05 +0000 (22:13 +0900)]
Try to fix regression test 024 failure.
It seems the valid period of root cert is default to now.
Set it to from now to 1 year after. See if this works.
Tatsuo Ishii [Fri, 28 Sep 2018 08:59:51 +0000 (17:59 +0900)]
Add cert authentication test.
Tatsuo Ishii [Mon, 24 Sep 2018 07:25:06 +0000 (16:25 +0900)]
Fix to add execution permission.
The regression 071 script lacked execution permission.
Bo Peng [Fri, 21 Sep 2018 08:32:30 +0000 (17:32 +0900)]
Add EXECUTE/DEALLOCATE regression test.
Patch created by Takuma Hoshiai.
Bo Peng [Wed, 19 Sep 2018 06:06:50 +0000 (15:06 +0900)]
Enable AM_MAINTAINER_MODE for master branch.
Bo Peng [Wed, 19 Sep 2018 04:10:40 +0000 (13:10 +0900)]
Update pgpool.spec.
Bo Peng [Wed, 19 Sep 2018 03:57:46 +0000 (12:57 +0900)]
Fix typos.
Bo Peng [Wed, 19 Sep 2018 03:50:38 +0000 (12:50 +0900)]
Change Makefile of pgpool_recovery.
Bo Peng [Wed, 19 Sep 2018 03:31:17 +0000 (12:31 +0900)]
Prepare 4.0beta1.
Bo Peng [Wed, 19 Sep 2018 03:09:26 +0000 (12:09 +0900)]
Update pgpool.spec file.
Bo Peng [Wed, 19 Sep 2018 03:07:49 +0000 (12:07 +0900)]
Some changes to 4.0 release-note and update release-note version.
Takuma Hoshiai [Wed, 19 Sep 2018 00:57:51 +0000 (09:57 +0900)]
Doc: Add Japanese release-note for Pgpool-II 4.0, and change some documents about authentication.
Bo Peng [Wed, 19 Sep 2018 00:39:04 +0000 (09:39 +0900)]
Disable AM_MAINTAINER_MODE.
Bo Peng [Wed, 19 Sep 2018 00:25:31 +0000 (09:25 +0900)]
Add missing pgpool_recovery--1.0--1.1.sql file to update pgpool_recovery() function version to 1.1.
Bo Peng [Tue, 18 Sep 2018 03:27:45 +0000 (12:27 +0900)]
Add pgpool_recovery--1.1--1.2.sql file to update pgpool_recovery() function version.
Bo Peng [Thu, 13 Sep 2018 08:30:58 +0000 (17:30 +0900)]
Fix kind mismatch error when DEALLOCATE statement is issued.
PREPARE should be add to pool_add_sent_message, so that EXECUTE and DEALLOCATE
can be sent to the same node as PREPARE.
See [pgpool-general: 6226] for more details.
Tatsuo Ishii [Thu, 13 Sep 2018 06:02:03 +0000 (15:02 +0900)]
Downgrade warning to debug5 when AES/PLAIN password not found in pool_passwd.
When health_check_password etc. is an empty string, Pgpool-II tries to
fetch AES/PLAIN password in pool_passwd. If other type of password
entry (actually it must be MD5), it warned it. However this is normal
setting till 3.7. Moreover, every time health check or streaming
replication delay check run, it emits the waring and the log file was
filled up with the message.
Solution is, downgrade the message to DEBUG5. Also add password type to
the message.
Bo Peng [Mon, 10 Sep 2018 02:56:18 +0000 (11:56 +0900)]
Add missing src/parser/scan.c file.
Tatsuo Ishii [Mon, 10 Sep 2018 02:06:15 +0000 (11:06 +0900)]
Fix buildfarm error of 023.ssl_connection.
It seems CentOS6/7 recognizes "localhost" as IPv6 ::1.
2018-09-08 17:04:06: pid 21508: DETAIL: no pg_hba.conf entry for host "::1", user "postgres", database "postgres", SSL on
So add following line to pg_hba.conf.
host all all ::1/128 trust
Let's see if buildfarm still complains.
Bo Peng [Thu, 6 Sep 2018 09:00:49 +0000 (18:00 +0900)]
Prepare 4.0alpha2.
Bo Peng [Thu, 6 Sep 2018 08:57:32 +0000 (17:57 +0900)]
Add some changes to 4.0 english release note.
Bo Peng [Thu, 6 Sep 2018 08:12:37 +0000 (17:12 +0900)]
Add japanese docs for changes about client authentication, and fix some doc typos.
Patch provided by Takuma Hoshiai.
Muhammad Usama [Wed, 5 Sep 2018 06:55:00 +0000 (11:55 +0500)]
Fix for
0000428: Secure TCP/IP Connections with SSL...
check for empty string in pool_config->ssl_ca_cert before
trying to load root certificates
Bo Peng [Wed, 5 Sep 2018 05:19:57 +0000 (14:19 +0900)]
Add "Migration to Version 4.0" section to releasenote.
Muhammad Usama [Tue, 4 Sep 2018 16:01:26 +0000 (21:01 +0500)]
Miscellaneous fixes in the area of SCRAM authentication.
The commit takes care of resource leak warnings reported by coverity
in the authentication module of Pgpool-II, Apart from doing the individual
resource leak fixes I have made the authentication system to use the temporary
memory context which gets deleted after the authentication is done.
In addition to the memory related fixes the commit also contains the following.
-- TEXT prefix support for specifying plain text passwords in configuration
and pool_passwd file.
-- Documentation updates to use plain text passwords with TEXT prefix.
-- Fix for
0000427: pg_enc emits wrong warnings
-- Fix for
0000426: Pgpool-II contines to emit warning messages
Bo Peng [Thu, 30 Aug 2018 00:41:31 +0000 (09:41 +0900)]
Add missing gram.c by previous commit.
Tatsuo Ishii [Wed, 29 Aug 2018 02:58:36 +0000 (11:58 +0900)]
Add regression test for SSL connection.
This tests SSL connection between frontend <--> Pgpool-II and
Pgpool-II <--> backend.
Bo Peng [Tue, 28 Aug 2018 09:20:07 +0000 (18:20 +0900)]
Import PostgreSQL 11 beta3 parser.
Tatsuo Ishii [Thu, 23 Aug 2018 12:12:29 +0000 (21:12 +0900)]
Unbreak pgpool_setup and regression tests against pre-10 PostgreSQL.
Commit
26446126f36dcd34ea9032ac934aafe63acc0eee broke pgpool_setup and
regression tests against pre-10 PostgreSQL because they unconditionally
use feature introduced in PostgreSQL 10, i.e. SCRAM authentication. To
fix this, check PostgreSQL version using initdb -v and not use
PostgreSQL 10 specific feature if PostgreSQL 9.6 or earlier is used.
In this case regression tests 020, 021 and 022 always success.
Tatsuo Ishii [Wed, 22 Aug 2018 07:09:19 +0000 (16:09 +0900)]
Update copyright year.
Tatsuo Ishii [Wed, 22 Aug 2018 07:01:21 +0000 (16:01 +0900)]
Add notes regarding failover script.
It's not recommended to access against Pgpool-II itself from
failover/failback scripts.
Tatsuo Ishii [Wed, 22 Aug 2018 04:24:08 +0000 (13:24 +0900)]
Fix memory leak and typo in comments.
Tatsuo Ishii [Tue, 21 Aug 2018 08:33:52 +0000 (17:33 +0900)]
Fix memory leak pointed out by Coverity.
Bo Peng [Mon, 20 Aug 2018 08:06:35 +0000 (17:06 +0900)]
Add missing new file to previous commit.
Bo Peng [Mon, 20 Aug 2018 08:04:45 +0000 (17:04 +0900)]
Move pgproto header files to "include/pgproto".
Bo Peng [Mon, 20 Aug 2018 08:00:55 +0000 (17:00 +0900)]
Change test file name to avoid make dist error due to too long file name.
Bo Peng [Mon, 20 Aug 2018 07:25:20 +0000 (16:25 +0900)]
Change distdir to include new files.
Bo Peng [Mon, 20 Aug 2018 05:36:43 +0000 (14:36 +0900)]
Prepare 4.0alpha1.
Bo Peng [Mon, 20 Aug 2018 05:13:29 +0000 (14:13 +0900)]
Change follow_master_command description new master -> new primary.
Bo Peng [Mon, 20 Aug 2018 05:07:08 +0000 (14:07 +0900)]
Improve 4.0 release note.
Bo Peng [Mon, 20 Aug 2018 04:49:44 +0000 (13:49 +0900)]
Add .gitignore to doc and doc.ja.
Bo Peng [Mon, 20 Aug 2018 04:43:06 +0000 (13:43 +0900)]
Add .gitignore to pgenc and pgproto.
Patch provided by Jesper Pedersen.
Muhammad Usama [Sun, 19 Aug 2018 10:18:23 +0000 (15:18 +0500)]
Some document updates for SCRAM authentication feature
Patch contributed by Jesper Pedersen <jesper.pedersen@redhat.com>
against SCRAM branch and updated by me against master
Muhammad Usama [Sun, 19 Aug 2018 09:46:49 +0000 (14:46 +0500)]
Use failover instead of fail-over pr fail_over
Fix mistakes where "fail_over" and "fail-over" were used instead of the
"failover". And that also includes a wrongly spelled configuration parameter
"fail_over_on_backend_error",
Now we throw a warning message when old config name fail_over_on_backend_error
is used instead of failover_on_backend_error,
Using the old config variable name will have no effect.
Tatsuo Ishii [Fri, 17 Aug 2018 08:23:14 +0000 (17:23 +0900)]
Run pgindent.
Fix and unify indentation by using PostgreSQL 11's pgindent command.
Tatsuo Ishii [Fri, 17 Aug 2018 04:29:54 +0000 (13:29 +0900)]
Deal with pgindent.
Bo Peng [Fri, 17 Aug 2018 05:44:05 +0000 (14:44 +0900)]
Add Pgpool-II 4.0 release note.
Bo Peng [Fri, 17 Aug 2018 03:06:38 +0000 (12:06 +0900)]
Fix test directory name typos.
Bo Peng [Fri, 17 Aug 2018 02:56:52 +0000 (11:56 +0900)]
Add pgproto to Pgpool-II.
Now by installing pgpool, pgproto will also be installed.
Patch provided by Takuma Hoshiai.
Muhammad Usama [Thu, 16 Aug 2018 16:34:32 +0000 (21:34 +0500)]
Feature: Add SCRAM and Certificate authentication support
New feature to add scram and cert authentication method support in Pgpool-II.
Apart from supporting the new authentication methods the commit also includes
the following enhancements and changes in the authentication framework
of Pgpool-II
Different auth methods for frontend and backend for user session
================================================================
Now it possible to use different authentication method for client
application and backend PostgreSQL servers.
For example, a client application can use scram-sha-256 to connect to Pgpool-II
which in turn can use trust or md5 authentication to connect to
PostgreSQL backend for the same session.
Use MD5 and SCRAM without pool_passwd
=====================================
New configuration parameter allow_clear_text_frontend_auth, enables the Pgpool-II
to use clear-text-password authentication with frontend clients when pool_passwd
file does not contains the password for the connecting user.
For example: suppose PostgreSQL servers has a user named "some_user" which can
connect to database using SCRAM authentication, Now for this "some_user" to
connect to PostgreSQL using SCRAM through Pgpool-II we must have the some_user's
password stored in the pool_passwd file, but if in some case when pool_passwd does
not have the entry of "some_user" and allow_clear_text_frontend_auth is enabled
in the pgpool.conf then Pgpool-II will ask the connecting frontend to use
clear-text-password auth method for authentication, and after receiving the
password from the client, Pgpool-II will use that password to authenticate with
backend using the required SCRAM auth.
Note: allow_clear_text_frontend_auth only works when pool_hba.conf is not enabled.
Encrypted passwords in pool_passwd file
=======================================
Since the SCRAM authentication method explicitly guards against the
man-in-middle type attacks, so to use such authentication methods Pgpool-II
requires the PostgreSQL user password to authenticate with the backend.
But as storing the clear text password in the "pool_passwd" file is never a good
idea, so now you can store the AES256-CBC encrypted password in the "pool_passwd".
To store the AES encrypted password in the "pool_passwd" the password is first
encrypted using the AES256 encryption with the user provided key and then the
encrypted password is base64 encoded and AES prefix is added to
the encoded string.
New pg_enc utility to create encrypted passwords
================================================
A new utility pg_enc is added to create AES encrypted passwords. The utility
works similar in most ways as pg_md5 utility, with a some small differences,
pg_enc also requires the key for encrypting the password entries. later that
same key is required by Pgpool-II to decrypt the passwords to be used for
authentication.
Note: Pgpool-II must be build with ssl (--with-openssl) support to use
this encrypted password feature.
Providing encryption key to Pgpool-II
=====================================
If you have AES encrypted passwords stored in the pool_passwd file, then
Pgpool-II will require the decryption key to decrypt the passwords before
using them, Pgpool-II tries to read the decryption key at startup from
the pgpoolkey file.
By default the Pgpool-II will look for the pgpoolkey file in user's home
directory or the file referenced by environment variable PGPOOLKEYFILE.
You can also specify the key file using the (-k, --key-file=KEY_FILE)
command line argument to the Pgpool-II binary.
Encrypted Passwords in pgpool.conf
==================================
The commit also allows to specify the AES encrypted password in the pgpool.conf
file for healh_check_user, sr_check_user, wd_lifecheck_user and recovery_user
users, Additionally if the password field for any of these users is left blank
in pgpool conf then Pgpool-II will first try to get the password for that user
from pool_passwd file before using the empty password for the connection.
So now pgpool.conf can be made password free and single pool_passwd file can be
used to store all passwords for internal and external user connection
Documentation updates and regression test cases for the
feature are also part of the commit.
Thanks to jesperpedersen <jesper.pedersen@redhat.com> for helping
in documentation and testing for the feature
Tatsuo Ishii [Thu, 16 Aug 2018 06:38:33 +0000 (15:38 +0900)]
Fix too small buffer size in some configuration file process.
This was found by newer version of gcc warnings.
pool_config_variables.c: In function ‘BackendFlagsShowFunc’:
pool_config_variables.c:3809:57: warning: ‘__builtin_snprintf’ output truncated before the last format character [-Wformat-truncation=]
snprintf(buffer, sizeof(buffer), "DISALLOW_TO_FAILOVER");
^
In file included from /usr/include/stdio.h:862:0,
from pool_config_variables.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:64:10: note: ‘__builtin_snprintf’ output 21 bytes into a destination of size 20
return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
__bos (__s), __fmt, __va_arg_pack ());
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bo Peng [Wed, 15 Aug 2018 00:13:11 +0000 (09:13 +0900)]
Improve documetation about "black_query_pattern_list".
Bo Peng [Tue, 14 Aug 2018 13:43:49 +0000 (22:43 +0900)]
Improve pg_md5 docs and error message.
Patch provided by Jesper Pedersen and modified by me.
Bo Peng [Fri, 10 Aug 2018 09:12:45 +0000 (18:12 +0900)]
Fix that if the last character of black_query_pattern_list is not ";",
the last SQL pattern was ignored.
Now wether or not the last character ";" exists, the SQL patterns
will be correctly handled.
Bo Peng [Fri, 10 Aug 2018 06:22:49 +0000 (15:22 +0900)]
Fix document example errors about "black_query_pattern_list".
Bo Peng [Fri, 10 Aug 2018 05:02:21 +0000 (14:02 +0900)]
Add some comments about performance to "black_query_pattern_list" docs.
Bo Peng [Fri, 10 Aug 2018 04:16:02 +0000 (13:16 +0900)]
Add definition of PGLIB in regress.sh.
Patch provided by Jesper Pedersen.
Bo Peng [Fri, 10 Aug 2018 03:40:10 +0000 (12:40 +0900)]
Update clean.sh which clean up regression test results.
Patch provided by Jesper Pedersen.
Bo Peng [Fri, 10 Aug 2018 03:34:32 +0000 (12:34 +0900)]
Add .gitignore files.
Patch provided by Jesper Pedersen.
Tatsuo Ishii [Thu, 9 Aug 2018 05:01:35 +0000 (14:01 +0900)]
Update expected data to adopt the lastest version of pgproto.
Bo Peng [Wed, 8 Aug 2018 03:42:13 +0000 (12:42 +0900)]
Fix regression test 008.dbredirect error.
Bo Peng [Tue, 7 Aug 2018 01:07:24 +0000 (10:07 +0900)]
Feature: allow to specify load balance weight ratio for load balance parameters.
Add a new feature to allow to specify load balance weight ratio for
"database_redirect_preference_list" and "app_name_redirect_preference_list"
parameters.
You can specify the list of "database-name:node id(ratio)" pairs to
send SELECT queries to a particular backend node for a particular
database connection at a specified load balance ratio.
Also you can specify list of "application-name:node id(ratio)" pairs to
send SELECT queries to a particular backend node for a particular client
application connection at a specified load balance ratio.
This load balance ratio specifies a value between 0 and 1,
and the default is 1.0.
For example, by specifying "database_redirect_preference_list = 'test:1(0.5)'",
Pgpool-II will redirect 50% SELECT queries to the backend node of ID 1
for the connection to "test" database. And the other 50% SELECT queries
will be sent to other backend nodes.
Tatsuo Ishii [Sun, 5 Aug 2018 01:54:18 +0000 (10:54 +0900)]
Fix segfault when node 0 is in down status.
MASTER_CONNECTION refers to the connection to "master"
node. "Master" means the first live backend appearing in
pgpool.conf. The master node is determined at the time of fail over.
Unfortunately with both health check and fail_over_on_backend_error
are disabled, there's no chance of failover, which means the master
node id is remained the default value 0. So the MASTER_CONNECTION
refers to the node 0, and the connection is NULL.
Fix is as follows.
If attempt to connection to backend fails, check the master node id in
the shared memory. If the master node id is the failed node, then
look for new master node using get_next_master_node (this was a static
function, but now it's made to public) and set the node id to the
master node id in the shared memory area.
Problem reported by Muhammad Usama in [pgpool-hackers: 2905].
Tatsuo Ishii [Fri, 3 Aug 2018 02:09:30 +0000 (11:09 +0900)]
Fix typos in documents and scripts.
Patch contributed by Jesper Pedersen.
Tatsuo Ishii [Thu, 2 Aug 2018 00:39:33 +0000 (09:39 +0900)]
Fix redundant messages in log_client_messages.
Patch contributed by Takuma Hoshiai.
Tatsuo Ishii [Wed, 1 Aug 2018 07:42:46 +0000 (16:42 +0900)]
Fix redundant messages when log_client_messages is enabled.
Also add missing test files in the previous commit.
Patch contributed by Takuma Hoshiai.
Tatsuo Ishii [Tue, 31 Jul 2018 01:16:10 +0000 (10:16 +0900)]
Fix compiler error if HAVE_ASPRINTF is not defined.
Tatsuo Ishii [Tue, 31 Jul 2018 01:13:53 +0000 (10:13 +0900)]
Fix badly formatted comment out line.
Tatsuo Ishii [Tue, 31 Jul 2018 01:10:26 +0000 (10:10 +0900)]
Fix configure.ac to remove generating src/sql/pgpool_adm/Makefile.in.
Along with newer autoconf generated files.
Tatsuo Ishii [Tue, 31 Jul 2018 00:49:37 +0000 (09:49 +0900)]
Remove unnecessary files.
Tatsuo Ishii [Tue, 31 Jul 2018 00:38:37 +0000 (09:38 +0900)]
Add missing last newline.
I have found this while playing with pgindent. It is smart enough to
find out such problems.
Bo Peng [Tue, 31 Jul 2018 00:02:15 +0000 (09:02 +0900)]
Add release-notes 3.3.22-3.7.5.
Tatsuo Ishii [Fri, 27 Jul 2018 08:35:41 +0000 (17:35 +0900)]
Add new log_client_messages directive.
This allows to log messages from frontend.
Note that the regression test for this (019.log_client_messages)
requires pgproto command. We will eventually import pgproto in the
future but for now we just check the existence of pgproto in
019.log_client_messages/test.sh. If pgproto does not exist in the
command search pass, just skip the test with "ok" status.
Patch contributed by Takuma Hoshiai.
Bo Peng [Tue, 24 Jul 2018 04:45:11 +0000 (13:45 +0900)]
Fix document typos.
Patch provided by Takuma Hoshiai.
Bo Peng [Tue, 24 Jul 2018 00:05:53 +0000 (09:05 +0900)]
Fix document typo.
Tatsuo Ishii [Fri, 13 Jul 2018 08:36:00 +0000 (17:36 +0900)]
Fix accessing already freed data in extended query.
When previous_message was set and accessed later on, it looked into
already freed data. This is because read_kind_from_backend() set the
pointer to the previous message in session context, and then released
the memory at the end of the function. No report from fields so far. I
just found this while testing Pgpool-II.
To fix this, store the previous message in the session context, rather
than storing the pointer. Also have a flag in the session context to
indicate whether a previous message is actually stored or not.
All the API for previous message has not been changed.
Tatsuo Ishii [Wed, 11 Jul 2018 01:16:07 +0000 (10:16 +0900)]
Try to reduce the chance of regression 006.memcache failure.
It seems the occasional failure of the test is caused by replication
lag. The script tries to read tables from standby but it returns a
table not existing error. So insert pg_sleep() after creation of
tables.