]> granicus.if.org Git - pgbouncer/log
pgbouncer
12 years agodns_callback: restore ipv6 branch
Marko Kreen [Tue, 1 Nov 2011 22:28:49 +0000 (00:28 +0200)]
dns_callback: restore ipv6 branch

seems it was lost during merge.

12 years agoDocument KILL cmd, mention per-db pause.
Marko Kreen [Wed, 26 Oct 2011 08:51:30 +0000 (11:51 +0300)]
Document KILL cmd, mention per-db pause.

12 years agoMerge remote-tracking branch 'mtharp/rpath'
Marko Kreen [Wed, 26 Oct 2011 08:38:48 +0000 (11:38 +0300)]
Merge remote-tracking branch 'mtharp/rpath'

Conflicts:
src/janitor.c

Instead not flagging paused auto-db as inactive,
I moved the check to auto-db cleanup.

12 years agoMake pga_ntop/pga_str non-failing and zero-terminating
Marko Kreen [Tue, 25 Oct 2011 12:51:06 +0000 (15:51 +0300)]
Make pga_ntop/pga_str non-failing and zero-terminating

This frees call sites from worring about it.

Also fix some buf sizes in admin.c

12 years agomin_pool_size: add Filip Rembiałkowski to AUTHORS
Marko Kreen [Fri, 21 Oct 2011 11:50:14 +0000 (14:50 +0300)]
min_pool_size: add Filip Rembiałkowski to AUTHORS

Credit was lost from original commit, as I pushed
out without finalizing commit message.

12 years agodns stats, support wraparound serials
Marko Kreen [Fri, 21 Oct 2011 11:47:50 +0000 (14:47 +0300)]
dns stats, support wraparound serials

12 years agolog_socket_prefix: avoid corrupt hosts in log
Marko Kreen [Fri, 21 Oct 2011 11:30:46 +0000 (14:30 +0300)]
log_socket_prefix: avoid corrupt hosts in log

- increase host name buffer and clear it, seems inet_ntop is allowed
  to not zero-terminate...
- detect failed conversion

12 years agodns: query zone SOA, recheck hosts if changes
Marko Kreen [Mon, 17 Oct 2011 08:42:52 +0000 (11:42 +0300)]
dns: query zone SOA, recheck hosts if changes

12 years agoconfigure: include stddef.h in udns check to get NULL
Marko Kreen [Mon, 17 Oct 2011 08:39:46 +0000 (11:39 +0300)]
configure: include stddef.h in udns check to get NULL

12 years agodns: create cache of zone names
Marko Kreen [Fri, 14 Oct 2011 07:18:06 +0000 (10:18 +0300)]
dns: create cache of zone names

To be used to query zone changes

12 years agoconsole: relax word regex to allow numbers
Marko Kreen [Fri, 14 Oct 2011 07:17:39 +0000 (10:17 +0300)]
console: relax word regex to allow numbers

12 years agotodo: add some items
Marko Kreen [Fri, 14 Oct 2011 07:13:38 +0000 (10:13 +0300)]
todo: add some items

12 years agoidle_transaction_timeout: new config option
Marko Kreen [Sun, 9 Oct 2011 08:08:06 +0000 (10:08 +0200)]
idle_transaction_timeout: new config option

12 years agoA packet wont change state
Marko Kreen [Sun, 9 Oct 2011 08:06:48 +0000 (10:06 +0200)]
A packet wont change state

12 years agomin-pool-size doc fix
Marko Kreen [Sun, 9 Oct 2011 08:03:28 +0000 (10:03 +0200)]
min-pool-size doc fix

12 years agorefresh libusual
Marko Kreen [Thu, 6 Oct 2011 09:05:51 +0000 (11:05 +0200)]
refresh libusual

12 years agomin_pool_size (draft)
Marko Kreen [Mon, 3 Oct 2011 19:59:49 +0000 (22:59 +0300)]
min_pool_size (draft)

12 years agoudns support (draft)
Marko Kreen [Mon, 3 Oct 2011 19:57:56 +0000 (22:57 +0300)]
udns support (draft)

13 years agoWhen user= is used without password=, use userlist password.
Marko Kreen [Mon, 12 Sep 2011 11:56:37 +0000 (14:56 +0300)]
When user= is used without password=, use userlist password.

Otherwise it will get unobvious auth failure when trying
to log in with empty password.

Main user list is consulted on connect time, because
copying/linking on load time would be hard to keep
in sync with auth file changes.

Reported by Johnny Tan

13 years agoconsole: allow identifier quoting with ""
Marko Kreen [Mon, 12 Sep 2011 11:51:13 +0000 (14:51 +0300)]
console: allow identifier quoting with ""

Now we have PAUSE <db>; thus need a way to quote weird names.

Reported by Vanessa Hurst

13 years agov1.4.3dev1
Marko Kreen [Thu, 1 Sep 2011 09:14:30 +0000 (12:14 +0300)]
v1.4.3dev1

13 years agoDescribe EDNS0, use getaddrinfo_a() on debian
Marko Kreen [Thu, 1 Sep 2011 09:13:32 +0000 (12:13 +0300)]
Describe EDNS0, use getaddrinfo_a() on debian

13 years agoMention max_client_conn in "no more" error message
Marko Kreen [Thu, 1 Sep 2011 08:43:12 +0000 (11:43 +0300)]
Mention max_client_conn in "no more" error message

13 years agoFix too compact syntax.
Marko Kreen [Thu, 1 Sep 2011 08:41:49 +0000 (11:41 +0300)]
Fix too compact syntax.

13 years agoMerge remote-tracking branch 'intgit/master'
Marko Kreen [Wed, 24 Aug 2011 09:17:38 +0000 (12:17 +0300)]
Merge remote-tracking branch 'intgit/master'

13 years agoDetect DNS reply changes and invalidate connections to IPs no longer present in lates...
Petr Jelinek [Tue, 23 Aug 2011 19:22:53 +0000 (21:22 +0200)]
Detect DNS reply changes and invalidate connections to IPs no longer present in latest reply

13 years agofaq: use nicer code-blocks
Marko Kreen [Fri, 24 Jun 2011 13:28:06 +0000 (16:28 +0300)]
faq: use nicer code-blocks

13 years agofaq: disabling prepared statements in PHP
Marko Kreen [Fri, 24 Jun 2011 13:22:59 +0000 (16:22 +0300)]
faq: disabling prepared statements in PHP

13 years agoCorrect spelling of 'immediate'
Dan McGee [Wed, 22 Jun 2011 00:37:28 +0000 (19:37 -0500)]
Correct spelling of 'immediate'

sed -i -e 's/immidiate/immediate/g' src/*.c include/*.h

Signed-off-by: Dan McGee <dan@archlinux.org>
13 years agoAdd and populate .gitignore files
Dan McGee [Wed, 22 Jun 2011 00:37:26 +0000 (19:37 -0500)]
Add and populate .gitignore files

Signed-off-by: Dan McGee <dan@archlinux.org>
13 years agoFix documentation typos
Dan McGee [Wed, 22 Jun 2011 00:37:27 +0000 (19:37 -0500)]
Fix documentation typos

Signed-off-by: Dan McGee <dan@archlinux.org>
13 years agoFix typos in default config file
Dan McGee [Wed, 22 Jun 2011 00:37:25 +0000 (19:37 -0500)]
Fix typos in default config file

Signed-off-by: Dan McGee <dan@archlinux.org>
13 years agov1.4.2 pgbouncer_1_4_2
Marko Kreen [Thu, 16 Jun 2011 14:20:43 +0000 (17:20 +0300)]
v1.4.2

13 years agov1.4.2rc1 pgbouncer_1_4_2_rc1
Marko Kreen [Thu, 2 Jun 2011 15:42:11 +0000 (18:42 +0300)]
v1.4.2rc1

13 years agoRefresh libusual
Marko Kreen [Thu, 2 Jun 2011 14:48:01 +0000 (17:48 +0300)]
Refresh libusual

13 years agorefresh libusual
Marko Kreen [Fri, 29 Apr 2011 15:23:45 +0000 (18:23 +0300)]
refresh libusual

13 years agoMakefile: give CFLAGS to linker
Marko Kreen [Fri, 29 Apr 2011 15:22:11 +0000 (18:22 +0300)]
Makefile: give CFLAGS to linker

ACX_PTHREAD will put -pthread to CFLAGS.  This needs also to
reach linker.

Reported-by: Pierre-Emmanuel André
13 years agoMakefile: add pgbouncer.ini and userlist.txt to zip
Marko Kreen [Fri, 29 Apr 2011 15:21:00 +0000 (18:21 +0300)]
Makefile: add pgbouncer.ini and userlist.txt to zip

13 years agotodo update
Marko Kreen [Sat, 2 Apr 2011 14:13:41 +0000 (17:13 +0300)]
todo update

13 years agov1.4.1 pgbouncer_1_4_1
Marko Kreen [Fri, 1 Apr 2011 18:52:18 +0000 (21:52 +0300)]
v1.4.1

13 years agoFix some clang analyzer warnings.
Marko Kreen [Wed, 30 Mar 2011 07:30:11 +0000 (10:30 +0300)]
Fix some clang analyzer warnings.

13 years agoFix copy-paste error in last autodb fix.
Marko Kreen [Wed, 30 Mar 2011 07:28:12 +0000 (10:28 +0300)]
Fix copy-paste error in last autodb fix.

13 years agoconfig.txt: mention new default for server_reset_query
Marko Kreen [Tue, 29 Mar 2011 14:32:30 +0000 (17:32 +0300)]
config.txt: mention new default for server_reset_query

13 years agov1.4.1-rc5 pgbouncer_1_4_1_rc5
Marko Kreen [Tue, 29 Mar 2011 14:01:30 +0000 (17:01 +0300)]
v1.4.1-rc5

13 years agorefresh libusual
Marko Kreen [Tue, 29 Mar 2011 06:36:49 +0000 (09:36 +0300)]
refresh libusual

13 years agoFix autodb cleanup
Marko Kreen [Tue, 29 Mar 2011 06:26:12 +0000 (09:26 +0300)]
Fix autodb cleanup

Old cleanup code was mixing up databases and pools
- as soon as one empty pool was found, the database
was tagged as 'idle', potentially later killing database
with active users.

Change the code to tag database as active when active
pool is found and later checking for inactive databases.

Reported-By: Hubert Depesz Lubaczewski
13 years agoImprove defaults: Set server_reset_query to DISCARD ALL
Marko Kreen [Mon, 28 Mar 2011 05:26:56 +0000 (08:26 +0300)]
Improve defaults: Set server_reset_query to DISCARD ALL

Now pgbouncer should be transparent with default config.

13 years agofaq.txt: describe server_reset_query
Marko Kreen [Mon, 28 Mar 2011 05:24:03 +0000 (08:24 +0300)]
faq.txt: describe server_reset_query

13 years agov1.4.1rc4 pgbouncer_1_4_1_rc4
Marko Kreen [Fri, 25 Mar 2011 23:13:17 +0000 (01:13 +0200)]
v1.4.1rc4

13 years agoautoconf update
Marko Kreen [Fri, 25 Mar 2011 23:11:42 +0000 (01:11 +0200)]
autoconf update

- Move autoconf generation into ./autogen.sh
- pthread detection needs config.sub/cobfig.guess/install-sh

13 years agorefresh libusual
Marko Kreen [Fri, 25 Mar 2011 23:11:04 +0000 (01:11 +0200)]
refresh libusual

13 years agoUpdate NEWS
Marko Kreen [Fri, 25 Mar 2011 22:38:10 +0000 (00:38 +0200)]
Update NEWS

13 years agoTurn on tcp_keepalive by default.
Marko Kreen [Fri, 25 Mar 2011 21:55:03 +0000 (23:55 +0200)]
Turn on tcp_keepalive by default.

This gives pgbouncer same behaviour as Postgres,
as Postgres does it unconditionally.

Noticed by Hubert Depesz Lubaczewski.

13 years agoMention that -R requires unix_socket_dir in various places.
Marko Kreen [Fri, 25 Mar 2011 21:49:42 +0000 (23:49 +0200)]
Mention that -R requires unix_socket_dir in various places.

Requested by Hubert Depesz Lubaczewski.

13 years agoUpdate README with DNS usage info
Marko Kreen [Fri, 25 Mar 2011 21:44:18 +0000 (23:44 +0200)]
Update README with DNS usage info

13 years agoconfigure.ac: evdns logic change
Marko Kreen [Fri, 25 Mar 2011 21:26:31 +0000 (23:26 +0200)]
configure.ac: evdns logic change

- use evdns on libevent 2.x by default
- use new AC_USUAL_GETADDRINFO_A macro

13 years agov1.4.1rc3 pgbouncer_1_4_1_rc3
Marko Kreen [Wed, 23 Mar 2011 16:06:39 +0000 (18:06 +0200)]
v1.4.1rc3

13 years agoadns: log active backend
Marko Kreen [Wed, 23 Mar 2011 16:04:02 +0000 (18:04 +0200)]
adns: log active backend

13 years agoDon't expire auto DBs that are paused -- that would un-pause them.
Michael Tharp [Wed, 23 Mar 2011 13:53:10 +0000 (09:53 -0400)]
Don't expire auto DBs that are paused -- that would un-pause them.

13 years agoREADME update - CVS->GIT and more.
Marko Kreen [Tue, 22 Mar 2011 07:13:52 +0000 (09:13 +0200)]
README update - CVS->GIT and more.

13 years agoconfigure: Make --disable-evdns work.
Marko Kreen [Tue, 22 Mar 2011 06:45:08 +0000 (08:45 +0200)]
configure: Make --disable-evdns work.

13 years agov1.4.1rc2 pgbouncer_1_4_1_rc2
Marko Kreen [Mon, 21 Mar 2011 21:25:59 +0000 (23:25 +0200)]
v1.4.1rc2

13 years agoconfig.txt: mention that host= takes hostnames too.
Marko Kreen [Mon, 21 Mar 2011 21:22:06 +0000 (23:22 +0200)]
config.txt: mention that host= takes hostnames too.

13 years agoWhen first config load fails, exit.
Marko Kreen [Sun, 20 Mar 2011 21:10:40 +0000 (23:10 +0200)]
When first config load fails, exit.

Otherwise we may crash on uninitialized values.

13 years agodnslookup: Fix crash when log_noise() is turned on
Marko Kreen [Sat, 19 Mar 2011 21:57:14 +0000 (23:57 +0200)]
dnslookup: Fix crash when log_noise() is turned on

13 years agoAdd KILL command to pause a db and terminate all connections.
Michael Tharp [Fri, 18 Mar 2011 14:45:31 +0000 (10:45 -0400)]
Add KILL command to pause a db and terminate all connections.

13 years agoCreate auto databases as needed when doing PAUSE.
Michael Tharp [Fri, 18 Mar 2011 14:12:35 +0000 (10:12 -0400)]
Create auto databases as needed when doing PAUSE.

13 years agolisten_addr vs. getaddrinfo: sometimes all addressed need to be used... pgbouncer_1_4_1_rc1
Marko Kreen [Fri, 18 Mar 2011 10:18:09 +0000 (12:18 +0200)]
listen_addr vs. getaddrinfo: sometimes all addressed need to be used...

13 years agotest.sh: reset only OUTPUT chain
Marko Kreen [Fri, 18 Mar 2011 10:01:59 +0000 (12:01 +0200)]
test.sh: reset only OUTPUT chain

13 years agolisten_addr: take first working address from getaddrinfo
Marko Kreen [Thu, 17 Mar 2011 20:08:28 +0000 (22:08 +0200)]
listen_addr: take first working address from getaddrinfo

On error try next address.

Later will be checked if we found any succesfull listening
sockets and if not, exit.

13 years agorefresh libusual
Marko Kreen [Fri, 4 Mar 2011 08:32:49 +0000 (10:32 +0200)]
refresh libusual

13 years agoFix uninitialized variable problems
Marko Kreen [Thu, 3 Mar 2011 21:35:23 +0000 (23:35 +0200)]
Fix uninitialized variable problems

13 years agoasm: pass .s through cleanasm
Marko Kreen [Fri, 4 Mar 2011 08:31:10 +0000 (10:31 +0200)]
asm: pass .s through cleanasm

13 years agov1.4.1rc1
Marko Kreen [Mon, 28 Feb 2011 22:12:22 +0000 (00:12 +0200)]
v1.4.1rc1

13 years agomake zip: move zip naming to separate target
Marko Kreen [Mon, 28 Feb 2011 22:09:10 +0000 (00:09 +0200)]
make zip: move zip naming to separate target

otherwise it does not pick up correct version number from config.mak

13 years agorefresh libusual
Marko Kreen [Mon, 28 Feb 2011 20:27:19 +0000 (22:27 +0200)]
refresh libusual

13 years agoSync with libusual portability changes
Marko Kreen [Thu, 24 Feb 2011 21:25:48 +0000 (23:25 +0200)]
Sync with libusual portability changes

13 years agoFix bad hint.ai_family left from testing
Marko Kreen [Mon, 21 Feb 2011 10:21:51 +0000 (12:21 +0200)]
Fix bad hint.ai_family left from testing

13 years agoupdate news
Marko Kreen [Fri, 18 Feb 2011 14:59:15 +0000 (16:59 +0200)]
update news

13 years agoconsole: send pgbouncer version as 'server_version'
Marko Kreen [Fri, 18 Feb 2011 14:50:55 +0000 (16:50 +0200)]
console: send pgbouncer version as 'server_version'

13 years agosupport multiple listen addrs
Marko Kreen [Wed, 16 Feb 2011 13:45:18 +0000 (15:45 +0200)]
support multiple listen addrs

also non-numeric listen-addresses are now supported
due to always using getaddrinfo() on listen_addr.

13 years agoIPv6 support
Marko Kreen [Wed, 16 Feb 2011 06:57:16 +0000 (08:57 +0200)]
IPv6 support

Original patch by Hannu Krosing

13 years agorefresh libusual
Marko Kreen [Wed, 16 Feb 2011 14:08:22 +0000 (16:08 +0200)]
refresh libusual

13 years agowin32: allow cf_unix_socket_dir == NULL
Marko Kreen [Wed, 16 Feb 2011 06:43:29 +0000 (08:43 +0200)]
win32: allow cf_unix_socket_dir == NULL

13 years agorelease_server(): set ->last_lifetime_disconnect on lifetime disconnect
Marko Kreen [Fri, 11 Feb 2011 14:53:34 +0000 (16:53 +0200)]
release_server(): set ->last_lifetime_disconnect on lifetime disconnect

Spotted by Emmanuel Courreges

13 years agodoc: update links
Marko Kreen [Thu, 3 Feb 2011 10:40:02 +0000 (12:40 +0200)]
doc: update links

13 years agoupdate todo
Marko Kreen [Thu, 3 Feb 2011 10:39:50 +0000 (12:39 +0200)]
update todo

13 years agoNews update for 1.4-final pgbouncer_1_4
Marko Kreen [Tue, 11 Jan 2011 14:10:24 +0000 (16:10 +0200)]
News update for 1.4-final

13 years agoDateStyle and TimeZone server params need to use exact case.
Marko Kreen [Tue, 11 Jan 2011 14:21:10 +0000 (16:21 +0200)]
DateStyle and TimeZone server params need to use exact case.

Some clients may crash if they are not set

Also add them to console.

13 years agoAdd faq.txt to tgz
Marko Kreen [Tue, 11 Jan 2011 13:15:06 +0000 (15:15 +0200)]
Add faq.txt to tgz

13 years agotest.sh: more portable nc usage
Marko Kreen [Tue, 11 Jan 2011 12:38:00 +0000 (14:38 +0200)]
test.sh: more portable nc usage

13 years agov1.4
Marko Kreen [Wed, 8 Dec 2010 15:32:15 +0000 (17:32 +0200)]
v1.4

13 years agoWhen 'database' is missing or empty in startup packet, fallback to 'user'
Marko Kreen [Wed, 8 Dec 2010 15:30:45 +0000 (17:30 +0200)]
When 'database' is missing or empty in startup packet, fallback to 'user'

13 years agorefresh libusual
Marko Kreen [Wed, 8 Dec 2010 15:30:28 +0000 (17:30 +0200)]
refresh libusual

13 years agodebug log user/database also on startup
Marko Kreen [Wed, 8 Dec 2010 15:14:50 +0000 (17:14 +0200)]
debug log user/database also on startup

13 years agov1.4rc4
Marko Kreen [Tue, 30 Nov 2010 13:14:37 +0000 (15:14 +0200)]
v1.4rc4

13 years agomissing ;
Marko Kreen [Tue, 30 Nov 2010 13:04:28 +0000 (15:04 +0200)]
missing ;

13 years agorefresh libusual
Marko Kreen [Tue, 30 Nov 2010 13:02:21 +0000 (15:02 +0200)]
refresh libusual

13 years agoload_config: always call config_postprocess()
Marko Kreen [Tue, 30 Nov 2010 13:01:20 +0000 (15:01 +0200)]
load_config: always call config_postprocess()

otherwise dbs can be in bad state, when something fails

13 years agoloader: cannot check unix_socket here anymore
Marko Kreen [Tue, 30 Nov 2010 09:51:49 +0000 (11:51 +0200)]
loader: cannot check unix_socket here anymore