]> granicus.if.org Git - pgbouncer/log
pgbouncer
16 years agoiniparser: return whether file was found
Marko Kreen [Fri, 11 Jan 2008 20:51:22 +0000 (20:51 +0000)]
iniparser: return whether file was found

16 years agodisconnect_client: ignore notify=true if state=CL_CANCEL
Marko Kreen [Fri, 11 Jan 2008 20:48:48 +0000 (20:48 +0000)]
disconnect_client: ignore notify=true if state=CL_CANCEL

16 years agoSHOW TOTALS command to give stats summary
Marko Kreen [Fri, 11 Jan 2008 14:20:11 +0000 (14:20 +0000)]
SHOW TOTALS command to give stats summary

16 years agoif cannot login to target db at all, notify clients (by killing them)
Marko Kreen [Fri, 11 Jan 2008 14:18:44 +0000 (14:18 +0000)]
if cannot login to target db at all, notify clients (by killing them)

16 years agomore gcc warnings
Marko Kreen [Fri, 11 Jan 2008 13:24:59 +0000 (13:24 +0000)]
more gcc warnings

16 years agomake failure from event_del() non-fatal
Marko Kreen [Fri, 11 Jan 2008 13:22:49 +0000 (13:22 +0000)]
make failure from event_del() non-fatal

- pgsocket: keep open sbufs in justfree lists, retry close later
- pooler: keep track socket states, retry in per-loop main function

16 years agosuspend_timeout, to force suspend
Marko Kreen [Wed, 9 Jan 2008 13:42:47 +0000 (13:42 +0000)]
suspend_timeout, to force suspend

16 years agotodo update
Marko Kreen [Wed, 9 Jan 2008 09:28:59 +0000 (09:28 +0000)]
todo update

16 years agomove shutdown after fork(), detect old bouncer
Marko Kreen [Wed, 9 Jan 2008 09:05:44 +0000 (09:05 +0000)]
move shutdown after fork(), detect old bouncer

16 years agoremove unnecessary label
Marko Kreen [Tue, 8 Jan 2008 14:23:25 +0000 (14:23 +0000)]
remove unnecessary label

16 years agoupdate scary-R todo
Marko Kreen [Tue, 8 Jan 2008 14:21:47 +0000 (14:21 +0000)]
update scary-R todo

16 years agoasynctest: small cleanup
Marko Kreen [Tue, 8 Jan 2008 14:15:58 +0000 (14:15 +0000)]
asynctest: small cleanup

16 years agoless scary -R: move takever before fork
Marko Kreen [Tue, 8 Jan 2008 14:13:25 +0000 (14:13 +0000)]
less scary -R: move takever before fork

16 years agoasynctest: more features
Marko Kreen [Tue, 8 Jan 2008 09:47:38 +0000 (09:47 +0000)]
asynctest: more features

16 years agomove usec_t to system.h
Marko Kreen [Tue, 8 Jan 2008 09:44:29 +0000 (09:44 +0000)]
move usec_t to system.h

16 years agoreturn correct value
Marko Kreen [Tue, 8 Jan 2008 07:57:22 +0000 (07:57 +0000)]
return correct value

16 years agodraft throttling implementation
Marko Kreen [Mon, 7 Jan 2008 21:16:04 +0000 (21:16 +0000)]
draft throttling implementation

16 years agomore debugging for asynctest
Marko Kreen [Mon, 7 Jan 2008 14:50:15 +0000 (14:50 +0000)]
more debugging for asynctest

16 years agouse autoconfed settings for test code
Marko Kreen [Mon, 7 Jan 2008 10:01:16 +0000 (10:01 +0000)]
use autoconfed settings for test code

16 years agotodo update
Marko Kreen [Mon, 7 Jan 2008 09:13:23 +0000 (09:13 +0000)]
todo update

16 years agosafe_accept, safe_connect, safe_evtimer_add
Marko Kreen [Mon, 7 Jan 2008 09:02:09 +0000 (09:02 +0000)]
safe_accept, safe_connect, safe_evtimer_add

16 years agofix some printf casts
Marko Kreen [Mon, 7 Jan 2008 09:00:14 +0000 (09:00 +0000)]
fix some printf casts

16 years agomore universal asynctest
Marko Kreen [Mon, 7 Jan 2008 08:40:17 +0000 (08:40 +0000)]
more universal asynctest

16 years agodont avoid maint if event loop is interrupted
Marko Kreen [Fri, 4 Jan 2008 12:56:41 +0000 (12:56 +0000)]
dont avoid maint if event loop is interrupted

16 years agowith as-needed the lib order is important
Marko Kreen [Fri, 4 Jan 2008 12:56:06 +0000 (12:56 +0000)]
with as-needed the lib order is important

16 years agohandle EINTR from connect()
Marko Kreen [Fri, 4 Jan 2008 09:12:54 +0000 (09:12 +0000)]
handle EINTR from connect()

16 years agohandle more errors from accept()
Marko Kreen [Fri, 4 Jan 2008 08:55:17 +0000 (08:55 +0000)]
handle more errors from accept()

16 years agoproper usage of flexible array
Marko Kreen [Fri, 4 Jan 2008 07:57:01 +0000 (07:57 +0000)]
proper usage of flexible array

16 years agolooping accept() to drain backlog fully
Marko Kreen [Thu, 3 Jan 2008 21:42:31 +0000 (21:42 +0000)]
looping accept() to drain backlog fully

16 years agosuspend in finish_client_login wont work as current packet is still in sbuf
Marko Kreen [Thu, 3 Jan 2008 10:03:53 +0000 (10:03 +0000)]
suspend in finish_client_login wont work as current packet is still in sbuf

16 years agopkt_action conversion broke assert
Marko Kreen [Thu, 3 Jan 2008 09:40:48 +0000 (09:40 +0000)]
pkt_action conversion broke assert

16 years agoallow autoconf 2.59
Marko Kreen [Thu, 3 Jan 2008 09:05:10 +0000 (09:05 +0000)]
allow autoconf 2.59

16 years agolet make clean work even if config.mak does not exist
Marko Kreen [Wed, 2 Jan 2008 20:03:59 +0000 (20:03 +0000)]
let make clean work even if config.mak does not exist

16 years agoerror checks for all libevent calls
Marko Kreen [Wed, 2 Jan 2008 15:35:50 +0000 (15:35 +0000)]
error checks for all libevent calls

try to survive errors delicately, by dropping connection where possible.

Thats not yet possible for event_del() and evtimer_add(), exit immidiately then.

16 years agouse gcc attributes to uncover few correctness bugs
Marko Kreen [Wed, 2 Jan 2008 09:50:16 +0000 (09:50 +0000)]
use gcc attributes to uncover few correctness bugs

16 years agoexplicit strcmp result check
Marko Kreen [Wed, 2 Jan 2008 09:48:02 +0000 (09:48 +0000)]
explicit strcmp result check

16 years agotodo update: new states
Marko Kreen [Thu, 20 Dec 2007 14:37:39 +0000 (14:37 +0000)]
todo update: new states

16 years agopartial support for builddir != srcdir
Marko Kreen [Wed, 19 Dec 2007 13:22:36 +0000 (13:22 +0000)]
partial support for builddir != srcdir

16 years agoremove direct sparse usage, rather use cgcc
Marko Kreen [Wed, 19 Dec 2007 12:40:58 +0000 (12:40 +0000)]
remove direct sparse usage, rather use cgcc

16 years agoverbose asm hack
Marko Kreen [Wed, 12 Dec 2007 09:27:15 +0000 (09:27 +0000)]
verbose asm hack

16 years agoremove generated manpages from cvs, they are annoying
Marko Kreen [Wed, 12 Dec 2007 08:17:19 +0000 (08:17 +0000)]
remove generated manpages from cvs, they are annoying

16 years agofake some SHOW/SET parameters to let psycopg connect to console
Marko Kreen [Tue, 11 Dec 2007 16:49:33 +0000 (16:49 +0000)]
fake some SHOW/SET parameters to let psycopg connect to console

16 years agoavoid duplicate error msg packet from console
Marko Kreen [Tue, 11 Dec 2007 16:23:51 +0000 (16:23 +0000)]
avoid duplicate error msg packet from console

16 years agohelper macro for notice pkt
Marko Kreen [Tue, 11 Dec 2007 16:21:25 +0000 (16:21 +0000)]
helper macro for notice pkt

16 years agocheck if linker supports --as-needed
Marko Kreen [Tue, 11 Dec 2007 08:27:59 +0000 (08:27 +0000)]
check if linker supports --as-needed

16 years agoupdate todo list
Marko Kreen [Mon, 10 Dec 2007 16:36:19 +0000 (16:36 +0000)]
update todo list

16 years agoint/ptr hash function
Marko Kreen [Thu, 6 Dec 2007 09:18:15 +0000 (09:18 +0000)]
int/ptr hash function

16 years agonew features to SBuf
Marko Kreen [Thu, 6 Dec 2007 09:11:07 +0000 (09:11 +0000)]
new features to SBuf

- struct field reorder to get aligned buffer
- support rewriting pkt header
- support listening for full pkt data
- clean some comments

16 years agodebug noise to show struct sizes
Marko Kreen [Thu, 6 Dec 2007 09:08:04 +0000 (09:08 +0000)]
debug noise to show struct sizes

16 years agosupport sending log to syslog
Marko Kreen [Thu, 6 Dec 2007 08:32:42 +0000 (08:32 +0000)]
support sending log to syslog

16 years agolog more details about fd usage
Marko Kreen [Thu, 6 Dec 2007 07:29:17 +0000 (07:29 +0000)]
log more details about fd usage

16 years agoseems Wextra does not turn on all warnings
Marko Kreen [Wed, 5 Dec 2007 20:22:20 +0000 (20:22 +0000)]
seems Wextra does not turn on all warnings

16 years agolog connection age on disconnect
Marko Kreen [Tue, 4 Dec 2007 09:22:30 +0000 (09:22 +0000)]
log connection age on disconnect

16 years agoallow strcmp() and memcpy() be macros
Marko Kreen [Mon, 26 Nov 2007 10:45:51 +0000 (10:45 +0000)]
allow strcmp() and memcpy() be macros

16 years agofix from -stable: if client has params but server not, re-SET
Marko Kreen [Sat, 24 Nov 2007 19:35:22 +0000 (19:35 +0000)]
fix from -stable: if client has params but server not, re-SET

16 years agoavoid use of strncpy()
Marko Kreen [Fri, 23 Nov 2007 10:59:41 +0000 (10:59 +0000)]
avoid use of strncpy()

16 years agohash.c: use system.h
Marko Kreen [Fri, 23 Nov 2007 10:58:34 +0000 (10:58 +0000)]
hash.c: use system.h

16 years agosystem.h improvements
Marko Kreen [Fri, 23 Nov 2007 10:57:42 +0000 (10:57 +0000)]
system.h improvements

- typedef bool to uchar instead of enum - clearer signedness behaviour
- clean Assert() def
- general memcpy() optimization
- general strcmp() optimization

16 years agoadd !=0 to strcmp()
Marko Kreen [Fri, 23 Nov 2007 10:45:47 +0000 (10:45 +0000)]
add !=0 to strcmp()

16 years agohash: remove the silly optimization, its better to keep code clean
Marko Kreen [Wed, 21 Nov 2007 15:59:00 +0000 (15:59 +0000)]
hash: remove the silly optimization, its better to keep code clean

16 years agoadd faq, some cleanups
Marko Kreen [Wed, 21 Nov 2007 15:30:25 +0000 (15:30 +0000)]
add faq, some cleanups

16 years agoseparate disconnects from each other to avoid reconnect flood
Marko Kreen [Wed, 21 Nov 2007 15:18:25 +0000 (15:18 +0000)]
separate disconnects from each other to avoid reconnect flood

requested by Simon Riggs

16 years agoparam value can be NULL during restart from 1.0.8
Marko Kreen [Tue, 20 Nov 2007 08:34:15 +0000 (08:34 +0000)]
param value can be NULL during restart from 1.0.8

16 years agoremove unnecessary fill_*_addr logging
Marko Kreen [Mon, 19 Nov 2007 14:15:44 +0000 (14:15 +0000)]
remove unnecessary fill_*_addr logging

17 years agojenkins hash: optimize last memcpy
Marko Kreen [Thu, 8 Nov 2007 21:32:40 +0000 (21:32 +0000)]
jenkins hash: optimize last memcpy

compiler cannot optimize variable-size memcpy.
use a inlined simple version then.

That makes this version always faster than
Jenkins version on Core Duo.  On other cpu-s
its +3% win although still slower than Jenkins'.

17 years agocomment cleanup, use original macro names
Marko Kreen [Mon, 5 Nov 2007 15:49:18 +0000 (15:49 +0000)]
comment cleanup, use original macro names

17 years agomd5.c: sync with endianess changes made in pgsql tree
Marko Kreen [Fri, 2 Nov 2007 12:01:57 +0000 (12:01 +0000)]
md5.c: sync with endianess changes made in pgsql tree

17 years agouse standard int types
Marko Kreen [Thu, 1 Nov 2007 21:02:28 +0000 (21:02 +0000)]
use standard int types

17 years agomove include files to separate dir
Marko Kreen [Thu, 1 Nov 2007 19:52:20 +0000 (19:52 +0000)]
move include files to separate dir

17 years agosimple version of jenkins hash
Marko Kreen [Thu, 1 Nov 2007 08:29:08 +0000 (08:29 +0000)]
simple version of jenkins hash

the attempt to have clean + optimized did not work out as it was not very clean
nor very optimized - on some arches slower than bob's original.

so instead lets use simplest possible variant.  it happens to be no more than 10%
slower worst case and occasinally even faster (when gcc knows it can do unaligned
access).  seems like good tradeoff.

17 years agouse unlikely() in debug macros
Marko Kreen [Wed, 31 Oct 2007 14:04:47 +0000 (14:04 +0000)]
use unlikely() in debug macros

17 years agosimpler warning args
Marko Kreen [Fri, 26 Oct 2007 15:14:11 +0000 (15:14 +0000)]
simpler warning args

17 years agoslab allocator improvements
Marko Kreen [Fri, 26 Oct 2007 15:12:12 +0000 (15:12 +0000)]
slab allocator improvements

- keep track of slabs
- allow deallocation of whole cache
- default alignment from sys/param.h
- allow NULL helper functions
- keep copy of name

17 years agofix signedness warnings in code
Marko Kreen [Fri, 26 Oct 2007 09:12:33 +0000 (09:12 +0000)]
fix signedness warnings in code

17 years agofix some typos
Marko Kreen [Sat, 20 Oct 2007 09:20:19 +0000 (09:20 +0000)]
fix some typos

17 years agocommon object allocator
Marko Kreen [Sat, 20 Oct 2007 09:18:25 +0000 (09:18 +0000)]
common object allocator

17 years agotag cvs tree as 1.2.cvs
Marko Kreen [Sat, 20 Oct 2007 09:16:46 +0000 (09:16 +0000)]
tag cvs tree as 1.2.cvs

17 years agoReplace the array hack for user lookup with tree
Marko Kreen [Fri, 19 Oct 2007 21:15:17 +0000 (21:15 +0000)]
Replace the array hack for user lookup with tree

17 years agoNew tools: AA-tree and Jenkins hash.
Marko Kreen [Fri, 19 Oct 2007 08:40:32 +0000 (08:40 +0000)]
New tools: AA-tree and Jenkins hash.

17 years agosanity check before trying to set parameters
Marko Kreen [Thu, 18 Oct 2007 12:19:11 +0000 (12:19 +0000)]
sanity check before trying to set parameters

17 years agoMake sure server->vars is always initialized.
Marko Kreen [Thu, 18 Oct 2007 12:18:27 +0000 (12:18 +0000)]
Make sure server->vars is always initialized.

17 years agobump ver to 1.1.1
Marko Kreen [Mon, 15 Oct 2007 14:54:29 +0000 (14:54 +0000)]
bump ver to 1.1.1

17 years agoforgot to put fixman.py into tgz
Marko Kreen [Mon, 15 Oct 2007 14:50:04 +0000 (14:50 +0000)]
forgot to put fixman.py into tgz

17 years agoDisable init.d script, add as example. pgbouncer_1_1
Marko Kreen [Tue, 9 Oct 2007 08:56:41 +0000 (08:56 +0000)]
Disable init.d script, add as example.

Pgbouncer does not have enough infra yet to run
as boot-up daemon (chroot, setuid, etc)

Postponed after 1.1.

17 years agoAdd init.d script to debian package.
Marko Kreen [Tue, 9 Oct 2007 08:37:12 +0000 (08:37 +0000)]
Add init.d script to debian package.

By Dimitri Fontaine

17 years agoinclude tests in final tgz
Marko Kreen [Tue, 9 Oct 2007 08:17:23 +0000 (08:17 +0000)]
include tests in final tgz

17 years agoupdate NEWS for 1.1
Marko Kreen [Tue, 9 Oct 2007 08:16:56 +0000 (08:16 +0000)]
update NEWS for 1.1

17 years agomore doc update
Marko Kreen [Tue, 9 Oct 2007 08:01:03 +0000 (08:01 +0000)]
more doc update

17 years agorename docs in dist target also
Marko Kreen [Mon, 8 Oct 2007 10:09:57 +0000 (10:09 +0000)]
rename docs in dist target also

17 years agorevert back to old doc names
Marko Kreen [Mon, 8 Oct 2007 10:06:02 +0000 (10:06 +0000)]
revert back to old doc names

17 years agoShow local address in SHOW CLIENTS/SERVERS/SOCKETS;
Marko Kreen [Mon, 8 Oct 2007 09:50:55 +0000 (09:50 +0000)]
Show local address in SHOW CLIENTS/SERVERS/SOCKETS;

Also include 'ptr' and 'link' fields in SHOW CLIENTS/SERVERS;

17 years agoexpand a comment
Marko Kreen [Mon, 8 Oct 2007 07:16:47 +0000 (07:16 +0000)]
expand a comment

17 years agoswitch to toggle between LIFO and round-robin
Marko Kreen [Mon, 8 Oct 2007 07:06:41 +0000 (07:06 +0000)]
switch to toggle between LIFO and round-robin

17 years agodoc updates
Marko Kreen [Mon, 8 Oct 2007 06:57:58 +0000 (06:57 +0000)]
doc updates

17 years agotest for endianess in configure
Marko Kreen [Mon, 8 Oct 2007 06:51:24 +0000 (06:51 +0000)]
test for endianess in configure

17 years agomore testing
Marko Kreen [Wed, 3 Oct 2007 12:51:45 +0000 (12:51 +0000)]
more testing

17 years agopool_size doc
Marko Kreen [Wed, 3 Oct 2007 11:43:36 +0000 (11:43 +0000)]
pool_size doc

17 years agomore todo
Marko Kreen [Wed, 3 Oct 2007 09:15:40 +0000 (09:15 +0000)]
more todo

17 years agoremove too paranoid fd cleanup
Marko Kreen [Wed, 12 Sep 2007 09:32:49 +0000 (09:32 +0000)]
remove too paranoid fd cleanup

17 years agoproper login log
Marko Kreen [Wed, 12 Sep 2007 09:16:52 +0000 (09:16 +0000)]
proper login log