]> granicus.if.org Git - pgbouncer/log
pgbouncer
4 years agov1.12.0 master pgbouncer_1_12_0
Peter Eisentraut [Thu, 17 Oct 2019 07:07:26 +0000 (09:07 +0200)]
v1.12.0

4 years agoBump libusual
Peter Eisentraut [Thu, 17 Oct 2019 06:32:27 +0000 (08:32 +0200)]
Bump libusual

4 years agoFix some scan-build warnings
Peter Eisentraut [Wed, 16 Oct 2019 21:23:10 +0000 (23:23 +0200)]
Fix some scan-build warnings

4 years agoUpdate website URL
Peter Eisentraut [Wed, 16 Oct 2019 14:15:07 +0000 (16:15 +0200)]
Update website URL

4 years agoDocumentation proof reading and copy editing
Peter Eisentraut [Wed, 9 Oct 2019 14:50:40 +0000 (16:50 +0200)]
Documentation proof reading and copy editing

4 years agoFix test_server_login_retry stability
Peter Eisentraut [Mon, 7 Oct 2019 20:02:08 +0000 (22:02 +0200)]
Fix test_server_login_retry stability

The problem is that server_login_retry is only applied when the
backend server is down, but not when it returns an error upon
connection (e.g., authentication error).  In that case, the client
sees the error immediately.  Be that as it may, it breaks this test
sometimes, if a retry attempt hits the window where the server reports
"database is starting up".  (This window should be tiny since no
notable recovery should be happening here, but it happens.)  To fix,
adjust the settings so that the retries happen well away from the
backend server startup phase.

4 years agoAccept SCRAM channel binding enabled clients
Peter Eisentraut [Wed, 2 Oct 2019 20:26:45 +0000 (22:26 +0200)]
Accept SCRAM channel binding enabled clients

Add support to the SCRAM exchange for clients that support channel
binding, such as PostgreSQL version 11 and beyond.  If such a client
encounters a PgBouncer server that does not support channel binding,
it will send a channel binding flag 'y', meaning the client supports
channel binding but thinks the server does not.  But PgBouncer
erroneously did not accept that flag.  This would cause connections to
fail if a PostgreSQL version 11 client connects to a PgBouncer with
SCRAM authentication over SSL.

adapted from PostgreSQL 218b024a7ec866ec62abb5c2fb4eb9108bb5fc0f

Reported-by: Andrew Dunstan
4 years agoImprove fast-fail code comments and debug logging
Peter Eisentraut [Sun, 29 Sep 2019 09:07:47 +0000 (11:07 +0200)]
Improve fast-fail code comments and debug logging

no changes in functionality

4 years agoAdd resolv_conf option to set custom resolv.conf file
Peter Eisentraut [Fri, 27 Sep 2019 11:56:16 +0000 (13:56 +0200)]
Add resolv_conf option to set custom resolv.conf file

closes #379

4 years agodnslookup: Consistently use log_error during impl_init()
Peter Eisentraut [Fri, 27 Sep 2019 07:30:49 +0000 (09:30 +0200)]
dnslookup: Consistently use log_error during impl_init()

This was done inconsistently between the different backends.  Some
used log_warning() for conditions that would ultimately be fatal.

4 years agoFix inappropriate uses of fatal_perror()
Peter Eisentraut [Fri, 27 Sep 2019 07:23:18 +0000 (09:23 +0200)]
Fix inappropriate uses of fatal_perror()

Use just fatal() instead when errno is not being set.

4 years agoFix terminology
Peter Eisentraut [Thu, 26 Sep 2019 19:37:27 +0000 (21:37 +0200)]
Fix terminology

PAM is authentication, not authorization.

4 years agoRemove slightly outdated comment
Peter Eisentraut [Thu, 26 Sep 2019 19:16:42 +0000 (21:16 +0200)]
Remove slightly outdated comment

We don't need to keep the list of DNS backends here, we already have
that documented elsewhere.

4 years agoClean up configure help strings
Peter Eisentraut [Thu, 26 Sep 2019 06:58:01 +0000 (08:58 +0200)]
Clean up configure help strings

Make the style consistent with the built-in help strings.

4 years agoFix small markup issue
Peter Eisentraut [Mon, 23 Sep 2019 20:17:33 +0000 (22:17 +0200)]
Fix small markup issue

<foo> is a URL in Markdown, so this was misformatted.

4 years agoGive more detailed error messages in tune_socket()
Peter Eisentraut [Mon, 23 Sep 2019 20:14:06 +0000 (22:14 +0200)]
Give more detailed error messages in tune_socket()

Give details on the actual system call that failed, rather than one
generic message for all.  Style similar to add_listen().

These "tune_socket() failed" messages occasionally appear in user
reports, but so far it was difficult to narrow down the issues.

4 years agoAdd so_reuseport option
Peter Eisentraut [Mon, 23 Sep 2019 18:44:49 +0000 (20:44 +0200)]
Add so_reuseport option

Adds an option to specify whether to set the socket option
`SO_REUSEPORT` on TCP listening sockets.  On some operating systems,
this allows running multiple PgBouncer instances on the same host
listening on the same port and having the kernel distribute the
connections automatically.  This option is a way to get PgBouncer to
use more CPU cores.

closes #345

4 years agoReorder suspend_timeout in documentation
Peter Eisentraut [Sun, 15 Sep 2019 07:51:18 +0000 (09:51 +0200)]
Reorder suspend_timeout in documentation

It was grouped differently in the documentation and in the sample
config file.

4 years agoTweak version string
Peter Eisentraut [Thu, 19 Sep 2019 09:34:12 +0000 (11:34 +0200)]
Tweak version string

Use Autoconf's PACKAGE_STRING for the --version and SHOW VERSION
output instead of our own macro.  This changes the output format
slightly, but we might as well change to the standard format while
we're changing around SHOW VERSION.

4 years agoSend SHOW VERSION as row instead of NOTICE
Peter Eisentraut [Thu, 19 Sep 2019 09:27:17 +0000 (11:27 +0200)]
Send SHOW VERSION as row instead of NOTICE

This makes it easier to consume and is consistent with other SHOW
commands.

patch by @eulerto, @davidfetter; documentation and tests by @petere

fixes #254, fixes #258, fixes #321

4 years agoFix test exit status
Peter Eisentraut [Thu, 19 Sep 2019 08:50:41 +0000 (10:50 +0200)]
Fix test exit status

The script was not reporting a total exit status of failure when a
test function would return a non-zero code other than 1.

4 years agoTravis CI: Remove redundant configuration
Peter Eisentraut [Thu, 19 Sep 2019 08:34:35 +0000 (10:34 +0200)]
Travis CI: Remove redundant configuration

Remove --with-openssl variant, since it's the default.

4 years agoFix reporting of adns implementation in configure
Peter Eisentraut [Wed, 18 Sep 2019 07:56:37 +0000 (09:56 +0200)]
Fix reporting of adns implementation in configure

This was slightly broken by 748c83e5d8b05448725ce8a69213ed620a53d431
in the sense that configure would report both, say, c-ares and evdns
as "yes" without indication which one would actually be used.  Clean
that logic up a bit and report the actually used implementation at the
end of configure in a clearer way.  Also improve the documentation in
README.md around this.

Also clean up the build matrix in .travis.yml and remove a redundant
configuration.

4 years agoAutomatically generate debian/changelog
Peter Eisentraut [Sat, 14 Sep 2019 07:03:57 +0000 (09:03 +0200)]
Automatically generate debian/changelog

This avoids another manual step during tarball wrapping.

4 years agoAppVeyor: Build on Windows with -Werror
Peter Eisentraut [Fri, 13 Sep 2019 08:31:24 +0000 (10:31 +0200)]
AppVeyor: Build on Windows with -Werror

4 years agoBump libusual
Peter Eisentraut [Fri, 13 Sep 2019 07:52:11 +0000 (09:52 +0200)]
Bump libusual

4 years agoTravis CI: Use correct apt repository
Peter Eisentraut [Thu, 12 Sep 2019 21:17:43 +0000 (23:17 +0200)]
Travis CI: Use correct apt repository

Change from xenial-pgdg to bionic-pgdg.

4 years agoFix some compiler warnings on Windows 64-bit
Peter Eisentraut [Thu, 12 Sep 2019 18:47:21 +0000 (20:47 +0200)]
Fix some compiler warnings on Windows 64-bit

For event_set() callbacks, use evutil_socket_t instead of int as the
first argument.  This is required for 64-bit Windows; on all other
platforms, the two types are the same.

This requires libevent version 2.

Note that the rest of the socket code still uses int everywhere, so
Windows 64-bit is still probably not going to work correctly.

4 years agoRemove use of libusual event module
Peter Eisentraut [Wed, 11 Sep 2019 08:20:27 +0000 (10:20 +0200)]
Remove use of libusual event module

We use libevent directly now and use pkg-config to look it up.

The libusual event module was from a time when libevent was new and
evolving, but now we don't need it anymore and can use libevent
directly.

4 years agoRemove dubious const qualifiers
Peter Eisentraut [Wed, 11 Sep 2019 10:48:27 +0000 (12:48 +0200)]
Remove dubious const qualifiers

These depend on libusual's redefinition of free(), which we should get
rid of.

see #371

4 years agoRemove support for libevent version 1.x
Peter Eisentraut [Wed, 11 Sep 2019 09:38:57 +0000 (11:38 +0200)]
Remove support for libevent version 1.x

This is long obsolete and stands in the way of some future
improvements.

4 years agoRemove broken assertions
Peter Eisentraut [Wed, 11 Sep 2019 08:28:55 +0000 (10:28 +0200)]
Remove broken assertions

These haven't worked since 035b15e3707bb295142830a27ac36f6997cb3861.

4 years agoFix issue with PAM users losing their password
Peter Eisentraut [Tue, 10 Sep 2019 19:26:41 +0000 (21:26 +0200)]
Fix issue with PAM users losing their password

The normal flow when starting a client connection is that set_pool()
is called with an empty password ("").  For normal users, the password
was already set earlier from auth_file or auth_query, so this empty
password is ignored.  For PAM users, the empty password is stored but
the real password is set later when authentication is complete.

The problem in the PAM case is that for the next client connection,
this would overwrite the stored password with an empty password until
the real password would then be re-added later.  If the client
authentication doesn't complete for whatever reason (perhaps server is
down and fast-fail is active), then the correct password is never set.
This would then have clobbered the user's password that might be
useful for server authentication.  There are probably other failure
scenarios.

To fix, call set_pool() with a NULL password instead, and teach
add_pam_user() not to overwrite an existing password if the argument
is NULL.

reported, analysis, and fix proposal by @achix

fixes #285

4 years agoRemove no longer used macro
Peter Eisentraut [Mon, 9 Sep 2019 17:42:29 +0000 (19:42 +0200)]
Remove no longer used macro

4 years agoSend stats columns as numeric instead of bigint
Peter Eisentraut [Mon, 9 Sep 2019 16:56:50 +0000 (18:56 +0200)]
Send stats columns as numeric instead of bigint

Internally, most statistiscs are kept as uint64_t.  Sending those
with a row descriptor that claims they are bigint can lead to problems
if uint64_t values can overflow the signed 64-bit integer range.  Then
a client library that wants to convert the value to its locally
appropriate signed 64-bit integer type would run into errors.

based on patch by @stanhu

fixes #360 #401

4 years agoRemove references to PostgreSQL wiki
Peter Eisentraut [Thu, 29 Aug 2019 19:39:16 +0000 (21:39 +0200)]
Remove references to PostgreSQL wiki

The information is now all on the PgBouncer web site.

4 years agoAdd make check target
Peter Eisentraut [Thu, 29 Aug 2019 07:17:11 +0000 (09:17 +0200)]
Add make check target

This is a standard way to run all tests.

4 years agoTravis CI: Update to bionic instead of xenial
Peter Eisentraut [Wed, 28 Aug 2019 19:04:09 +0000 (21:04 +0200)]
Travis CI: Update to bionic instead of xenial

Enable OpenSSL for Valgrind run, since it should work now (see
66b6dc2c31f7360e11347b20216c6c7ec5ce13cf).

Disable ElectricFence, seems broken:
<https://answers.launchpad.net/ubuntu/+question/674132>

Enable -Werror for c-ares build.  Warning about broken IPv6 support
should be gone now.

4 years agoTravis CI: Shell fix
Peter Eisentraut [Tue, 27 Aug 2019 20:22:24 +0000 (22:22 +0200)]
Travis CI: Shell fix

Newer cd versions apparently complain about too many arguments, which
was a problem here, since pgbouncer-* expands to both the directory
name and the tarball name.

4 years agodnslookup: Improve warning message phrasing
Peter Eisentraut [Wed, 28 Aug 2019 10:55:40 +0000 (12:55 +0200)]
dnslookup: Improve warning message phrasing

4 years agodnslookup: Fix compiler warnings from unused functions
Peter Eisentraut [Wed, 28 Aug 2019 10:00:11 +0000 (12:00 +0200)]
dnslookup: Fix compiler warnings from unused functions

4 years agov1.11.0 pgbouncer_1_11_0
Peter Eisentraut [Tue, 27 Aug 2019 08:17:07 +0000 (10:17 +0200)]
v1.11.0

4 years agoAdd simple test for all SHOW commands
Peter Eisentraut [Fri, 23 Aug 2019 07:14:33 +0000 (09:14 +0200)]
Add simple test for all SHOW commands

4 years agoAdd SASL and SCRAM support
Peter Eisentraut [Sun, 18 Aug 2019 04:56:14 +0000 (06:56 +0200)]
Add SASL and SCRAM support

Add support for SASL/SCRAM-SHA-256 authentication for clients and servers.

Import a few files from PostgreSQL core (commit REL_11_5) to support
SCRAM.

resolves #208

4 years agoRecognize GSSENCRequest packet
Peter Eisentraut [Fri, 16 Aug 2019 10:56:50 +0000 (12:56 +0200)]
Recognize GSSENCRequest packet

This is a new startup packet type introduced in PostgreSQL 12.  In
PgBouncer, we'll for now reject GSS encryption attempts.

Without this, PgBouncer would reject such connections with "bad packet
header" errors, requiring the client to reconnect before being able to
do the normal startup.

4 years agoBump libusual
Peter Eisentraut [Sat, 17 Aug 2019 09:38:32 +0000 (11:38 +0200)]
Bump libusual

4 years agotest: Restart pgbouncer for every test
Peter Eisentraut [Thu, 15 Aug 2019 07:33:44 +0000 (09:33 +0200)]
test: Restart pgbouncer for every test

There are too many cases where existing pool states lingers between
one test and another, making some test results unreliable.  It's safer
to just restart the whole process to get a clean start.

This also lets us mark the pgbouncer log file with where a test began
and ended.

4 years agoTest against multiple PostgreSQL versions
Peter Eisentraut [Tue, 13 Aug 2019 00:12:54 +0000 (02:12 +0200)]
Test against multiple PostgreSQL versions

This allows testing versions with older and newer authentication
behavior.

4 years agoDisable PAM for Valgrind build
Peter Eisentraut [Tue, 13 Aug 2019 06:19:54 +0000 (08:19 +0200)]
Disable PAM for Valgrind build

It creates mysterious errors that I don't want to deal with right now.

4 years agoMore useful Valgrind options
Peter Eisentraut [Tue, 13 Aug 2019 00:14:44 +0000 (02:14 +0200)]
More useful Valgrind options

Make sure leaks actually result in an error report.

Remove --read-var-info=yes since it causes problems on some systems.

4 years agoAdd tests for taking password from auth_file
Peter Eisentraut [Sun, 11 Aug 2019 19:51:25 +0000 (21:51 +0200)]
Add tests for taking password from auth_file

4 years agoAdd test for md5 authentication with plain-text password stored
Peter Eisentraut [Sun, 11 Aug 2019 16:32:46 +0000 (18:32 +0200)]
Add test for md5 authentication with plain-text password stored

Now we have tests for all four combinations of plain-text and md5
passwords and plain and md5 authentication.

4 years agoClean up example and test configuration files
Peter Eisentraut [Fri, 9 Aug 2019 11:29:50 +0000 (13:29 +0200)]
Clean up example and test configuration files

Consistently comment out settings that are the default, update various
documentation comments, make commenting consistent.

In configuration files for tests, remove most comments, so we don't
have to keep syncing them with the main example file.

4 years agodoc: Update link to pg_hba.conf documentation
Peter Eisentraut [Fri, 9 Aug 2019 11:05:29 +0000 (13:05 +0200)]
doc: Update link to pg_hba.conf documentation

Also rephrase the text a bit so that it doesn't need to be updated for
every authentication method change in PostgreSQL or PgBouncer.

4 years agoREADME: Wording improvements
Peter Eisentraut [Tue, 6 Aug 2019 08:01:39 +0000 (10:01 +0200)]
README: Wording improvements

4 years agoAdd AppVeyor configuration for Windows
Peter Eisentraut [Mon, 5 Aug 2019 19:48:00 +0000 (21:48 +0200)]
Add AppVeyor configuration for Windows

4 years agoTravis CI: Add test run with Valgrind
Peter Eisentraut [Mon, 5 Aug 2019 07:23:28 +0000 (09:23 +0200)]
Travis CI: Add test run with Valgrind

Note: Valgrind on Ubuntu xenial is broken for OpenSSL[0], so don't
configure that right now.  Travis CI on bionic still has issues[1], so
we're stuck here for now.

[0]: https://bugs.launchpad.net/ubuntu/+source/valgrind/+bug/1574437
[1]: https://travis-ci.community/t/apt-addon-doesnt-run-in-bionic/4061

4 years agoUpdate sample pgbouncer.ini for log_stats addition
Peter Eisentraut [Sun, 4 Aug 2019 01:10:13 +0000 (03:10 +0200)]
Update sample pgbouncer.ini for log_stats addition

4 years agoAdd option to disable printing stats to log
Peter Eisentraut [Sat, 3 Aug 2019 21:24:36 +0000 (23:24 +0200)]
Add option to disable printing stats to log

Add option log_stats that can be used to disable printing stats to
log.  Stats are still updated every stats_period, for SHOW commands.

Author: @weastur

fixes #287

4 years agoHandle auth_type=password when the stored password is md5
Peter Eisentraut [Sat, 3 Aug 2019 15:38:27 +0000 (17:38 +0200)]
Handle auth_type=password when the stored password is md5

This matches what a PostgreSQL server would do.

Author: @hashbrowncipher

fixes #129

4 years agoAdd tests for plain-text password authentication
Peter Eisentraut [Sat, 3 Aug 2019 15:32:30 +0000 (17:32 +0200)]
Add tests for plain-text password authentication

4 years agoAdd [users] section to example config file
Peter Eisentraut [Sat, 3 Aug 2019 11:51:02 +0000 (13:51 +0200)]
Add [users] section to example config file

Also add some missing documentation about the [users] section.

Reported-by: @brunomgalmeida
fixes #330

4 years agoFix typo
Peter Eisentraut [Sat, 3 Aug 2019 07:39:30 +0000 (09:39 +0200)]
Fix typo

4 years agoSubstitute version into man pages automatically
Peter Eisentraut [Fri, 2 Aug 2019 06:36:02 +0000 (08:36 +0200)]
Substitute version into man pages automatically

4 years agotest: Add -w option to pg_ctl invocation
Peter Eisentraut [Fri, 2 Aug 2019 07:00:39 +0000 (09:00 +0200)]
test: Add -w option to pg_ctl invocation

This is the default in recent PostgreSQL versions.  This change just
makes the script behavior consistent across versions.  We can now also
remove some sleep calls to make the tests start faster.

4 years agoReorganize AUTH_* symbols
Peter Eisentraut [Fri, 2 Aug 2019 05:38:20 +0000 (07:38 +0200)]
Reorganize AUTH_* symbols

Separate numerically into protocol codes and internal codes.  This
makes room for protocol codes currently not supported.

4 years agoTravis CI: Add test run with ElectricFence
Peter Eisentraut [Fri, 2 Aug 2019 05:40:37 +0000 (07:40 +0200)]
Travis CI: Add test run with ElectricFence

4 years agoTweak test timing to make it more stable
Peter Eisentraut [Fri, 2 Aug 2019 05:00:18 +0000 (07:00 +0200)]
Tweak test timing to make it more stable

4 years agoconfigure.ac: Update AC_INIT invocation
Peter Eisentraut [Fri, 2 Aug 2019 06:50:32 +0000 (08:50 +0200)]
configure.ac: Update AC_INIT invocation

Add bug report and URL information, update PgBouncer capitalization.

4 years agoImprove debug message
Peter Eisentraut [Fri, 2 Aug 2019 06:26:24 +0000 (08:26 +0200)]
Improve debug message

4 years agoFix debug messag
Peter Eisentraut [Fri, 2 Aug 2019 06:15:40 +0000 (08:15 +0200)]
Fix debug messag

It was using an uninitialized variable.

4 years agoTravis CI: Also run ssl tests
Peter Eisentraut [Thu, 1 Aug 2019 14:33:56 +0000 (16:33 +0200)]
Travis CI: Also run ssl tests

4 years agoSync ssl/test.sh with test.sh
Peter Eisentraut [Thu, 1 Aug 2019 19:24:57 +0000 (21:24 +0200)]
Sync ssl/test.sh with test.sh

Make locations for logs and pid files consistent.

4 years agoRemove ssl test data from git
Peter Eisentraut [Thu, 1 Aug 2019 15:42:00 +0000 (17:42 +0200)]
Remove ssl test data from git

The test script deletes it anyway before use, so it's of no use here.

4 years agoAdd tests for md5 authentication
Peter Eisentraut [Thu, 1 Aug 2019 15:57:57 +0000 (17:57 +0200)]
Add tests for md5 authentication

4 years agoFix shell syntax in test suite
Peter Eisentraut [Thu, 1 Aug 2019 15:59:40 +0000 (17:59 +0200)]
Fix shell syntax in test suite

Using return outside a function doesn't make sense.

4 years agoAdd some debugging for failed tests
Peter Eisentraut [Thu, 1 Aug 2019 08:00:12 +0000 (10:00 +0200)]
Add some debugging for failed tests

Print the log file of the failed test if the test fails.  This helps
analyzing failures when run in a CI environment.

4 years agoTravis CI: Run tests as part of build
Peter Eisentraut [Wed, 31 Jul 2019 20:17:45 +0000 (22:17 +0200)]
Travis CI: Run tests as part of build

This required a fair amount of tweaking to get the tests stable
enough, but it seems good now.

4 years agoTweak some test timing to make the tests more stable
Peter Eisentraut [Thu, 1 Aug 2019 12:02:21 +0000 (14:02 +0200)]
Tweak some test timing to make the tests more stable

4 years agoRewrite test_server_connect_timeout_establish using pre_auth_delay
Peter Eisentraut [Thu, 1 Aug 2019 07:03:28 +0000 (09:03 +0200)]
Rewrite test_server_connect_timeout_establish using pre_auth_delay

This avoids having to deal with strange behaviors and portability
issues from netcat.

Since ALTER SYSTEM is being used, this now requires at least
PostgreSQL 9.4 for the test.

4 years agoFix wait time computation with auth_user
Peter Eisentraut [Wed, 31 Jul 2019 11:51:44 +0000 (13:51 +0200)]
Fix wait time computation with auth_user

When using auth_user, the transition to the CL_WAITING_LOGIN state
would not initialize the client->wait_start field.  This would either
lead to garbage values being recorded, or under assertions enabled it
would crash in activate_client().

(test_auth_user was actually reproducing this problem, but a crash
requires assertions enabled and new memory being all zero, so it was
difficult to catch it.)

Author: @pinaraf

see #393

4 years agov1.10.0 pgbouncer_1_10_0
Peter Eisentraut [Mon, 1 Jul 2019 07:02:10 +0000 (09:02 +0200)]
v1.10.0

4 years agoBump libusual
Peter Eisentraut [Fri, 28 Jun 2019 07:06:57 +0000 (09:06 +0200)]
Bump libusual

4 years agoRewrite man page filter to work independent of Pandoc
Peter Eisentraut [Sat, 29 Jun 2019 13:47:43 +0000 (15:47 +0200)]
Rewrite man page filter to work independent of Pandoc

This allows it to work with really old Pandoc versions that don't have
the --filter option (e.g., on CentOS 6).  This just makes it a plain
text-munging filter script.

4 years agoMake stress.py compatible with Python 3
Peter Eisentraut [Wed, 26 Jun 2019 21:28:06 +0000 (23:28 +0200)]
Make stress.py compatible with Python 3

4 years agoDo not depend on Pandoc 2.0
Marco Nenciarini [Wed, 26 Jun 2019 13:38:48 +0000 (15:38 +0200)]
Do not depend on Pandoc 2.0

Replace the Lua filter with one written in Python, so it can work with
older Pandoc versions.  Import pandocfilters.py package from Pandoc to
help with that.

4 years agoImprove pid file processing
Peter Eisentraut [Mon, 24 Jun 2019 20:46:10 +0000 (22:46 +0200)]
Improve pid file processing

Remove some useless code that triggers a TOCTOU warning from
Coverity.  Make error messages more accurate.

4 years agoAdd support for TLSv1.3 enabling and disabling
Peter Eisentraut [Mon, 24 Jun 2019 20:23:19 +0000 (22:23 +0200)]
Add support for TLSv1.3 enabling and disabling

It already worked automatically; this just adds the options to enable
and disable the protocol version explicitly.

4 years agoAdd missing options TOTALS and USERS
Peter Eisentraut [Mon, 24 Jun 2019 20:16:01 +0000 (22:16 +0200)]
Add missing options TOTALS and USERS

These were not included in the output of SHOW HELP.

Author: @davidfetter

fixes #388

4 years agoFix usage typo
Gabe Gorelick [Fri, 8 Feb 2019 21:33:40 +0000 (15:33 -0600)]
Fix usage typo

a online restart -> an online restart

4 years agoImprove error message
Peter Eisentraut [Mon, 24 Jun 2019 19:58:37 +0000 (21:58 +0200)]
Improve error message

4 years agoFix idle_transaction_timeout calculation
Peter Eisentraut [Mon, 24 Jun 2019 14:46:45 +0000 (16:46 +0200)]
Fix idle_transaction_timeout calculation

idle_transaction_timeout should count from the last request of the
server, because the server sent the idle information.  The code
previously used the last request of the client, which could lead to
premature timeouts.

fixes #125

4 years agoMake error messages more precise
Peter Eisentraut [Mon, 24 Jun 2019 14:25:25 +0000 (16:25 +0200)]
Make error messages more precise

4 years agoTweak some debug messages for clarity
Peter Eisentraut [Mon, 24 Jun 2019 14:22:18 +0000 (16:22 +0200)]
Tweak some debug messages for clarity

4 years agodoc: Document remaining SHOW commands
Peter Eisentraut [Mon, 24 Jun 2019 14:18:54 +0000 (16:18 +0200)]
doc: Document remaining SHOW commands

Some of these present internal information that we don't want to
document fully, but at least mentioning them for completeness seems
reasonable.

fixes #394

4 years agodoc: Various cosmetic improvements
Peter Eisentraut [Thu, 20 Jun 2019 14:02:52 +0000 (16:02 +0200)]
doc: Various cosmetic improvements

4 years agoAdd documentation for available test suites
Peter Eisentraut [Wed, 19 Jun 2019 15:19:28 +0000 (17:19 +0200)]
Add documentation for available test suites

fixes #83

4 years agopycodestyle (PEP8) pass over Python scripts
Peter Eisentraut [Wed, 19 Jun 2019 15:11:41 +0000 (17:11 +0200)]
pycodestyle (PEP8) pass over Python scripts

4 years agostress.py: Convert to psycopg2
Peter Eisentraut [Wed, 19 Jun 2019 14:36:18 +0000 (16:36 +0200)]
stress.py: Convert to psycopg2

It was still on the ancient psycopg module.

4 years agostress.py: Update port number in test script
Peter Eisentraut [Wed, 19 Jun 2019 14:35:43 +0000 (16:35 +0200)]
stress.py: Update port number in test script

from 6000 to 6432