debian/0000775000000000000000000000000012276730516007201 5ustar debian/rules0000775000000000000000000000452012276727200010256 0ustar #!/usr/bin/make -f SRCDIR = . include /usr/share/postgresql-common/pgxs_debian_control.mk clean: debian/control .PHONY: debian/control LDFLAGS += -Wl,--as-needed D=debian/pgpool2 override_dh_auto_clean: dh_auto_clean $(MAKE) -C sql clean rm -f config.log lex.yy.c $(MAKE) -C pgpool_adm clean USE_PGXS=1 rm -rf test/jdbc/*.class test/jdbc/result test/jdbc/pgpool.properties $(MAKE) -C test/parser clean rm -rf test/parser/result test/parser/test.diff $(MAKE) -C test/timestamp clean rm -rf test/timestamp/result test/timestamp/test.diff rm -rf debian/postgresql-*-pgpool2/ debian/*.substvars override_dh_auto_configure: ./configure --prefix=/usr \ --sysconfdir=/etc/pgpool2 \ --bindir=/usr/sbin \ --includedir=/usr/include/pgpool2 \ --disable-rpath \ --with-openssl \ --with-pam \ --with-memcached=/usr/include/libmemcached # create directory here so we can unlink it in case autopkgtest leaves files owned by root behind mkdir -p test/jdbc/result override_dh_auto_test: dh_auto_test $(MAKE) -C test/parser test chmod +x test/timestamp/run-test $(MAKE) -C test/timestamp test # test/jdbc is executed by autopkgtest override_dh_auto_install: dh_auto_install set -e ; \ for v in `pg_buildext supported-versions .` ; do \ echo "# $$v ##################################################################" ; \ PG_CONFIG=/usr/lib/postgresql/$$v/bin/pg_config ; \ $(MAKE) -C sql clean PG_CONFIG=$$PG_CONFIG ; \ $(MAKE) -C sql PG_CONFIG=$$PG_CONFIG ; \ $(MAKE) -C sql install DESTDIR=$(CURDIR)/debian/postgresql-$$v-pgpool2 PG_CONFIG=$$PG_CONFIG ; \ if [ -f $$($$PG_CONFIG --includedir-server)/foreign/foreign.h ] ; then \ $(MAKE) -C pgpool_adm clean USE_PGXS=1 PG_CONFIG=$$PG_CONFIG ; \ $(MAKE) -C pgpool_adm USE_PGXS=1 PG_CONFIG=$$PG_CONFIG CFLAGS="-I$$($$PG_CONFIG --includedir-server) $(CFLAGS) -I../pcp" LDFLAGS="$(LDFLAGS) -L../pcp/.libs" ; \ $(MAKE) -C pgpool_adm install DESTDIR=$(CURDIR)/debian/postgresql-$$v-pgpool2 USE_PGXS=1 PG_CONFIG=$$PG_CONFIG ; \ fi \ done override_dh_install: # pgpool.conf is handled by ucf mkdir -p debian/tmp/usr/share/pgpool2 mv debian/tmp/etc/pgpool2/pgpool.conf.sample debian/tmp/usr/share/pgpool2/pgpool.conf set -e ; for f in pcp.conf pool_hba.conf ; do mv debian/tmp/etc/pgpool2/$$f.sample debian/tmp/etc/pgpool2/$$f ; done dh_install --list-missing %: dh $@ --with autoreconf debian/watch0000664000000000000000000000013312276727200010223 0ustar version=3 http://www.pgpool.net/mediawiki/index.php/Downloads .*pgpool-II-([0-9.]+).tar.gz debian/svn-deblayout0000664000000000000000000000002712276727200011713 0ustar origDir=../../upstream debian/changelog0000664000000000000000000002173312276730477011067 0ustar pgpool2 (3.3.2-1ubuntu1) trusty; urgency=medium * Merge from Debian unstable. Remaining changes: - Use dh-autoreconf to get new libtool macros for ppc64el. -- Logan Rosen Wed, 12 Feb 2014 12:36:36 -0500 pgpool2 (3.3.2-1) unstable; urgency=low * New upstream release. * postinst: Do not die if pgpool2.conf was removed by the user (ucf will preserve this). * debian/tests/jdbc-tests: Reenable batch and insert tests. -- Christoph Berg Thu, 06 Feb 2014 16:18:08 +0100 pgpool2 (3.3.1-1ubuntu2) trusty; urgency=medium * Use dh-autoreconf instead of autotools-dev to get new libtool macros for ppc64el (still updates config.{sub,guess}). -- Logan Rosen Sun, 22 Dec 2013 03:11:43 -0500 pgpool2 (3.3.1-1ubuntu1) trusty; urgency=medium * Use autotools-dev to update config.{sub,guess} for new arches. -- Logan Rosen Sun, 22 Dec 2013 03:00:30 -0500 pgpool2 (3.3.1-1) unstable; urgency=low * New upstream release. * Enable memcached support. Closes: #721216. * Use "all" in debian/pgversions and B-D on pg-server-dev-all >= 148. * Prepend includedir-server to CFLAGS when building pgpool_adm. * walrecrunning is gone, remove it from description. -- Christoph Berg Thu, 12 Sep 2013 11:48:29 +0200 pgpool2 (3.3.0-1) unstable; urgency=low * New upstream release. (Closes: #710558: Exceptions on COMMIT cause abnormal pgpool process termination and disconnects) * sql/pgpool-walrecrunning is gone, remove patch for it. * Fix two -Werror=format-security errors in watchdog/wd_packet.c. -- Christoph Berg Wed, 14 Aug 2013 08:47:45 +0200 pgpool2 (3.2.4-2) unstable; urgency=low [ Martin Pitt ] * debian/tests/jdbc-tests: Fix $ADTTMP permissions to make tests work when running under adt-run. [ Christoph Berg ] * Enable OpenSSL and PAM support. * pgpool2.postinst: Only use first port number found in pgpool2.conf. -- Christoph Berg Tue, 11 Jun 2013 13:21:11 +0200 pgpool2 (3.2.4-1) unstable; urgency=low * New upstream release. * debian/tests/jdbc-tests: Disable batch and insert tests, they hang. -- Christoph Berg Sat, 11 May 2013 21:31:41 -0700 pgpool2 (3.2.3-1) experimental; urgency=low * New upstream release. -- Christoph Berg Tue, 16 Apr 2013 11:19:55 +0200 pgpool2 (3.2.2-4) experimental; urgency=low * Remove "| libpg-java" again. Blame: #693540. -- Christoph Berg Wed, 10 Apr 2013 11:29:20 +0200 pgpool2 (3.2.2-3) experimental; urgency=low * Create /var/run/postgresql on startup when missing. Closes: #703696. * debian/tests/control: Depend on | libpg-java for squeeze compatibility. -- Christoph Berg Wed, 10 Apr 2013 10:48:54 +0200 pgpool2 (3.2.2-2) experimental; urgency=low * Build-Depend on bison, flex, and ruby and run tests in test/parser and test/timestamp. * Add autopkgtest support; run tests in test/jdbc. * pool.h: Point DEFAULT_PID_FILE_NAME at /var/run/postgresql/. * postinst: Fix permissions of /etc/pgpool2/pgpool.conf if it isn't readable for postgres. -- Christoph Berg Fri, 15 Feb 2013 16:06:22 +0100 pgpool2 (3.2.2-1) experimental; urgency=low * New upstream release. * Update Vcs fields to point to git. -- Christoph Berg Tue, 12 Feb 2013 10:21:42 +0100 pgpool2 (3.2.1-1) experimental; urgency=low * New upstream release. -- Christoph Berg Sat, 13 Oct 2012 12:17:10 +0200 pgpool2 (3.2.0-1) experimental; urgency=low * New upstream release. * When installing a new config file, use group postgres/640. * Bump debhelper compat level to 9. * Add 9.2 to supported versions. -- Christoph Berg Fri, 12 Oct 2012 00:26:18 +0200 pgpool2 (3.1.3-3) unstable; urgency=low * Remove /etc/pgpool2/pgpool.conf on purge, ucf doesn't do that by itself. Closes: #674238. -- Christoph Berg Mon, 11 Jun 2012 18:05:32 +0200 pgpool2 (3.1.3-2) unstable; urgency=low * Use ucf to handle /etc/pgpool2/pgpool.conf. Closes: #671359. Also, try to keep the port number used instead of calling next_free_port on every upgrade. -- Christoph Berg Tue, 22 May 2012 14:40:44 +0200 pgpool2 (3.1.3-1) unstable; urgency=low * New upstream release. -- Christoph Berg Wed, 25 Apr 2012 17:13:51 +0200 pgpool2 (3.1.2-1) unstable; urgency=low * New upstream release. -- Christoph Berg Tue, 20 Mar 2012 16:37:29 +0100 pgpool2 (3.1.1-2) unstable; urgency=low * debian/control.in - libpgpool0: set Breaks to solve "fails to upgrade from squeeze" Thanks to Hideki Yamane for the patch. Closes: #657418. -- Christoph Berg Sat, 28 Jan 2012 20:04:00 +0100 pgpool2 (3.1.1-1) unstable; urgency=low * New upstream release. Closes: #646116. Change the lock method of insert_lock. The previous insert_lock uses row locking against the sequence relation, but the current one uses row locking against pgpool_catalog.insert_lock table. The reason is that PostgreSQL core developers decided to disallow row locking against the sequence relation to avoid an internal error which it leads. So creating insert_lock table in all databases which are accessed via pgpool-II beforehand is required. If does not exist insert_lock table, pgpool-II locks the insert target table. This behavior is same as pgpool-II 2.2 and 2.3 series. * Build pgpool-recovery pgpool-regclass pgpool-walrecrunning server modules. Closes: #630465. * Build pgpool_adm server module. * Split libpcp.so into a separate package. There is already another libpcp in Debian, libpcp3/libpcp3-dev, therefore we call our packages libpgpool0/libpgpool-dev. We have a file conflict with /usr/lib/libpcp.{a,so}, so libpgpool-dev conflicts with libpcp3-dev. As they are already at SONAME 3 while we are at 0, the other package will not problems with our files in /usr/lib. (The alternative solution of putting libpcp.so.* in /usr/lib/pgpool2 would require setting RPATH in several places, which was both unsupported by the current build system (despite the documentation claiming otherwise) and also pretty ugly.) -- Christoph Berg Thu, 22 Dec 2011 18:40:04 +0100 pgpool2 (3.0.4-1) unstable; urgency=low * New upstream release * Use format 3.0 (quilt). -- Christoph Berg Fri, 10 Jun 2011 10:18:29 +0200 pgpool2 (3.0.3-2) unstable; urgency=low * Upload to unstable. -- Christoph Berg Thu, 31 Mar 2011 11:53:04 +0200 pgpool2 (3.0.3-1) experimental; urgency=low * New maintainer, thanks Rodolphe for the permission to take over. * New upstream version. + Builds correctly. Closes: #556059, #607841. * Convert to use quilt and dh 7. * Move example files to /usr/share/doc. * Patch example config files, thanks Andre Felipe Machado. Also remove manpage page. Closes: #590570. -- Christoph Berg Wed, 30 Mar 2011 17:23:22 +0200 pgpool2 (2.2.5-2) experimental; urgency=low * Auto-configure listen port in postinst -- Rodolphe Quiédeville Mon, 16 Nov 2009 18:23:56 +0100 pgpool2 (2.2.5-1) experimental; urgency=low [ Rodolphe Quiédeville ] * New upstream release. (Closes: #464345) * New Maintainer. (Closes: #471826, #491893) * Move pid file to /var/run/postgresql [ Andreas Putzo ] * Bumped policy to 3.8.0, without changes. * Update init script to source correct default/pgpool2. (Closes: #497952) * Move conffiles to /etc/pgpool2/ in preinst/postinst. Explain new config file location in README.Debian. (Closes: #428802) * Mention license of parser/gram.c in debian/copyright. * Add manpage.patch to fix a typo that caused a lintian warning. -- Rodolphe Quiédeville Mon, 12 Oct 2009 14:37:47 +0200 pgpool2 (1.3-2) unstable; urgency=low * Updated standards version * Fixed LSB headers in init.d script (closes: #471100) * Added Vcs-* control fields * Added linker option --as-needed -- Peter Eisentraut Thu, 20 Mar 2008 13:49:05 +0100 pgpool2 (1.3-1) unstable; urgency=low * New upstream release -- Peter Eisentraut Mon, 19 Nov 2007 10:48:32 +0100 pgpool2 (1.2.1-1) unstable; urgency=low * New upstream release * Added Homepage control field * Install pool_hba.conf by default -- Peter Eisentraut Sat, 06 Oct 2007 12:34:20 +0200 pgpool2 (1.2-1) unstable; urgency=low * New upstream release -- Peter Eisentraut Fri, 10 Aug 2007 12:03:41 +0200 pgpool2 (1.1.1-1) unstable; urgency=low * New upstream release -- Peter Eisentraut Fri, 15 Jun 2007 21:45:16 +0200 pgpool2 (1.0.2-1) unstable; urgency=low * Initial release (closes: #390515) -- Peter Eisentraut Wed, 21 Mar 2007 13:18:33 +0100 debian/pgpool2.preinst0000664000000000000000000000246312276727200012172 0ustar #!/bin/sh # preinst script for pgpool2 # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `install' # * `install' # * `upgrade' # * `abort-upgrade' # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package LASTVERSION=1.3-2 # Prepare to move a conffile without triggering a dpkg question prep_mv_conffile() { CONFFILE="$1" if [ -e "$CONFFILE" ]; then md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" old_md5sum=`dpkg-query -W -f'${Conffiles}' pgpool2 |grep $CONFFILE |sed 's/\(^\s.*\s\)\(.*\)/\2/'` if [ "$md5sum" = "$old_md5sum" ]; then rm -f "$CONFFILE" fi fi } case "$1" in install|upgrade) if dpkg --compare-versions "$2" le "$LASTVERSION"; then prep_mv_conffile "/etc/pgpool.conf" prep_mv_conffile "/etc/pcp.conf" prep_mv_conffile "/etc/pool_hba.conf" fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/libpgpool-dev.install0000664000000000000000000000006712276727200013333 0ustar usr/include/pgpool2 usr/lib/libpcp.a usr/lib/libpcp.so debian/compat0000664000000000000000000000000212276727200010373 0ustar 9 debian/control.in0000664000000000000000000000563012276727200011211 0ustar Source: pgpool2 Section: database Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Christoph Berg Build-Depends: debhelper (>= 9), libpq-dev, postgresql-server-dev-all (>= 148~), libpam0g-dev, libssl-dev, libmemcached-dev, dh-autoreconf, # test/parser: bison, flex, ruby Standards-Version: 3.9.4 Homepage: http://www.pgpool.net/mediawiki/index.php/Main_Page Vcs-Git: git://anonscm.debian.org/pkg-postgresql/pgpool2.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/pgpool2.git XS-Testsuite: autopkgtest Package: pgpool2 Architecture: any Depends: lsb-base (>= 3.0-3), postgresql-common (>= 26), ucf, ${misc:Depends}, ${shlibs:Depends}, libpgpool0 (= ${binary:Version}) Enhances: postgresql Conflicts: pgpool Replaces: pgpool Description: connection pool server and replication proxy for PostgreSQL pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. It provides the following features: . * Connection Pooling * Replication * Load Balance * Limiting Exceeding Connections * Parallel Query . pgpool-II talks PostgreSQL's backend and frontend protocol, and relays a connection between them. Therefore, a database application (frontend) thinks that pgpool-II is the actual PostgreSQL server, and the server (backend) sees pgpool-II as one of its clients. Because pgpool-II is transparent to both the server and the client, an existing database application can be used with pgpool-II almost without a change to its sources. . This is version 3 of pgpool-II, the second generation of pgpool. Package: libpgpool0 Architecture: any Section: libs Depends: ${misc:Depends}, ${shlibs:Depends} Breaks: pgpool2 (<< 3.1.1) Description: pgpool control protocol library pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. This package contains the pgpool control protocol library (libpcp). Package: libpgpool-dev Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, libpgpool0 (= ${binary:Version}) # We also provide /usr/lib/libpcp.{a,so} Conflicts: libpcp3-dev Description: pgpool control protocol library - headers pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. This package contains headers for the pgpool control protocol library (libpcp). Package: postgresql-PGVERSION-pgpool2 Architecture: any Depends: postgresql-PGVERSION, ${misc:Depends}, ${shlibs:Depends}, libpgpool0 (= ${binary:Version}) Description: connection pool server and replication proxy for PostgreSQL - modules pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. This package contains support modules for the PostgreSQL PGVERSION server: . * pgpool_adm * pgpool_recovery (PostgreSQL 9.1 and above) * pgpool_regclass (PostgreSQL 9.1 and above) debian/pgpool2.default0000664000000000000000000000034412276727200012126 0ustar # Defaults for pgpool initscript # sourced by /etc/init.d/pgpool # syslog facility for pgpool; see logger(1) PGPOOL_SYSLOG_FACILITY=local0 # set to "yes" if you want to enable debugging messages to the log PGPOOL_LOG_DEBUG=no debian/pgpool2.postrm0000664000000000000000000000045512276727200012031 0ustar #!/bin/sh set -e case $1 in purge) if which ucf >/dev/null; then ucf --purge /etc/pgpool2/pgpool.conf fi if which ucfr >/dev/null; then ucfr --purge pgpool2 /etc/pgpool2/pgpool.conf fi rm -f /etc/pgpool2/pgpool.conf /etc/pgpool2/pgpool.conf.ucf-dist ;; esac #DEBHELPER# exit 0 debian/pgversions0000664000000000000000000000000412276727200011311 0ustar all debian/copyright0000664000000000000000000000624612276727200011140 0ustar This package was debianized by Peter Eisentraut on 28 Feb 2007, based on the pgpool package. It was downloaded from . Upstream author: Tatsuo Ishii Copyright: Copyright (c) 2003-2011 PgPool Global Development Group Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group Portions Copyright (c) 1994, Regents of the University of California Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. The author makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. parser/gram.c, parser/gram.h: Copyright (c) 1984, 1989, 1990, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. As a special exception, when this file is copied by Bison into a Bison output file, you may use that output file without restriction. This special exception was added by the Free Software Foundation in version 1.24 of Bison. On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL' strlcpy.c: Copyright (c) 1998 Todd C. Miller Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. debian/source/0000775000000000000000000000000012276730514010477 5ustar debian/source/format0000664000000000000000000000001412276727200011703 0ustar 3.0 (quilt) debian/README.Debian0000664000000000000000000000152512276727200011241 0ustar pgpool-II for Debian -------------------- General usage information can be found in the files pgpool-{en,ja}.html and tutorial-{en,ja}.html in this directory. Package-specific notes: - The default port number for pgpool on Debian is 5433. You need to adjust your applications accordingly, or switch PostgreSQL to a different port and set pgpool to 5432, to get truly transparent access to pgpool. - The default directory for the socket file and the PID file is /var/run/postgresql, as is known from the postgresql package. - Logging goes to syslog. See /etc/default/pgpool and /etc/init.d/pgpool for tweaking possibilities. - The default directory for configuration files has been changed to /etc/pgpool2/ since version 2.1-1. -- Peter Eisentraut , 1 Sep 2005, Andreas Putzo , 20 Jan 2009 debian/tests/0000775000000000000000000000000012276730514010341 5ustar debian/tests/jdbc-tests0000775000000000000000000000210312276727363012335 0ustar #!/bin/sh set -e if [ -z "$PGVIRTUAL" ]; then # when running under adt-run, allow "postgres" to access the temporary # directories if [ -n "$ADTTMP" ]; then chown -R postgres:postgres "$ADTTMP" unset TMPDIR fi /etc/init.d/pgpool2 stop PGVIRTUAL=1 exec pg_virtualenv "$0" "$@" fi cleanup () { set +e /etc/init.d/pgpool2 stop sed -i -e '/#ADT#/,$d' /etc/pgpool2/pgpool.conf } trap cleanup 0 2 3 15 cd test/jdbc export PGPORT=9999 cat >> /etc/pgpool2/pgpool.conf < pgpool.properties <&1 echo CLASSPATH=/usr/share/java/postgresql.jar:. ./run.sh echo debian/tests/control0000664000000000000000000000024712276727200011745 0ustar Depends: @, postgresql, default-jdk, libpostgresql-jdbc-java # Squeeze needs "| libpg-java", but adt doesn't like "|" there Restrictions: needs-root Tests: jdbc-tests debian/pgpool2.install0000664000000000000000000000071212276727200012147 0ustar etc/pgpool2/pcp.conf etc/pgpool2 etc/pgpool2/pool_hba.conf etc/pgpool2 etc/pgpool2/pgpool.conf.sample-master-slave usr/share/doc/pgpool2/examples etc/pgpool2/pgpool.conf.sample-replication usr/share/doc/pgpool2/examples etc/pgpool2/pgpool.conf.sample-stream usr/share/doc/pgpool2/examples usr/sbin usr/share/man usr/share/pgpool2/pgpool.conf usr/share/pgpool-II/*.sql usr/share/pgpool2 usr/share/pgpool-II/pgpool.pam usr/share/doc/pgpool2/examples debian/libpgpool0.lintian-overrides0000664000000000000000000000120512276727200014622 0ustar # There is already another libpcp in Debian, libpcp3/libpcp3-dev, therefore # we call our packages libpgpool0/libpgpool-dev. We have a file conflict # with /usr/lib/libpcp.{a,so}, so libpgpool-dev conflicts with libpcp3-dev. # As they are already at SONAME 3 while we are at 0, the other package will # not problems with our files in /usr/lib. (The alternative solution of # putting libpcp.so.* in /usr/lib/pgpool2 would require setting RPATH in # several places, which was both unsupported by the current build system # (despite the documentation claiming otherwise) and also pretty ugly.) libpgpool0: package-name-doesnt-match-sonames libpcp0 debian/pgpool2.examples0000664000000000000000000000001112276727200012307 0ustar sample/* debian/libpgpool0.install0000664000000000000000000000002412276727200012630 0ustar usr/lib/libpcp.so.* debian/control0000644000000000000000000000560612276730515010610 0ustar Source: pgpool2 Section: database Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Christoph Berg Build-Depends: debhelper (>= 9), libpq-dev, postgresql-server-dev-all (>= 148~), libpam0g-dev, libssl-dev, libmemcached-dev, dh-autoreconf, # test/parser: bison, flex, ruby Standards-Version: 3.9.4 Homepage: http://www.pgpool.net/mediawiki/index.php/Main_Page Vcs-Git: git://anonscm.debian.org/pkg-postgresql/pgpool2.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-postgresql/pgpool2.git XS-Testsuite: autopkgtest Package: pgpool2 Architecture: any Depends: lsb-base (>= 3.0-3), postgresql-common (>= 26), ucf, ${misc:Depends}, ${shlibs:Depends}, libpgpool0 (= ${binary:Version}) Enhances: postgresql Conflicts: pgpool Replaces: pgpool Description: connection pool server and replication proxy for PostgreSQL pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. It provides the following features: . * Connection Pooling * Replication * Load Balance * Limiting Exceeding Connections * Parallel Query . pgpool-II talks PostgreSQL's backend and frontend protocol, and relays a connection between them. Therefore, a database application (frontend) thinks that pgpool-II is the actual PostgreSQL server, and the server (backend) sees pgpool-II as one of its clients. Because pgpool-II is transparent to both the server and the client, an existing database application can be used with pgpool-II almost without a change to its sources. . This is version 3 of pgpool-II, the second generation of pgpool. Package: libpgpool0 Architecture: any Section: libs Depends: ${misc:Depends}, ${shlibs:Depends} Breaks: pgpool2 (<< 3.1.1) Description: pgpool control protocol library pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. This package contains the pgpool control protocol library (libpcp). Package: libpgpool-dev Architecture: any Section: libdevel Depends: ${misc:Depends}, ${shlibs:Depends}, libpgpool0 (= ${binary:Version}) # We also provide /usr/lib/libpcp.{a,so} Conflicts: libpcp3-dev Description: pgpool control protocol library - headers pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. This package contains headers for the pgpool control protocol library (libpcp). Package: postgresql-9.3-pgpool2 Architecture: any Depends: postgresql-9.3, ${misc:Depends}, ${shlibs:Depends}, libpgpool0 (= ${binary:Version}) Description: connection pool server and replication proxy for PostgreSQL - modules pgpool-II is a middleware that works between PostgreSQL servers and a PostgreSQL database client. This package contains support modules for the PostgreSQL 9.3 server: . * pgpool_adm * pgpool_recovery (PostgreSQL 9.1 and above) * pgpool_regclass (PostgreSQL 9.1 and above) debian/pgpool2.init.d0000664000000000000000000000354312276727200011673 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: pgpool2 # Required-Start: $remote_fs $syslog # Required-Stop: $remote_fs $syslog # Should-Start: postgresql # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: start pgpool-II # Description: pgpool-II is a connection pool server and replication # proxy for PostgreSQL. ### END INIT INFO PATH=/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/pgpool PIDFILE=/var/run/postgresql/pgpool.pid test -x $DAEMON || exit 5 # Include pgpool defaults if available if [ -f /etc/default/pgpool2 ] ; then . /etc/default/pgpool2 fi OPTS="" if [ x"$PGPOOL_LOG_DEBUG" = x"yes" ]; then OPTS="$OPTS -d" fi . /lib/lsb/init-functions is_running() { pidofproc -p $PIDFILE $DAEMON >/dev/null } d_start() { if ! test -d /var/run/postgresql; then install -d -m 2775 -o postgres -g postgres /var/run/postgresql fi if is_running; then : else su -c "$DAEMON -n $OPTS 2>&1 /dev/null 2>&1 &" - postgres fi } d_stop() { killproc -p $PIDFILE $DAEMON -INT status=$? [ $status -eq 0 ] || [ $status -eq 3 ] return $? } case "$1" in start) log_daemon_msg "Starting pgpool-II" pgpool d_start log_end_msg $? ;; stop) log_daemon_msg "Stopping pgpool-II" pgpool d_stop log_end_msg $? ;; status) is_running status=$? if [ $status -eq 0 ]; then log_success_msg "pgpool-II is running." else log_failure_msg "pgpool-II is not running." fi exit $status ;; restart|force-reload) log_daemon_msg "Restarting pgpool-II" pgpool d_stop && sleep 1 && d_start log_end_msg $? ;; try-restart) if $0 status >/dev/null; then $0 restart else exit 0 fi ;; reload) exit 3 ;; *) log_failure_msg "Usage: $0 {start|stop|status|restart|try-restart|reload|force-reload}" exit 2 ;; esac debian/patches/0000775000000000000000000000000012276730514010626 5ustar debian/patches/pgpool2-debian-config.patch0000664000000000000000000001562112276727200015717 0ustar --- a/pgpool.conf.sample +++ b/pgpool.conf.sample @@ -28,10 +28,10 @@ # Host name or IP address to listen on: # '*' for all, '' for no TCP/IP connections # (change requires restart) -port = 9999 +port = 5433 # Port number # (change requires restart) -socket_dir = '/tmp' +socket_dir = '/var/run/postgresql' # Unix domain socket path # The Debian package defaults to # /var/run/postgresql @@ -43,7 +43,7 @@ pcp_port = 9898 # Port number for pcp # (change requires restart) -pcp_socket_dir = '/tmp' +pcp_socket_dir = '/var/run/postgresql' # Unix domain socket path for pcp # The Debian package defaults to # /var/run/postgresql @@ -180,10 +180,10 @@ # FILE LOCATIONS #------------------------------------------------------------------------------ -pid_file_name = '/var/run/pgpool/pgpool.pid' +pid_file_name = '/var/run/postgresql/pgpool.pid' # PID file name # (change requires restart) -logdir = '/tmp' +logdir = '/var/log/postgresql' # Directory of pgPool status file # (change requires restart) --- a/pool.h +++ b/pool.h @@ -61,13 +61,13 @@ #define HBA_CONF_FILE_NAME "pool_hba.conf" /* pid file directory */ -#define DEFAULT_LOGDIR "/tmp" +#define DEFAULT_LOGDIR "/var/log/postgresql" /* Unix domain socket directory */ -#define DEFAULT_SOCKET_DIR "/tmp" +#define DEFAULT_SOCKET_DIR "/var/run/postgresql" /* pid file name */ -#define DEFAULT_PID_FILE_NAME "/var/run/pgpool/pgpool.pid" +#define DEFAULT_PID_FILE_NAME "/var/run/postgresql/pgpool.pid" /* status file name */ #define STATUS_FILE_NAME "pgpool_status" --- a/pgpool.conf.sample-master-slave +++ b/pgpool.conf.sample-master-slave @@ -28,10 +28,10 @@ # Host name or IP address to listen on: # '*' for all, '' for no TCP/IP connections # (change requires restart) -port = 9999 +port = 5433 # Port number # (change requires restart) -socket_dir = '/tmp' +socket_dir = '/var/run/postgresql' # Unix domain socket path # The Debian package defaults to # /var/run/postgresql @@ -43,7 +43,7 @@ pcp_port = 9898 # Port number for pcp # (change requires restart) -pcp_socket_dir = '/tmp' +pcp_socket_dir = '/var/run/postgresql' # Unix domain socket path for pcp # The Debian package defaults to # /var/run/postgresql @@ -180,10 +180,10 @@ # FILE LOCATIONS #------------------------------------------------------------------------------ -pid_file_name = '/var/run/pgpool/pgpool.pid' +pid_file_name = '/var/run/postgresql/pgpool.pid' # PID file name # (change requires restart) -logdir = '/tmp' +logdir = '/var/log/postgresql' # Directory of pgPool status file # (change requires restart) --- a/pgpool.conf.sample-replication +++ b/pgpool.conf.sample-replication @@ -28,10 +28,10 @@ # Host name or IP address to listen on: # '*' for all, '' for no TCP/IP connections # (change requires restart) -port = 9999 +port = 5433 # Port number # (change requires restart) -socket_dir = '/tmp' +socket_dir = '/var/run/postgresql' # Unix domain socket path # The Debian package defaults to # /var/run/postgresql @@ -43,7 +43,7 @@ pcp_port = 9898 # Port number for pcp # (change requires restart) -pcp_socket_dir = '/tmp' +pcp_socket_dir = '/var/run/postgresql' # Unix domain socket path for pcp # The Debian package defaults to # /var/run/postgresql @@ -180,10 +180,10 @@ # FILE LOCATIONS #------------------------------------------------------------------------------ -pid_file_name = '/var/run/pgpool/pgpool.pid' +pid_file_name = '/var/run/postgresql/pgpool.pid' # PID file name # (change requires restart) -logdir = '/tmp' +logdir = '/var/log/postgresql' # Directory of pgPool status file # (change requires restart) --- a/pgpool.conf.sample-stream +++ b/pgpool.conf.sample-stream @@ -28,10 +28,10 @@ # Host name or IP address to listen on: # '*' for all, '' for no TCP/IP connections # (change requires restart) -port = 9999 +port = 5433 # Port number # (change requires restart) -socket_dir = '/tmp' +socket_dir = '/var/run/postgresql' # Unix domain socket path # The Debian package defaults to # /var/run/postgresql @@ -43,7 +43,7 @@ pcp_port = 9898 # Port number for pcp # (change requires restart) -pcp_socket_dir = '/tmp' +pcp_socket_dir = '/var/run/postgresql' # Unix domain socket path for pcp # The Debian package defaults to # /var/run/postgresql @@ -180,10 +180,10 @@ # FILE LOCATIONS #------------------------------------------------------------------------------ -pid_file_name = '/var/run/pgpool/pgpool.pid' +pid_file_name = '/var/run/postgresql/pgpool.pid' # PID file name # (change requires restart) -logdir = '/tmp' +logdir = '/var/log/postgresql' # Directory of pgPool status file # (change requires restart) debian/patches/series0000664000000000000000000000003412276727363012050 0ustar pgpool2-debian-config.patch debian/pgpool2.postinst0000664000000000000000000000440512276727363012401 0ustar #!/bin/sh # postinst script for pgpool2 # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * `configure' # * `abort-upgrade' # * `abort-remove' `in-favour' # # * `abort-remove' # * `abort-deconfigure' `in-favour' # `removing' # # for details, see http://www.debian.org/doc/debian-policy/ or # the debian-policy package LASTVERSION=1.3-2 # Move a conffile without triggering a dpkg question mv_conffile() { OLDCONFFILE="$1" NEWCONFFILE="$2" if [ -e "$OLDCONFFILE" ]; then echo "Preserving user changes to $NEWCONFFILE ..." mv -f "$NEWCONFFILE" "$NEWCONFFILE".dpkg-new mv -f "$OLDCONFFILE" "$NEWCONFFILE" fi } case "$1" in configure) if dpkg --compare-versions "$2" le "$LASTVERSION"; then mv_conffile "/etc/pgpool.conf" "/etc/pgpool2/pgpool.conf" mv_conffile "/etc/pcp.conf" "/etc/pgpool2/pcp.conf" mv_conffile "/etc/pool_hba.conf" "/etc/pgpool2/pool_hba.conf" fi # pgpool.conf is handled by ucf (but still move it in from the old location in the "if" above) if [ -f "/etc/pgpool2/pgpool.conf" ]; then LPORT=`perl -lne 'if (/^port\s*=\s*(\d+)/) { print $1; exit; }' /etc/pgpool2/pgpool.conf` else LPORT=`perl -e 'use lib "/usr/share/postgresql-common";use PgCommon;printf "%s\n", next_free_port;'` fi TMPCONFIG=`mktemp --tmpdir pgpool2.conf.XXXXXX` CONFIG=/etc/pgpool2/pgpool.conf sed -e "s/^port\s*=\s*[0-9]*/port = $LPORT/" /usr/share/pgpool2/pgpool.conf > $TMPCONFIG ucf $TMPCONFIG $CONFIG ucfr pgpool2 $CONFIG if test -e $CONFIG && ! su -c "test -r $CONFIG" postgres ; then # make file readable for postgres chgrp postgres $CONFIG chmod 640 $CONFIG fi rm -f $TMPCONFIG ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/pgpool2.docs0000664000000000000000000000001312276727200011423 0ustar doc/* NEWS