Commit Graph

12 Commits

Author SHA1 Message Date
Torsten Zuehlsdorff
184d1646a5 databases/pgpool-II-40: Upgrade from 4.0.5 to 4.0.6
Changelog:

    Enhancements:
    - Doc: Update "Pgpool-II + Watchdog Setup Example" to support PostgreSQL 12. (Bo Peng)
    - Import some of memory manager debug facilities from PostgreSQL. (Tatsuo Ishii)
    - Use pg_get_expr() instead of pg_attrdef.adsrc to support for PostgreSQL 12. (Bo Peng)
    - Enhance shutdown script of pgpool_setup. (Tatsuo Ishii)
        - Make shutdownall to wait for completion of shutdown of Pgpool-II.
        - If environment variable CHECK_TIME_WAIT is set to true, use netstat command to confirm usage of the TCP/IP port while executing shutdown script.
    - Doc: add description to pg_md5 man page how to show pool_passwd hashed string. (Tatsuo Ishii)
    - Doc: add general description about failover. (Tatsuo Ishii)
    - Deal pgpool_adm extension with PostgreSQL 12. (Tatsuo Ishii)

    Bug fixes:
    - Test: Fix test failure of extended-query-test when disable_load_balance_on_write = off/transaction/always. (Tatsuo Ishii)
    - Fix "unable to bind. cannot get parse message" error. (bug 531) (Tatsuo Ishii)
    - Fix online-recovery is blocked after a child process exits abnormally with replication mode and watchdog. (bug 483) (Muhammad Usama)
    - Fix for keep the backend health check running on quarantined nodes. (Muhammad Usama)
    - Fix for no primary on standby pgpool when primary is quarantined on master. (Muhammad Usama)
    - Fix watchdog_setup command mode option to work correctly. (Takuma Hoshiai)
    - Fix pgpool_setup to produce correct follow master command. (Tatsuo Ishii)
    - Fix query cache module so that it checks oid array's bound. (Tatsuo Ishii)
    - Fix off-by-one error in query cache module. (Tatsuo Ishii)
    - Allow health check process to reload. (Tatsuo Ishii)
    - Fix sefault when query cache is enabled. (bug 525) (Tatsuo Ishii)
    - Down grade LOG "checking zapping sent message ..." to DEBUG5. (Tatsuo Ishii)
    - Fix segfault when samenet is specified in pool_hba.conf. (Tatsuo Ishii)
    - Doc: Fix documentation mistakes in follow_master.sh script and typos. (Bo Peng)
    - Fix health check process is not shutting down in certain cases. (Tatsuo Ishii)
    - Fix to deal with backslashes according to the config of standard_conforming_strings in native replication mode. (bug 467) (Bo Peng)
    - Fix compile error on FreeBSD. (bug 512, bug 519) (Bo Peng)
    - Fix memory leaks. (Tatsuo Ishii)
    - Make failover in progress check more aggressively to avoid potential segfault. (Tatsuo Ishii)

MFH:		2019Q3
2019-08-31 21:30:18 +00:00
Gerald Pfeifer
ea8c8ec7da Bump PORTREVISION for ports depending on the canonical version of GCC
as defined in Mk/bsd.default-versions.mk which has moved from GCC 8.3
to GCC 9.1 under most circumstances now after revision 507371.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, everything INDEX-11 shows with a dependency on lang/gcc9 now.

PR:		238330
2019-07-26 20:46:53 +00:00
Torsten Zuehlsdorff
7d366b6819 databases/pgpool-II-40: Upgrade from 4.0.4 to 4.0.5
Changelog:

  Enhancements

    - Doc: Improve Reference II, PCP commands document. (Tatsuo Ishii)
    - Speed up failover when all of backends are down. (Tatsuo Ishii)
    - pgpool-recovery extension and pgpool_setup is now ready for the next major release PostgreSQL 12. (Tatsuo Ishii)
    - Doc: add restrictions entry. (Takuma Hoshiai)

  Bug fixes

    - Fix the wrong error message "ERROR: connection cache is full", when all backend nodes are down. (bug 487) (Bo Peng)
    - Remove unused .sgml file. (Takuma Hoshiai)
    - Avoid exit/fork storm of pool_worker_child process. (Tatsuo Ishii)
    - Fix black_function_list's broken default value. (Tatsuo Ishii)
    - Fix "not enough space in buffer" error. (bug 499) (Tatsuo Ishii)
    - Fix DROP DATABASE failure. (Tatsuo Ishii)
    - Fix wrong variable in read_status_file() function. (bug 493) (Takuma Hoshiai)
    - Add missing test/watchdog_setup to EXTRA_DIST. (bug 470) (Bo Peng)
    - Doc: mention that multi-statement queries are sent to primary node only. (bug 492) (Tatsuo Ishii)
    - Fix md5 auth broken in raw mode with more than 1 backends. (bug 491) (Tatsuo Ishii)
    - Test: Fix occasional regression test failure of 014.watchdog_test_quorum_bypass. (Tatsuo Ishii)
    - Abort session if failover/failback is ongoing to prevent potential segfault. (bug 481, bug 482) (Tatsuo Ishii)
    - Fix compiler warnings. (Tatsuo Ishii)
    - Fix memory leak in "batch" mode in extended query. (bug 468) (Tatsuo Ishii)

Changelog taken from: http://www.pgpool.net/docs/latest/en/html/release-4-0-5.html

MFH:		2019Q2
2019-05-17 08:44:16 +00:00
Torsten Zuehlsdorff
704b991d65 databases/pgpool-II-40: Upgrade from 4.0.3 to 4.0.4
Changelog:

Enhancements

    * Add new configuration option ssl_prefer_server_ciphers. (Muhammad Usama)

      Add the new setting ssl_prefer_server_ciphers to let users configure if they want client's or server's cipher order to take preference.

      The default for this parameter is off, which prioritize the client's cipher order as usual. However this is just for keeping backward compatibility, and it is possible that a malicious client uses weak ciphers. For this reason we recommend to set this parameter to on at all times.

    * Allow to set a client cipher list. (Tatsuo Ishii, Yugo Nagata)

      For this purpose new parameter ssl_ciphers, which specifies the cipher list to be accepted by Pgpool-II, is added. This is already implemented in PostgreSQL and useful to enhance security when SSL is enabled.

Bug fixes

    * Fix unnecessary fsync() to pgpool_status file. (Tatsuo Ishii)

      Whenever new connections are created to PostgreSQL backend, fsync() was issued to pgpool_status file, which could generate excessive I/O in certain conditions. So reduce the chance of issuing fsync() so that it is issued only when backend status is changed.

    * Doc: add more explanation to follow_master_command. (Tatsuo Ishii)

      Add description how follow_master_command is executed etc.

    * Doc: add note to detach_false_primary configuration parameter. (bug 469) (Tatsuo Ishii)

      To use this feature, sr_check_user must be super user or in pg_monitor group.

Changelog taken from: http://www.pgpool.net/docs/latest/en/html/release-4-0-4.html

MFH:		2019Q2
2019-04-08 07:15:00 +00:00
Torsten Zuehlsdorff
6614428214 databases/pgpool-II-40: Update from 4.0.2 to 4.0.3
Changelog:

- Skip over "host=" when getting info from conninfo string. (Bo Peng)
- Test: Fix old JDBC functions and typos in regression test 068.memqcache_bug. (Takuma Hoshiai)
- Doc: Fix configuration change timing regarding memory_cache_enabled. (Tatsuo Ishii)
- Fix online recovery failed due to client_idle_limit_in_recovery in certain cases. (bug 431) (Tatsuo Ishii)
- Reduce memory usage when large data set is returned from backend. (bug 462) (Tatsuo Ishii)
- Test: Fix syntax error in extended query test script. (Tatsuo Ishii)
- Fix corner case bug when strip_quote() handle a empty query string. (bug 458) (Tatsuo Ishii)
- Doc: Mention that schema qualifications cannot be used in white/black_function_list. (Tatsuo Ishii)
- Fix typo about wd_priority in watchdog_setup. (Takuma Hoshiai)
- Fixed segfault when wd_lifecheck_method = 'query'. (bug 455) (Muhammad Usama)
- The fix was proposed by Muhammad Usama and some adjustments to the patch and testing is done by Yugo Nagata.
- Fix Pgpool child segfault if failover occurs when trying to establish a connection. (Tatsuo Ishii)
- Doc: fix typo in logdir description. (bug 453) (Tatsuo Ishii)
- Fix PAM authentication failed. (Takuma Hoshiai)
- Fix Pgpool-II hang if a client sends a extended query message such as close after sync message but before next simple query. (Tatsuo Ishii)
- Fix Pgpool-II hang when idle_in_transaction_session_timeout = on. (bug 448) (Tatsuo Ishii)

Changelog taken from: http://www.pgpool.net/docs/latest/en/html/release-4-0-3.html

MFH:		2019Q1
2019-03-08 15:58:23 +00:00
Torsten Zuehlsdorff
13a797dbfa databases/pgpool-II-40: add new configuration files to rc-script
pgpool 4.0 adds the configuration files "pool_hba.conf" and "pcp.conf", but
they weren't used until now. Also its possible to change there location
via rc.conf

PR:		235059
Submitted by:	 Franco Ricci <franco.ricc@gmail.com>
2019-01-28 09:27:17 +00:00
Tobias Kortkamp
f98e057013 databases/pgpool-II-40: Actually unbreak PAM option after r490475
Do not pass --without-pam to configure as it does not appear to
work correctly.  It also defines USE_PAM in config.h even when it
should not be defined and the build breaks.

auth/pool_hba.c:157:24: error: variable has incomplete type 'struct pam_conv'
static struct pam_conv pam_passw_conv = {
                       ^

http://beefy3.nyi.freebsd.org/data/112amd64-quarterly/490502/logs/errors/pgpool-II40-4.0.2_2.log

Pointy hat:	tobik
Approved by:	tz (maintainer)
2019-01-17 11:15:44 +00:00
Tobias Kortkamp
7b52ba0fdd databases/pgpool-II-40: Unbreak PAM option
The PAM option is tangled up with the SSL option in a weird way.
SSL_CONFIGURE_WITH is set once before bsd.port.options.mk for
enabling SSL support and overwritten again after including
bsd.port.options.mk but only when PAM=on.

Setting options helper after this point is not really supported,
but --with-pam actually makes it to CONFIGURE_ARGS.  When options
helpers are processed the results are only realized later by make(1).
SSL_CONFIGURE_WITH has been defined before including bsd.port.options.mk,
so this sort of "works".

This, however, is presumably an implementation detail and enabling
the PAM option breaks SSL support since SSL_CONFIGURE_WITH is
overwritten with a new value: CONFIGURE_ARGS only has --with-pam
left and is missing --with-openssl.

PAM support does not depend on SSL support.  Just switch everything
to options helpers to fix this.

PR:		234817
Submitted by:	tobik
Approved by:	tz (maintainer)
2019-01-16 12:03:14 +00:00
Gerald Pfeifer
a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00
Torsten Zuehlsdorff
39b91365b8 databases/pgpool-II-40: Upgrade from 4.0.1 to 4.0.2
Changelog: http://www.pgpool.net/docs/latest/en/html/release-4-0-2.html
2018-11-27 09:36:59 +00:00
Tobias Kortkamp
5529438c42 databases/pgpool-II-40: Drop incorrect BROKEN_SSL
openssl-devel was removed a while ago in favor of openssl111, but
pgpool-II-40 builds fine with OpenSSL 1.1.1, so BROKEN_SSL is not
needed in the first place.

http://beefy5.nyi.freebsd.org/data/120i386-default/485373/logs/pgpool-II40-4.0.1.log
http://beefy6.nyi.freebsd.org/data/120amd64-default/485373/logs/pgpool-II40-4.0.1.log

Pointy hat:	joneum
2018-11-22 09:18:32 +00:00
Jochen Neumeister
a5f13487ca New Port: databases/pgpool-II-40
pgpool is a connection pool server for PostgreSQL. pgpool runs between
PostgreSQL's clients(front ends) and servers(back ends). A PostgreSQL client can
connect to pgpool as if it were a standard PostgreSQL server.

pgpool caches the connection to PostgreSQL server to reduce the overhead to
establish the connection to it.

WWW: http://pgpool.net/

PR:		232957
Reported by:	Franco Ricci <franco.ricc@gmail.com>
Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-11-15 21:06:26 +00:00