]>
granicus.if.org Git - pgbouncer/log
Peter Eisentraut [Thu, 8 Mar 2018 22:18:13 +0000 (17:18 -0500)]
doc: Improve signals documentation
Add SIGUSR1 and SIGUSR2. Fix grammar a bit.
Peter Eisentraut [Wed, 27 Dec 2017 22:30:46 +0000 (17:30 -0500)]
Port mkauth.py to Python 3
fixes #263
Peter Eisentraut [Wed, 27 Dec 2017 00:31:22 +0000 (19:31 -0500)]
Travis CI: Test make deb target
Peter Eisentraut [Tue, 26 Dec 2017 21:55:08 +0000 (16:55 -0500)]
Fix mistake in test setup
This caused the test test_database_change to fail.
Peter Eisentraut [Tue, 26 Dec 2017 21:49:36 +0000 (16:49 -0500)]
Fix psql invocation in tests
Always run psql with -X, otherwise some tests fail if there is something
in .psqlrc producing output. Also fix some potential portability
problems in option syntax: Put non-option arguments last, don't mix
options with and without arguments.
Peter Eisentraut [Wed, 20 Dec 2017 13:32:23 +0000 (08:32 -0500)]
v1.8.1
Peter Eisentraut [Tue, 19 Dec 2017 23:43:44 +0000 (18:43 -0500)]
Travis CI: Add configure arguments matrix
Peter Eisentraut [Wed, 20 Dec 2017 00:09:41 +0000 (19:09 -0500)]
Travis CI: Convert script to single YAML block
Otherwise the scripts are all run independently of each other, which
doesn't make sense.
Peter Eisentraut [Tue, 19 Dec 2017 21:54:24 +0000 (16:54 -0500)]
Travis CI: Add test for building from dist tarball
Check that the distribution tarball can actually be built from, in case
it's missing a file. Also check `make install` while we're here.
Peter Eisentraut [Tue, 19 Dec 2017 23:15:25 +0000 (18:15 -0500)]
Add include/pam.h to distribution tarball
fixes #261
Peter Eisentraut [Tue, 19 Dec 2017 13:35:54 +0000 (08:35 -0500)]
v1.8
Peter Eisentraut [Tue, 19 Dec 2017 14:19:05 +0000 (09:19 -0500)]
doc: Fix rst syntax
Words ending in underscore are links. This confuses pandoc (for the web
site) (but apparently not rst2man). Escape with backslash to fix.
Petr Jelinek [Mon, 18 Dec 2017 21:08:12 +0000 (22:08 +0100)]
Display 0 ttl for stale DNS entries in SHOW DNS_HOSTS
Peter Eisentraut [Mon, 18 Dec 2017 16:34:58 +0000 (11:34 -0500)]
Travis CI: Add dist target to script
Peter Eisentraut [Mon, 18 Dec 2017 15:54:32 +0000 (10:54 -0500)]
Use strerror() instead of %m for portability
Peter Eisentraut [Sat, 16 Dec 2017 20:31:31 +0000 (15:31 -0500)]
Minor spelling and grammar improvements
Petr Jelinek [Fri, 15 Dec 2017 16:38:27 +0000 (17:38 +0100)]
Merge pull request #260 from petere/doc-fixes
detect and fix errors in documentation sources
Peter Eisentraut [Thu, 14 Dec 2017 19:14:34 +0000 (14:14 -0500)]
doc: Fix duplicate target name
Since there are two sections called "auth_user", we need to make one of
them an explicit target so we can link to it.
Peter Eisentraut [Thu, 14 Dec 2017 19:06:59 +0000 (14:06 -0500)]
doc: Catch warnings and errors from rst2man
Make rst2man exit with a non-zero exit status when there are warnings or
errors in the source.
Peter Eisentraut [Thu, 14 Dec 2017 19:03:00 +0000 (14:03 -0500)]
Travis CI: Add python-docutils as dependency
for rst2man
Peter Eisentraut [Thu, 14 Dec 2017 18:54:58 +0000 (13:54 -0500)]
Fix handling of absent rst2man
The makefile line
RST2MAN ?= rst2man
didn't have the desired effect, because config.mak sets RST2MAN, and ?=
doesn't do anything if the variable is set to empty. So instead let
configure put in a default value if the program cannot be found.
Peter Eisentraut [Wed, 6 Dec 2017 21:49:46 +0000 (16:49 -0500)]
Add Travis CI
Peter Eisentraut [Wed, 13 Dec 2017 18:40:52 +0000 (13:40 -0500)]
Merge pull request #257 from eulerto/default-values-fix
Use default values in config file
Peter Eisentraut [Wed, 13 Dec 2017 17:45:25 +0000 (12:45 -0500)]
Update libusual
Euler Taveira [Fri, 8 Dec 2017 22:00:24 +0000 (22:00 +0000)]
Use default values in config file
Instead of using arbritary values, use the default values. It is to
avoid surprises if you just remove comment character (;). I also did
some cosmetic changes. While at it, add some default information for
auth_user.
Petr Jelinek [Fri, 8 Dec 2017 17:31:32 +0000 (18:31 +0100)]
Merge pull request #253 from eshkinkot/master
Receiving NotificationResponse asynchronously should not raise warning
Sergey Burladyan [Tue, 5 Dec 2017 14:02:19 +0000 (17:02 +0300)]
Receiving NotificationResponse asynchronously should not raise warning
Petr Jelinek [Sat, 4 Nov 2017 16:12:59 +0000 (17:12 +0100)]
Improve handling of auth_file cache and errors
Fixes #192
Petr Jelinek [Sat, 4 Nov 2017 15:18:20 +0000 (16:18 +0100)]
Improve the hba.conf parsing issue warning
This was added by
4f3dfc9 , the wording was no ideal.
Petr Jelinek [Sat, 4 Nov 2017 15:17:16 +0000 (16:17 +0100)]
Merge pull request #243 from gplv2/master
add clues for sysadmin concerning HBA issues
Petr Jelinek [Sat, 4 Nov 2017 15:03:58 +0000 (16:03 +0100)]
Merge pull request #229 from petere/crash-fix
Fix crash from memory overrun
Petr Jelinek [Sat, 4 Nov 2017 13:13:11 +0000 (14:13 +0100)]
Merge pull request #235 from petere/pgbouncer-ini-auth-type
pgbouncer.ini: Add missing auth_type's to comment
Petr Jelinek [Sat, 4 Nov 2017 13:11:53 +0000 (14:11 +0100)]
Add STATS_TOTALS/STATS_AVERAGES into HELP
And separate the STATS* commands to it's own line.
Missed by
656844e
Petr Jelinek [Sat, 4 Nov 2017 13:00:19 +0000 (14:00 +0100)]
Merge pull request #238 from 'tvondra/statistics-fixes'
Track separate stats for queries and transactions
Glenn Plas [Mon, 23 Oct 2017 10:37:32 +0000 (12:37 +0200)]
add clues for sysadmin concerning HBA issues
Tomas Vondra [Sun, 24 Sep 2017 16:49:35 +0000 (18:49 +0200)]
Add SHOW STATS_TOTALS / STATS_AVERAGES as admin commands
We already had SHOW STATS, but after adding the wait_time colums it
got a bit too wide for regular screens. That's incovenient, as the
admin interface does not selecting only some of the columns.
But in most cases we're only interested either in totals or averages,
not both at the same time. So let's add commands showing only the
relevant subset of columns.
Tomas Vondra [Wed, 20 Sep 2017 21:22:39 +0000 (23:22 +0200)]
Track total time spent waiting for server
There already is maxwait column in pool details, showing how long
the oldest client is currently waiting. Which is useful, but it does
not allow us to easily break client time into the three basic
categories: busy, idle and waiting.
This adds tracking of total time spent waiting for a server, and
adds it as wait_time into SHOW STATS. The total value is simply
accumulated over time, the average value is 'per second' value.
The value is only updated when a client acquires a server, so if
a client is waiting indefinitely, the wait time won't be reflected
in the value. That would require inspecting the the list of waiting
clients, which seems like overkill. Moreover, that's what maxwait
is good for.
Tomas Vondra [Wed, 20 Sep 2017 19:00:17 +0000 (21:00 +0200)]
Track separate stats for queries and transactions
The documentation claimed avg_query tracks average query duration,
but it was only updated when switching into 'idle' state. So in
transaction or session pooling modes, it was actually the duration
of the whole transaction, including 'idle in transaction' time and
time spen executing (multiple) queries.
This was causing confusion, e.g. when the application was keeping
transactions open without executing any queries. In that case the
avg_query metric was increasing although the database was handling
queries just fine (without any slow-down).
Instead of just fixing the avg_query metric, it seems quite useful
to have timing data both for queries and transactions. So this
patch replaces
- total_query_time
- avg_query
with
- total_xact_time
- total_query_time
- avg_xact_time
- avg_query_time
This is also related to the definition of 'request' which was used
to compute the avg_query, and so it equal to a transaction. This
patch replaces the counter with two - one for transactions and one
for queries. As we also computed avg_req, the patch replaces
- total_requests
- avg_req
with
- total_xact_count
- total_query_time
- avg_xact_count
- avg_query_count
Note: This is likely to affect monitoring solutions, as the column
names in SHOW STATS change.
Peter Eisentraut [Fri, 11 Aug 2017 18:52:08 +0000 (14:52 -0400)]
Corrects bits vs bytes
Change "b/s" to "B/s", because the units are bytes.
Peter Eisentraut [Tue, 19 Sep 2017 16:10:55 +0000 (12:10 -0400)]
pgbouncer.ini: Add missing auth_type's to comment
Peter Eisentraut [Thu, 24 Aug 2017 17:11:03 +0000 (13:11 -0400)]
Fix crash from memory overrun
Fixes: #228
Marko Kreen [Sun, 9 Jul 2017 13:07:40 +0000 (16:07 +0300)]
Merge branch 'master' of https://github.com/pgbouncer/pgbouncer
Marko Kreen [Sun, 9 Jul 2017 13:06:41 +0000 (16:06 +0300)]
Merge pull request #217 from mnencia/patch-1
dns_zone_check_period is available also with c-ares backend
Marko Kreen [Sun, 9 Jul 2017 13:03:58 +0000 (16:03 +0300)]
Upgrade libusual
Marko Kreen [Sun, 9 Jul 2017 13:03:31 +0000 (16:03 +0300)]
Dont set flags when doing with-cares=auto
Marko Kreen [Sun, 9 Jul 2017 12:58:37 +0000 (15:58 +0300)]
Merge pull request #218 from mnencia/patch-2
Fix --with-cares=auto
Marko Kreen [Sun, 9 Jul 2017 12:56:50 +0000 (15:56 +0300)]
Merge pull request #219 from rubenv/patch-1
Add missing space
Ruben Vermeersch [Fri, 7 Jul 2017 08:42:08 +0000 (10:42 +0200)]
Add missing space
Turns this:
Stats: 21 req/s, in 579668 b/s, out 422757 b/s,query 84412 us
Into this:
Stats: 21 req/s, in 579668 b/s, out 422757 b/s, query 84412 us
Marco Nenciarini [Thu, 29 Jun 2017 12:01:33 +0000 (14:01 +0200)]
Fix --with-cares=auto
Marco Nenciarini [Thu, 29 Jun 2017 10:29:50 +0000 (12:29 +0200)]
dns_zone_check_period is available also with c-ares backend
Marko Kreen [Wed, 28 Jun 2017 15:21:27 +0000 (18:21 +0300)]
Merge pull request #196 from mhagander/auth_type_mode
Fix incorrect references to auth_mode
Marko Kreen [Wed, 28 Jun 2017 15:15:50 +0000 (18:15 +0300)]
Merge pull request #202 from gbartolini/dev/142
Global management of 'auth_user'
Marko Kreen [Wed, 28 Jun 2017 15:02:04 +0000 (18:02 +0300)]
Merge pull request #183 from jeduardo/master
Increased maximum length for postgres password
Marko Kreen [Wed, 28 Jun 2017 15:00:46 +0000 (18:00 +0300)]
Merge branch 'master' of https://github.com/pgbouncer/pgbouncer
Marko Kreen [Wed, 28 Jun 2017 14:58:51 +0000 (17:58 +0300)]
sbuf: check for EAGAIN in connect
seems it can be returned in win32
fixes: #188 #161
Marko Kreen [Wed, 28 Jun 2017 14:50:50 +0000 (17:50 +0300)]
hba: call next_token after parsing filename (#209)
Marko Kreen [Wed, 28 Jun 2017 14:48:30 +0000 (17:48 +0300)]
hba: parse_namefile did unnecessary free
Fixes: #209
Marko Kreen [Wed, 28 Jun 2017 14:38:16 +0000 (17:38 +0300)]
Merge pull request #213 from procore/add_client_wait_time
Add per-socket wait times to SHOW SOCKET.
Marko Kreen [Wed, 28 Jun 2017 14:37:55 +0000 (17:37 +0300)]
Merge pull request #212 from procore/add_maxwait_us
Add a maxwait microseconds column to SHOW POOLS.
Marko Kreen [Wed, 28 Jun 2017 14:35:21 +0000 (17:35 +0300)]
Merge pull request #214 from secwall/master
Fix memleak on pg_hba file reload
secwall [Sat, 10 Jun 2017 10:45:35 +0000 (13:45 +0300)]
Free user_name and db_name in hba rule_free to avoid memory leak on hba file reload
Terrence Cole [Fri, 9 Jun 2017 20:12:19 +0000 (13:12 -0700)]
Add per-socket wait times to show commands.
Terrence Cole [Fri, 9 Jun 2017 18:39:31 +0000 (11:39 -0700)]
Add a maxwait microseconds column to SHOW POOLS.
Gabriele Bartolini [Sun, 16 Apr 2017 19:16:41 +0000 (21:16 +0200)]
Fix a couple of typos
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>
Gabriele Bartolini [Fri, 14 Apr 2017 08:23:39 +0000 (10:23 +0200)]
Global management of `auth_user`
Fixes #142
Signed-off-by: Gabriele Bartolini <gabriele.bartolini@2ndQuadrant.it>
Magnus Hagander [Thu, 30 Mar 2017 15:25:57 +0000 (17:25 +0200)]
Fix incorrect references to auth_mode
The parameter is called auth_type, not auth_mode.
J. Eduardo [Tue, 7 Feb 2017 22:13:44 +0000 (23:13 +0100)]
Improved comment on max password length
J. Eduardo [Tue, 7 Feb 2017 22:11:57 +0000 (23:11 +0100)]
Added warning for max password length
J. Eduardo [Tue, 7 Feb 2017 21:34:34 +0000 (22:34 +0100)]
Increased maximum length for postgres password
Petr Jelinek [Tue, 24 Jan 2017 19:59:13 +0000 (20:59 +0100)]
Merge pull request #178 from marco44/master
Add paused and disabled field to the SHOW DATABASES command
Marc Cousin [Tue, 24 Jan 2017 15:25:54 +0000 (16:25 +0100)]
Add paused and disabled field on the show databases command
Marko Kreen [Tue, 27 Dec 2016 15:06:38 +0000 (17:06 +0200)]
Merge pull request #157 from anayrat/master
Mention auth_user in pgbouncer.ini example
Marko Kreen [Tue, 27 Dec 2016 14:43:08 +0000 (16:43 +0200)]
Merge pull request #171 from macobo/patch-1
Improve build instructions
Marko Kreen [Tue, 20 Dec 2016 10:39:25 +0000 (12:39 +0200)]
doc: auth_query - mention that function is run in target db
Marko Kreen [Sat, 17 Dec 2016 11:10:04 +0000 (13:10 +0200)]
Upgrade libusual
Mainly to get OpenSSL 1.1 fixes
Fixes: #159
Karl-Aksel Puulmann [Fri, 16 Dec 2016 12:15:13 +0000 (14:15 +0200)]
Improve build instructions
Ran into this when building a docker image.
Marko Kreen [Tue, 6 Dec 2016 16:57:44 +0000 (18:57 +0200)]
Merge branch 'master' of https://github.com/pgbouncer/pgbouncer
Marko Kreen [Tue, 6 Dec 2016 16:42:22 +0000 (18:42 +0200)]
console: change server_encoding to UTF8 from SQL_ASCII
cannot see any benefit of keeping SQL_ASCII around here.
Marko Kreen [Tue, 6 Dec 2016 16:40:25 +0000 (18:40 +0200)]
console: use UTF8 instead UNICODE as client_encoding
Seems UTF8 is proper encoding and UNICODE is alias.
Java JDBC driver gets confused by UNICODE.
Fixes: #165
Marko Kreen [Mon, 5 Dec 2016 15:37:44 +0000 (17:37 +0200)]
Merge pull request #137 from waldyrious/patch-1
add license title
Marko Kreen [Mon, 5 Dec 2016 15:27:36 +0000 (17:27 +0200)]
Merge pull request #162 from mhagander/typofix
Fix typo
Magnus Hagander [Tue, 15 Nov 2016 13:45:46 +0000 (14:45 +0100)]
Fix typo
Petr Jelinek [Mon, 7 Nov 2016 18:19:02 +0000 (19:19 +0100)]
Merge pull request #147 from cpatru/issue-141
Don't send ReadyForQuery on main_connection for CancelQuery requests
anayrat [Thu, 27 Oct 2016 08:27:53 +0000 (10:27 +0200)]
Mention auth_user in pgbouncer.ini example
cpatru [Wed, 14 Sep 2016 17:17:40 +0000 (18:17 +0100)]
Don't send ReadyForQuery on main_connection as it may cause clients to get out of sync.
Petr Jelinek [Tue, 25 Oct 2016 15:44:48 +0000 (17:44 +0200)]
Merge pull request #155 from mhagander/pam_thread_fix
Make pam_init happen in the child process when forking
Magnus Hagander [Tue, 25 Oct 2016 15:12:49 +0000 (17:12 +0200)]
Make pam_init happen in the child process when forking
Previously, pam_init would happen in the master process that then
quickly died, rendering pam authentication inoperative.
Waldir Pimenta [Fri, 1 Jul 2016 17:36:59 +0000 (18:36 +0100)]
add license title
It's not strictly required, but it's useful metadata, and part of the recommended license template text (see http://choosealicense.com/licenses/isc/ and https://opensource.org/licenses/isc-license)
Ilya Staheev [Mon, 21 Mar 2016 16:29:08 +0000 (17:29 +0100)]
Add PAM authentication support
Adds support for PAM authentication. Since PAM API is synchronous, this
patch introduces PAM authentication thread which processes the
authentication requests in backgrouns so that the normal poll operations
of the main thread are not blocked.
This feature is turned off by default and has to be enabled by
--with-pam configure parameter.
Author: Ilya Staheev
Reviewed by Marko Kreen and Petr Jelinek
Marko Kreen [Mon, 14 Mar 2016 10:09:07 +0000 (12:09 +0200)]
hba: Skip unparseable lines, keep parsing to the end.
Rejecting whole HBA file on failure seems bad usability.
Show warning but keep parsing.
Fixes #118
Marko Kreen [Sat, 12 Mar 2016 12:31:26 +0000 (14:31 +0200)]
tls: reject client TLS request on unix socket
Marko Kreen [Sat, 12 Mar 2016 12:12:18 +0000 (14:12 +0200)]
tls: do not ask TLS on unix socket
Marko Kreen [Fri, 26 Feb 2016 11:53:32 +0000 (13:53 +0200)]
v1.7.2
Marko Kreen [Fri, 26 Feb 2016 10:24:19 +0000 (12:24 +0200)]
deb: turn on full hardening, needs v9 dh
Marko Kreen [Fri, 26 Feb 2016 08:57:03 +0000 (10:57 +0200)]
Sort tarball files too, just in case.
Marko Kreen [Fri, 26 Feb 2016 08:13:50 +0000 (10:13 +0200)]
Disable cleanup.
Not useful for production loads, only for debugging.
Marko Kreen [Thu, 25 Feb 2016 18:52:39 +0000 (20:52 +0200)]
Revert "Skip cleanup if there is takeover"
This reverts commit
7c03a6c8f8d9ffcc3f0152e74c629213487b6d64 .
Marko Kreen [Wed, 24 Feb 2016 19:15:15 +0000 (21:15 +0200)]
Skip cleanup if there is takeover
Marko Kreen [Wed, 24 Feb 2016 18:28:59 +0000 (20:28 +0200)]
Show TLS backend version
Marko Kreen [Wed, 24 Feb 2016 18:28:46 +0000 (20:28 +0200)]
Sync libusual