1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
|
PgBouncer
=========
Lightweight connection pooler for PostgreSQL.
Docs: http://developer.skype.com/SkypeGarage/DbProjects/PgBouncer
Source: http://pgfoundry.org/projects/pgbouncer
Building
---------
PgBouncer uses libevent for low-level socket handling.
Libevent needs to be at least version 1.3b.
When this is installed just run:
$ ./configure --prefix=/usr/local --with-libevent=/prefix
$ make
$ make install
If the OS does not have libevent available as package, it can be
downloaded from http://monkey.org/~provos/libevent/
Building from CVS
-----------------
Building PgBouncer from CVS requires that you generate the header
and config files before you can run configure:
$ make boot
$ ./configure ...
$ make
To have manpages, asciidoc 8.x and xmlto need to be installed,
as CVS does not contain generated pages. Without those,
manpages are skipped when building/installing.
Building for WIN32
------------------
At the moment only build env tested is MINGW32 / MSYS. Cygwin
and Visual $ANYTHING are untested. In addition to libevent you
need GNU regex library (http://gnuwin32.sourceforge.net/packages/regex.htm[]).
Then do the usual:
$ ./configure ...
$ make
If cross-compiling from Unix:
$ ./configure --host=i586-mingw32msvc ...
Running on WIN32
----------------
Running from command-line goes as usual, except -d (daemonize),
-R (reboot) and -u (switch user) switches will not work.
To run pgbouncer as a service, you need to configure
`service_name` parameter to set name for service. Then:
$ pgbouncer -regservice config.ini
To uninstall service:
$ pgbouncer -unregservice config.ini
To use Windows Event Log, set "syslog = 1" in config file.
But before you need to register pgbevent.dll:
$ regsvr32 pgbevent.dll
To unregister it, do `regsvr32 /u pgbevent.dll`.
|