4b6a87f8dc
3.6.0 Notable new features - Improve the behavior of fail-over. - New PGPOOL SET command has been introduced. - Watchdog is significantly enhanced. - Handling of extended query protocol (e.g. used by Java applications) in streaming replication mode speeds up if many rows are returned in a result set. - Import parser of PostgreSQL 9.6. - In some cases pg_terminate_backend() now does not trigger a fail-over. - Change documentation format from raw HTML to SGML. 3.5.4 Bug fixes - Fix buffer over run problem in "show pool_nodes". - Fix usage of wait(2) in pgpool main process. - Save and restore errno in each signal handler. - Fix handling of pcp_listen_addresses config parameter. - Fix "kind mismatch" error message in pgpool. - Replace "MAJOR" macro to prevent occasional failure. - Fixing a coding mistake in watchdog code. - doc : Fixing a typo in english doc - Fix for bun 215 that pgpool doesn't escalate ip in case of another node inavailability. - Fix for bug of inconsistent status of Postgresql nodes in Pgpool instances after restart. - SIGUSR1 signal handler should be installed before watchdog initialization. - Fix for bug 228 that pgpool doesn't de-escalate IP in case network restored. - Fix hang when portal suspend received. - test : Add regression test for bug 230. - Fixing a typo in the log message. - Fixing the error messages when the socket operation fails. - Tighten up health check timer expired condition in pool_check_fd(). - doc : Add comment to the document about connection_cache. - Fix Handling of pcp_socket_dir was missing from pool_get_config(). - doc : Fix Japanese document typo. - Fix "out of memory" by using "pg_md5 -m". - Fix for 237 that Pgpool-II fails to start if listen_addresses is empty string. 3.5.3 New features - Allow to access to pgpool while doing health checking Bug fixes - Fix is_set_transaction_serializable() when SET default_transaction_isolation TO 'serializable'. - Fix Chinese documetation bug about raw mode - Fix confusing comments in pgpool.conf - Fix extended protocol handling in raw mode - Permit pgpool to support multiple SSL cipher protocols - If statement timeout is enabled on backend and do_query() sends a query to primary node, and all of following user queries are sent to standby, it is possible that the next command, for example END, could cause a statement timeout error on the primary, and a kind mismatch error on pgpool-II is raised. - Deal with the case when the primary is not node 0 in streaming replication mode. - Fix a posible hang during health checking - change the Makefile under this directory src/sql/,that is proposed by - fix for 0000197: pgpool hangs connections to database.. - Fix bug with load balance node id info on shmem - Fixing coverity scan reported issues. 3.5.2 Bugfixes - Fix for segfault during trusted_servers check - Removing the limit on the maximum number of items in the black_function_list and white_function_list lists - Fix check "PCP Directory" in "Parameter Setting" in install - Fix extended protocol hang with empty query - Redirect all user queries to primary server - Change the PID length of pcp_proc_count command result to 6 characters long 3.5.1 Bugfixes - Add some warning messages for wd_authkey hash calculation failure - test: Fix regression test to check timeout of each test - test: Allow timeout value to be specified by the command option - Fix compile issue on FreeBSD - test: Fix test/regression/clean.sh to remove binary files of 010.rewrite_timestamp test - Fix memorry leak reported by Coverity (CID 1350095) - Fixing pgpool-recovery module compilation issue with PostgreSQL 9.6 - Fix to properly process an empty query that has only comments - Fix a reset query stuck problem - Fix a reset query stuck problem - Fix query stuck problems in streaming replication mode with extended protocol queries - Fix pgpool hung after receiving error state from backend - Fix bug that child processes exit and are not re-spawned - Fix typo in configure - doc: Change description of backend_flag - doc: Fix installation procedure. - test: Fix pgpool_setup to not confuse log output - Fix to validate the PCP packet length
75 lines
2.3 KiB
Makefile
75 lines
2.3 KiB
Makefile
# $NetBSD: Makefile,v 1.3 2016/11/24 12:52:47 fhajny Exp $
|
|
#
|
|
|
|
DISTNAME= pgpool-II-3.6.0
|
|
PKGNAME= postgresql${PGSQL_VERSION}-${DISTNAME:S/pgpool-II/pgpool2/}
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://www.pgpool.net/mediawiki/images/
|
|
|
|
MAINTAINER= filip@joyent.com
|
|
HOMEPAGE= http://www.pgpool.net/mediawiki/
|
|
COMMENT= Middleware between PostgreSQL servers and a PostgreSQL database client
|
|
LICENSE= modified-bsd
|
|
|
|
DEPENDS+= postgresql${PGSQL_VERSION}-server>=0:../../databases/postgresql${PGSQL_VERSION}-server
|
|
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
USE_TOOLS+= bash:run gmake
|
|
|
|
.include "options.mk"
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
BUILD_DEFS+= PGPOOL_USER PGPOOL_GROUP PGGROUP PGHOME VARBASE
|
|
|
|
EGDIR= share/examples/pgpool2
|
|
|
|
PGPOOL_USER?= pgpool
|
|
PGPOOL_GROUP?= ${PGGROUP}
|
|
PGGROUP?= pgsql
|
|
PGHOME?= ${PREFIX}/${PGGROUP}
|
|
|
|
PKG_GROUPS= ${PGPOOL_GROUP}
|
|
PKG_USERS= ${PGPOOL_USER}:${PGPOOL_GROUP}
|
|
PKG_GROUPS_VARS+= PGPOOL_GROUP
|
|
PKG_USERS_VARS= PGPOOL_USER
|
|
PKG_HOME.${PGPOOL_USER}= ${PGHOME}
|
|
PKG_SHELL.${PGPOOL_GROUP}= ${SH}
|
|
|
|
PKG_SYSCONFSUBDIR= pgpool2
|
|
PGPOOL_LOGDIR?= ${VARBASE}/log/pgpool
|
|
PGPOOL_PIDDIR?= ${VARBASE}/run/pgpool
|
|
OWN_DIRS_PERMS+= ${PGPOOL_LOGDIR} ${PGPOOL_USER} ${PGPOOL_GROUP} 0751
|
|
OWN_DIRS_PERMS+= ${PGPOOL_PIDDIR} ${PGPOOL_USER} ${PGPOOL_GROUP} 0751
|
|
|
|
SUBST_CLASSES+= path
|
|
SUBST_MESSAGE.path= Fixing default paths
|
|
SUBST_STAGE.path= pre-configure
|
|
SUBST_FILES.path= src/sample/pgpool.conf.sample src/include/pool.h
|
|
SUBST_VARS.path= PGPOOL_LOGDIR PGPOOL_PIDDIR
|
|
|
|
REPLACE_BASH+= src/tools/pgpool_setup src/tools/watchdog_setup
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
BUILD_DIRS= . src/sql
|
|
|
|
INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/${EGDIR}
|
|
|
|
RCD_SCRIPTS+= pgpool2
|
|
SMF_NAME= pgpool
|
|
FILES_SUBST+= PGPOOL_USER=${PGPOOL_USER}
|
|
FILES_SUBST+= PGPOOL_GROUP=${PGPOOL_GROUP}
|
|
|
|
CONF_FILES+= ${EGDIR}/pcp.conf.sample ${PKG_SYSCONFDIR}/pcp.conf
|
|
CONF_FILES+= ${EGDIR}/pgpool.conf.sample ${PKG_SYSCONFDIR}/pgpool.conf
|
|
CONF_FILES+= ${EGDIR}/pool_hba.conf.sample ${PKG_SYSCONFDIR}/pool_hba.conf
|
|
CONF_FILES_PERMS+= ${EGDIR}/pool_passwd ${PKG_SYSCONFDIR}/pool_passwd \
|
|
${PGPOOL_USER} ${PGGROUP} 0640
|
|
|
|
post-install:
|
|
${TOUCH} ${DESTDIR}${PREFIX}/share/examples/pgpool2/pool_passwd
|
|
|
|
.include "../../mk/pgsql.buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|