Commit Graph

17 Commits

Author SHA1 Message Date
Torsten Zuehlsdorff
e1b02453c7 databases/pgpool-II-40: fix broken SIZE in distinfo
File has not changed, it was just broken on my latest download
because of bad internet connection.

Sponsored by:	Bounce Experts
2020-07-16 22:17:17 +00:00
Torsten Zuehlsdorff
c702c74f75 databases/pgpool-II-40: Update from 4.0.8 to 4.0.9
Changelog: Bug fixes

    Fix build error on some system (Fedora 32). (Tatsuo Ishii)

    Fix pgpool ssl front end accept all ciphers. (bug 608) (Muhammad Usama)

    Downgrade too verbose authentication logs. (Tatsuo Ishii)

    Fix unnecessary checks. (Tatsuo Ishii)

    Doc: Fix typo. (Tatsuo Ishii)

    Fix for segmentation fault in PCP process. (bug 598) (Muhammad Usama)

    Fix a warning message is never output in watchdog. (Tatsuo Ishii)

    Doc: Fix typo. (Tatsuo Ishii, Bo Peng)

    Fix Pgpool-II hangs when an Execute message is issued right after Sync message and query cache hits. (Tatsuo Ishii)

    Fix problems in watchdog source code processing json data. (bug 596) (Tatsuo Ishii)

    Fix SCRAM auth handling bug. (bug 595) (Tatsuo Ishii)

    Fix possible data inconsistency in native replication mode. (Tatsuo Ishii)

    Fix watchdog ping probes fail with long hostnames due to small buffer. (bug 516) (Bo Peng)

    Doc: Enhance documents. (Tatsuo Ishii)

    Fix "last status change" timestamp is not set properly. (Tatsuo Ishii)

Sponsored by:	Bounce Experts
2020-07-15 18:38:50 +00:00
Torsten Zuehlsdorff
5cf73415b4 databases/pgpool-II-40: Upgrade from 4.0.6 to 4.0.8
Changelog for 4.0.7:

Bug fixes

    Fix incorrect query rewrite in replication mode. (Bo Peng)

    Fix that health check timeout does work in certain case. (Tatsuo Ishii)

    Discussion: [pgpool-hackers: 3458], [pgpool-hackers: 3459]

    Doc: add failover_command description when all standby nodes are down. (Takuma Hoshiai)

    Doc: add note not to assign PostgreSQL servers to trusted_servers. (Tatsuo Ishii)

    Fix for miscellaneous watchdog issues. (Muhammad Usama)

    Fix assorted ancient v2 protocol bugs. (Tatsuo Ishii)

    Fix problem that syslog_facility doesn't change by reload. (bug 548) (Takuma Hoshiai)

    Fix Pgpool-II shutdown failed in certain case. (Tatsuo Ishii)

    Allow the lost standby node to rejoin the master watchdog node when it gets rediscovered by the lifecheck. (bug 545) (Muhammad Usama)

    Overhaul health check debug facility. (Tatsuo Ishii)

    Fix segfault when executing an erroneous query after DEALLOCATE a named statement. (bug 546) (Tatsuo Ishii)

    Doc: clarify that certificate authentication works between only client and Pgpool-II. (Tatsuo Ishii)

    Doc: update configuration Examples "Pgpool-II + Watchdog Setup Example". (Bo Peng)

    Doc: mention that VIP will not be brougt up if quorum does not exist. (Tatsuo Ishii)

    Fix pgpool_setup to deal with PostgreSQL 9.1. (Tatsuo Ishii)

    Fix for password authentication does not work when the password for the connecting user is not found in the pool_passwd file. (bug 534) (Muhammad Usama)

    Add "-I" option to arping_cmd command default setting. (Bo Peng)

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

Changelog for 4.0.8:

Changes

    Disallowing the quorum aware failover option for the native replication mode. (Muhammad Usama)

    Check if socket file exists at startup and remove them if PID file doesn't exist to avoid bind() failire. (Bo Peng)

Bug fixes

    Fix incorrect query rewriting in native replication mode. (bug 551) (Bo Peng)

    Doc: Update documentation and fix documentation typos. (Takuma Hoshiai, Tatsuo Ishii, Bo Peng)

    Fix child process segfault after reload if health_check_database is empty. (bug 571) (Bo Peng)

    Fix pgpool_setup to support PostgreSQL 12. (Tatsuo Ishii)

    Doc: Change the sample follow_master_command script %M %H paramater's order. (Bo Peng)

    Fix occasional regression test failure. (Tatsuo Ishii)

    Fix replication delay worker segfault when application_name in primary_conninfo is an empty string. (bug 565) (Tatsuo Ishii)

    Fix PGPOOL SHOW command doesn't display ALWAYS_MASTER, when backend_flag = 'ALWAYS_MASTER'. (Takuma Hoshiai)

    Fix the bug with ignored syslog setting. (Bo Peng)

Changelog taken from: https://www.pgpool.net/docs/latest/en/html/release-4-0-8.html
2020-03-15 21:20:19 +00:00
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
Mathieu Arnold
78d1aff1fc Convert to UCL & cleanup pkg-message (categories d) 2019-08-13 16:01:59 +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
dcaef8cd1b Fix WWW
Approved by:	tz (implicit)
Sponsored by:	Netzkommune GmbH
2018-11-15 22:09:04 +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