]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
lib-sql: Use generic sql connection pooling code for mysql/pgsql.
authorTimo Sirainen <tss@iki.fi>
Tue, 4 May 2010 14:55:23 +0000 (17:55 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 4 May 2010 14:55:23 +0000 (17:55 +0300)
commit6b2738c39a868ff9291867138c55029fc40cf105
tree5e217bd062308d628e1e404505080f0fa2601c37
parentfe3b19ae96f64d7bcc2500fa69a6fafc509b7f46
lib-sql: Use generic sql connection pooling code for mysql/pgsql.
It's possible to give multiple host settings to do load balancing / HA.
If one host is down, another one is tried. All queries are automatically
retried in another host if they fail in first one.

Since PostgreSQL support async queries, Dovecot can create multiple
connections to the database as needed, so it can do lookups in parallel. The
number of connections can be changed with maxconns=n in connect_query, the
default is 5.

--HG--
branch : HEAD
doc/example-config/dovecot-sql.conf.ext
src/lib-sql/Makefile.am
src/lib-sql/driver-mysql.c
src/lib-sql/driver-pgsql.c
src/lib-sql/driver-sqlite.c
src/lib-sql/driver-sqlpool.c [new file with mode: 0644]
src/lib-sql/sql-api-private.h
src/lib-sql/sql-api.c
src/lib-sql/sql-api.h