]>
granicus.if.org Git - pgbouncer/log
Marko Kreen [Sat, 6 Dec 2008 23:33:27 +0000 (23:33 +0000)]
locatime weirdness wasnt windows specific...
Marko Kreen [Thu, 4 Dec 2008 16:27:05 +0000 (16:27 +0000)]
win32: tm_mon fix for localtime() (Hiroshi Saito)
Marko Kreen [Thu, 4 Dec 2008 16:07:08 +0000 (16:07 +0000)]
win32: rename support files
Marko Kreen [Thu, 4 Dec 2008 15:34:23 +0000 (15:34 +0000)]
win32: more cleanups
- emulate fcntl instead using #ifdef
- getsockopt() and select() also need wrapping
- move syslog declarations into compat_win32.h
Marko Kreen [Thu, 4 Dec 2008 10:57:38 +0000 (10:57 +0000)]
win32: implement kill()
Patch by Hiroshi Saito, applied with some modifications.
Marko Kreen [Thu, 4 Dec 2008 10:06:09 +0000 (10:06 +0000)]
win32: implement sendmsg, move cmdline handling away from main.c
Marko Kreen [Wed, 3 Dec 2008 11:41:44 +0000 (11:41 +0000)]
win32: fix locatime
Marko Kreen [Wed, 3 Dec 2008 11:34:28 +0000 (11:34 +0000)]
win32: errno fixes
- switch errors around to correspond to what gets returned
- somewhat working strerror()
Marko Kreen [Wed, 3 Dec 2008 11:04:06 +0000 (11:04 +0000)]
win32: more fixes
- move socket errors back to errno
- don't call closesocket() on plain files
Marko Kreen [Wed, 3 Dec 2008 11:02:20 +0000 (11:02 +0000)]
win32: change name of eventmsg
Marko Kreen [Fri, 28 Nov 2008 08:31:21 +0000 (08:31 +0000)]
remove the mc.exe detection, it not available anyway
Marko Kreen [Wed, 26 Nov 2008 23:09:06 +0000 (23:09 +0000)]
Quick win32 fixes.
It not only compiles now, but even boots..
Marko Kreen [Mon, 24 Nov 2008 11:45:25 +0000 (11:45 +0000)]
remove unnecessary CVS ids, update AUTHORS
Marko Kreen [Mon, 24 Nov 2008 11:31:46 +0000 (11:31 +0000)]
win32 support (wip)
Original patch by Hiroshi Saito, applied with some cleanup
Marko Kreen [Sat, 22 Nov 2008 09:41:32 +0000 (09:41 +0000)]
Make crypt authentication optional.
It was removed from PostgreSQL 8.4 sources.
Marko Kreen [Wed, 19 Nov 2008 12:50:05 +0000 (12:50 +0000)]
Dynamic database creation for non-defined databases.
Activated by "*" entry in [databases] section.
Patch by David Galoyan
Marko Kreen [Wed, 19 Nov 2008 12:16:15 +0000 (12:16 +0000)]
asynctest improvements
- add $(LIBS) to link line
- allow custom query
- define fatal_noexit() for CASSERT builds
Marko Kreen [Wed, 19 Nov 2008 12:10:50 +0000 (12:10 +0000)]
add milliseconds to log timestamps
Marko Kreen [Wed, 19 Nov 2008 12:06:37 +0000 (12:06 +0000)]
New tunable 'sbuf_loopcnt' to limit time spent on one socket.
In some situations - eg SMP server, local Postgres and fast network -
pgbouncer can run recv()->send() loop many times without blocking
on either side. But that means other connections will stall for
a long time. To make processing more fair, limit the times
of doing recv()->send() one socket. If count reaches limit,
just proceed processing other sockets. The processing for
that socket will resume on next event loop.
Thanks to Alexander Schöcke for report and testing.
Marko Kreen [Wed, 19 Nov 2008 11:54:46 +0000 (11:54 +0000)]
debug: log connection endpoints
Marko Kreen [Wed, 19 Nov 2008 11:51:23 +0000 (11:51 +0000)]
Change default port number from 6000 to 6432.
6000 is conflicts with X, 6432 seems free and is already used by Debian.
Marko Kreen [Tue, 30 Sep 2008 10:17:13 +0000 (10:17 +0000)]
quiet compiler warning about ptr->int conversion
Marko Kreen [Thu, 25 Sep 2008 10:25:59 +0000 (10:25 +0000)]
stop playing with -fomit-frame-pointer
Marko Kreen [Fri, 5 Sep 2008 11:02:08 +0000 (11:02 +0000)]
Default to --enable-debug
To get the old behaviour - stripped binary and -fomit-frame-pointer
in CFLAGS, --disable-debug must be used.
Allowing debugging by default seems saner.
Marko Kreen [Thu, 4 Sep 2008 13:02:13 +0000 (13:02 +0000)]
Put own includes at the startt of CPPFLAGS
Otherwise with --with-libevent=/usr wrong includes may be used.
Per report from Bjorn Munch
Marko Kreen [Fri, 22 Aug 2008 17:50:37 +0000 (17:50 +0000)]
compact md5 implementation
Marko Kreen [Fri, 22 Aug 2008 17:22:30 +0000 (17:22 +0000)]
full quoting for database names
Marko Kreen [Fri, 22 Aug 2008 14:28:02 +0000 (14:28 +0000)]
tag head as 1.3
Marko Kreen [Fri, 8 Aug 2008 13:32:55 +0000 (13:32 +0000)]
include userlist.txt in tgz
Marko Kreen [Fri, 8 Aug 2008 13:26:43 +0000 (13:26 +0000)]
disable untested SO_ACCEPTFILTER code
Marko Kreen [Fri, 8 Aug 2008 12:44:17 +0000 (12:44 +0000)]
v1.2.3
Marko Kreen [Fri, 8 Aug 2008 12:33:24 +0000 (12:33 +0000)]
detect stale pidfile
Marko Kreen [Fri, 8 Aug 2008 11:28:16 +0000 (11:28 +0000)]
add Jørgen
Marko Kreen [Fri, 8 Aug 2008 11:16:20 +0000 (11:16 +0000)]
allow first libevent test pass on 1.1
Marko Kreen [Fri, 8 Aug 2008 11:10:28 +0000 (11:10 +0000)]
glibc requires use of _GNU_SOURCE
Marko Kreen [Fri, 8 Aug 2008 08:28:55 +0000 (08:28 +0000)]
Change the makefile to use "$(MAKE)" instead of "make".
Patch from Jørgen Austvik
Marko Kreen [Wed, 6 Aug 2008 10:32:51 +0000 (10:32 +0000)]
asynctest: remove note about splice() experiments
Marko Kreen [Wed, 6 Aug 2008 08:39:41 +0000 (08:39 +0000)]
tag 1.2.2
Marko Kreen [Wed, 6 Aug 2008 06:43:40 +0000 (06:43 +0000)]
Remove drop_on_error, it was a bad idea.
It was a workaround for broken plan-cache in Postgres,
but it's behviour for common case - some queries giving always errors -
is very nasty - it can drop all connections in pool.
Marko Kreen [Wed, 6 Aug 2008 06:31:42 +0000 (06:31 +0000)]
asynctest: check if result comes back ok
Marko Kreen [Mon, 4 Aug 2008 11:55:52 +0000 (11:55 +0000)]
mention log msg cleanup
Marko Kreen [Mon, 4 Aug 2008 11:46:38 +0000 (11:46 +0000)]
v1.2.1
Marko Kreen [Mon, 4 Aug 2008 11:45:44 +0000 (11:45 +0000)]
wording cleanup for drop_on_error
Marko Kreen [Mon, 4 Aug 2008 11:08:23 +0000 (11:08 +0000)]
cancel shutdown on resume
otherwise admin gets bad surprise on next pause
Marko Kreen [Mon, 4 Aug 2008 10:58:26 +0000 (10:58 +0000)]
exit immediately on SIGINT if suspend was in progress
Marko Kreen [Mon, 4 Aug 2008 10:51:06 +0000 (10:51 +0000)]
suspend_socket_list can drop sockets, so needs _safe
Marko Kreen [Mon, 4 Aug 2008 08:56:53 +0000 (08:56 +0000)]
proper log message for console client cancel
Marko Kreen [Mon, 4 Aug 2008 08:44:48 +0000 (08:44 +0000)]
cleaner socket_row()
Marko Kreen [Fri, 1 Aug 2008 17:25:32 +0000 (17:25 +0000)]
sys/uio.h is required for struct iover on some systems
(eg. DragonFly)
Marko Kreen [Fri, 1 Aug 2008 17:20:24 +0000 (17:20 +0000)]
log if drop_on_error triggers
Marko Kreen [Fri, 1 Aug 2008 12:51:54 +0000 (12:51 +0000)]
admin.c: dont crash if socket has no buffer
Marko Kreen [Fri, 1 Aug 2008 10:10:48 +0000 (10:10 +0000)]
change ver to 1.2.1
Marko Kreen [Fri, 1 Aug 2008 10:10:11 +0000 (10:10 +0000)]
new drop_on_error param
Marko Kreen [Tue, 29 Jul 2008 11:23:31 +0000 (11:23 +0000)]
release 1.2
Marko Kreen [Mon, 21 Jul 2008 11:33:13 +0000 (11:33 +0000)]
test/Makefile: add DEFS to cflags
Marko Kreen [Wed, 16 Jul 2008 14:37:39 +0000 (14:37 +0000)]
tag 1.2rc2
Marko Kreen [Wed, 16 Jul 2008 14:35:53 +0000 (14:35 +0000)]
test: increase allowed conns, decrease buffer len
Marko Kreen [Wed, 16 Jul 2008 14:34:23 +0000 (14:34 +0000)]
few doc cleanups
Marko Kreen [Wed, 16 Jul 2008 14:26:47 +0000 (14:26 +0000)]
Further memory conservation by making state bitfield :8.
Does this need #ifdef __GCC__?
Marko Kreen [Wed, 9 Jul 2008 16:27:24 +0000 (16:27 +0000)]
log proper reason for disconnect
Marko Kreen [Tue, 8 Jul 2008 20:01:56 +0000 (20:01 +0000)]
remove extra argument for SBuf callback
conserves memory and conforms more with general coding style.
plus few cleanups
Marko Kreen [Thu, 3 Jul 2008 13:07:28 +0000 (13:07 +0000)]
dont waste room for storing login-time salt.
Instead store it in cancel_key[], as it is used
only once, before generating the cancel_key.
Marko Kreen [Thu, 3 Jul 2008 13:01:19 +0000 (13:01 +0000)]
decrease noise from bad connections
the accepting new connection does not need to stop if bad one appears.
Marko Kreen [Fri, 27 Jun 2008 10:34:18 +0000 (10:34 +0000)]
keep mtime in tgz
Marko Kreen [Fri, 27 Jun 2008 10:33:56 +0000 (10:33 +0000)]
duplicate tagline
Marko Kreen [Thu, 26 Jun 2008 14:51:03 +0000 (14:51 +0000)]
require libevent >= 1.3b
Marko Kreen [Thu, 26 Jun 2008 14:42:49 +0000 (14:42 +0000)]
make failed tests more visible
Marko Kreen [Wed, 25 Jun 2008 18:03:20 +0000 (18:03 +0000)]
tag 1.2rc1
Marko Kreen [Wed, 25 Jun 2008 17:58:37 +0000 (17:58 +0000)]
require libevent 1.2+
Marko Kreen [Wed, 25 Jun 2008 17:39:16 +0000 (17:39 +0000)]
News for 1.2
Marko Kreen [Wed, 25 Jun 2008 17:18:12 +0000 (17:18 +0000)]
sync some doc fixes from -stable
Marko Kreen [Wed, 25 Jun 2008 17:06:34 +0000 (17:06 +0000)]
New config parameter: ignore_startup_parameters
Can be used to allow clients issue random parameters.
Mostly needed to handle JDBC extra_float_digits braindamage.
Marko Kreen [Wed, 25 Jun 2008 16:52:51 +0000 (16:52 +0000)]
New database setting: connect_query
Specifies a query to be executed after connection is established.
Original patch by Teodor Sigaev, applied with minor modifications
Marko Kreen [Wed, 25 Jun 2008 16:25:13 +0000 (16:25 +0000)]
update contributors list
Marko Kreen [Wed, 25 Jun 2008 15:07:36 +0000 (15:07 +0000)]
basename may be non-const on some systems, make cf_username static
Marko Kreen [Wed, 25 Jun 2008 15:06:22 +0000 (15:06 +0000)]
drop too clever optimizations from system.h
Marko Kreen [Wed, 25 Jun 2008 14:53:28 +0000 (14:53 +0000)]
include both pwd.h and grp.h in system.c and autoconf them
Marko Kreen [Wed, 25 Jun 2008 14:47:54 +0000 (14:47 +0000)]
Build fixes for Solaris
* Use __func__ and define it to __FUNCTION__ if not defined.
it's the C99 standard.
* Tests for certain linking libraries (libnsl, libsocket, libresolv) (configure.ac)
* Defines INADDR_NONE if not defined
* Search for <ucred.h> in addition to <sys/ucred.h> (configure.ac)
* Changes include of <sys/errno.h> to <errno.h>.
I _think_ this should be safe on all platforms (and it's the standard)
* Changes local variable name s_addr to saddr in takeover.c.
s_addr is a Single Unix Specification defined name.
* Checks if LOG_AUTHPRIV exists (it does not in Solaris)
Original patch by Magne Mæhre, applied with minor changes
Marko Kreen [Wed, 4 Jun 2008 14:22:30 +0000 (14:22 +0000)]
fix < vs <= difference between iobuf.h and sbuf.c
This might fix the problem Jacob Coby reported:
http://lists.pgfoundry.org/pipermail/pgbouncer-general/2008-March/000161.html
Marko Kreen [Wed, 4 Jun 2008 14:15:48 +0000 (14:15 +0000)]
support docdir on 2.59
Marko Kreen [Wed, 5 Mar 2008 09:44:12 +0000 (09:44 +0000)]
admin.c: allow missing iobuf
Marko Kreen [Wed, 5 Mar 2008 09:06:55 +0000 (09:06 +0000)]
asynctest: print first startup errors
Marko Kreen [Tue, 4 Mar 2008 20:48:49 +0000 (20:48 +0000)]
Add instructions on how to build from CVS.
Suggested by Jason Coby.
Marko Kreen [Tue, 4 Mar 2008 20:31:10 +0000 (20:31 +0000)]
sbuf.c: fix typo, lower priority
Marko Kreen [Tue, 4 Mar 2008 13:38:05 +0000 (13:38 +0000)]
document new -u/user= option
Marko Kreen [Tue, 4 Mar 2008 12:47:03 +0000 (12:47 +0000)]
move admin-setup after setuid, srandom() after fork()
Marko Kreen [Tue, 4 Mar 2008 12:43:34 +0000 (12:43 +0000)]
Cmdline option and config param to support user switching.
Original patch from Jason Coby, applied with minor modifications.
Marko Kreen [Tue, 4 Mar 2008 12:20:34 +0000 (12:20 +0000)]
admin.c: add file comment
Marko Kreen [Tue, 4 Mar 2008 12:09:02 +0000 (12:09 +0000)]
More descriptive usage screen.
Slightly modified from patch by Jacob Coby.
Marko Kreen [Tue, 4 Mar 2008 11:55:55 +0000 (11:55 +0000)]
detect basename() function, include small compat func if missing
Marko Kreen [Thu, 14 Feb 2008 15:25:14 +0000 (15:25 +0000)]
disable attribute hacks on older gccs
Marko Kreen [Thu, 14 Feb 2008 14:35:52 +0000 (14:35 +0000)]
convert SBuf api also to unsigned int
Marko Kreen [Thu, 14 Feb 2008 14:21:56 +0000 (14:21 +0000)]
add Wstrict-overflow to warn options
Marko Kreen [Thu, 14 Feb 2008 14:02:05 +0000 (14:02 +0000)]
make IOBuf use unsigned ints
Marko Kreen [Thu, 14 Feb 2008 13:38:52 +0000 (13:38 +0000)]
system.h + types cleanup
- use proper printf args from inttypes.h instead of casting to ull
- remove unused macros
- tag replacement functions as _mustcheck
Marko Kreen [Thu, 14 Feb 2008 13:17:21 +0000 (13:17 +0000)]
fix getsockopt argument
Marko Kreen [Thu, 24 Jan 2008 13:04:30 +0000 (13:04 +0000)]
Mark hash.c as public domain because Jenkins original code is
Marko Kreen [Thu, 24 Jan 2008 09:24:30 +0000 (09:24 +0000)]
log string truncation by strlcpy
Marko Kreen [Wed, 23 Jan 2008 16:07:51 +0000 (16:07 +0000)]
do memset in pgsocket init due to slab changes
Marko Kreen [Wed, 23 Jan 2008 11:08:00 +0000 (11:08 +0000)]
test.sh: sleep after launching nc, fix syntax