Simplify pattern selectivity estimation.
commit : 31878ccc2cd5642a5d2a1a39dedb79e9a18c8a07
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Wed, 25 Nov 2026 17:16:54 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Wed, 25 Nov 2026 17:16:54 -0500
Click here for diff
Remove a couple hundred lines of ancient code that purported to
estimate the selectivity of LIKE and regex patterns. This code was
fundamentally bogus in several ways: the estimation rules it used
didn't have much foundation in reality, it could produce different
results depending on database encoding, and its understanding of regex
syntax was far short of adequate. Moreover, we don't really need it
since we installed the histogram_selectivity() machinery: in just
about all practical cases, we will get a far-more-trustworthy
selectivity estimate by seeing how many of the histogram and MCV
list entries match the pattern. So rip all that out, and just use
DEFAULT_MATCH_SEL to represent the selectivity of the non-prefix part
of the pattern when we don't have adequate statistics. (We keep the
prefix-match logic, since we'd want that anyway to permit indexscan
optimizations.)
This change requires rejiggering one set of tests in inherit.sql
so that they continue to prove what they're supposed to about
statistics being inaccessible to users without adequate permissions.
The default selectivity of the regex operator is now small enough to
cause the test query to be planned as a nestloop, so change the
pattern to select a large fraction not a small fraction of the rows.
This flips the choice between hash and nestloop plans, which is fine
since the point is just to show that hiding the statistics matters.
Author: Chengpeng Yan <chengpeng_yan@outlook.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/124D8863-5FFE-412A-B2E1-D07ACBD8FA38@outlook.com
M src/backend/utils/adt/like_support.c
M src/test/regress/expected/inherit.out
M src/test/regress/sql/inherit.sql
doc: Clarify that logical decoding message LSN is the end LSN.
commit : 576189dc25c93e68d1f7c892bcf2c50e4729dbc6
author : Masahiko Sawada <msawada@postgresql.org>
date : Wed, 25 Nov 2026 10:52:49 -0800
committer: Masahiko Sawada <msawada@postgresql.org>
date : Wed, 25 Nov 2026 10:52:49 -0800
Click here for diff
The documentation described the LSN of a logical decoding message just
as the WAL location of the message. That could be read as the start
LSN of its WAL record, since other callbacks such as the change
callback get the start LSN. But we pass the end LSN of the record to
the message callback, and pgoutput sends it as is in the logical
replication Message message.
Update the documentation of both the message callback and the protocol
message to say so explicitly, so that authors of output plugins and
logical replication clients don't confuse it with the start LSN.
On master, commit 4255812efdbc changed transactional messages to use
the start LSN and updated the documentation along with it, so this
change is applied to the back branches only.
Author: Atsushi Torikoshi <torikoshia@oss.nttdata.com>
Discussion: https://postgr.es/m/d99c688994ab3a998afe26e61fe4f69f@oss.nttdata.com
Backpatch-through: 15
M doc/src/sgml/logicaldecoding.sgml
M doc/src/sgml/protocol.sgml
v2.60.1: Annotate and SFTP Fixes
commit : 7aeba299c49abd768ca741506569007a5cab0870
author : David Steele <david@pgbackrest.org>
date : Mon, 16 Nov 2026 08:49:15 -0300
committer: David Steele <david@pgbackrest.org>
date : Mon, 16 Nov 2026 08:49:15 -0300
Click here for diff
Bug Fixes:
* Fix annotate saving backup.info to the default repository. (Reviewed by Stefan Fercot, Douglas J Hunley.)
* Fix possible block incremental restore failure on SFTP storage. (Reviewed by Douglas J Hunley. Reported by Fineline19.)
* Fix use of SFTP file handles after a reconnect. (Reviewed by Douglas J Hunley.)
* Fix excessive memory use by the memory context free list. (Fixed by Vasiliy Koshkin. Reviewed by David Steele, Douglas J Hunley.)
* Do not lower a minimum TLS version set by the OpenSSL config. (Reviewed by Douglas J Hunley, Stefan Fercot.)
* Fix reporting of OpenSSL errors. (Reviewed by Douglas J Hunley, Stefan Fercot.)
Documentation Improvements:
* Document TLS settings skipped when repo-storage-verify-tls=n.
M CONTRIBUTING.md
M README.md
M doc/resource/exe.cache
M doc/xml/auto/metric-coverage-report.auto.xml
M doc/xml/news.xml
M doc/xml/release/2020s/2026/2.59.2.xml
M doc/xml/release/2020s/2026/2.60.1.xml
M meson.build
M src/version.h
Stamp 14.25.
commit : 9adcf5f8847e0f485a390b1d3ea40688068d71bd
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:16:32 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:16:32 -0500
Click here for diff
M configure
M configure.ac
Last-minute updates for release notes.
commit : 1a6533506b3e6639fe6e48ee881b31aa76bfca54
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
Click here for diff
Stamp 15.20.
commit : 6a84c5137e820f46f0123276f546eec5b9a56e70
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:14:54 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:14:54 -0500
Click here for diff
M configure
M configure.ac
Last-minute updates for release notes.
commit : 588ac6507696303da5ca645460ebcd7b11659a82
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
Click here for diff
Stamp 16.16.
commit : c0534eb02de050ac1035ad7b3ad7c3f02980f153
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:12:54 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:12:54 -0500
Click here for diff
M configure
M configure.ac
M meson.build
Last-minute updates for release notes.
commit : b72e2acba126f06ba0a36436af0fafce2bd4e19d
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
Click here for diff
Stamp 17.12.
commit : 702b3dc86d35bcc08c8e23cffa3c4d9fe9d32c85
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:11:08 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:11:08 -0500
Click here for diff
M configure
M configure.ac
M meson.build
Last-minute updates for release notes.
commit : 18c4a9c5f66a1fdf02be21751b931338a04d5790
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
Click here for diff
Stamp 18.7.
commit : f5c41f6681c910b3f69951bf6fb97c6d74605d25
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:09:29 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 15:09:29 -0500
Click here for diff
M configure
M configure.ac
M meson.build
Last-minute updates for release notes.
commit : aed4c42bce80dda767277cf983baec4678c55daf
author : Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
committer: Tom Lane <tgl@sss.pgh.pa.us>
date : Mon, 9 Nov 2026 12:43:05 -0500
Click here for diff
v2.60.0: Page Checksum Errors and Object Store Prefetch
commit : 2e1c4f2ba727c45a0a23d4b326905088dc15b1a1
author : David Steele <david@pgbackrest.org>
date : Sun, 18 Oct 2026 10:31:33 +0200
committer: David Steele <david@pgbackrest.org>
date : Sun, 18 Oct 2026 10:31:33 +0200
Click here for diff
IMPORTANT NOTE: The restore command will now error and stop if any restored file contains an invalid page checksum, which leaves the cluster incomplete and unable to start, so the restore must be rerun. The expire command will now refuse to expire if the oldest retained backup would contain checksum errors, which also prevents archive from being expired in that repository. Set checksum-page-error=n to warn instead of erroring.
Features:
* Add checksum-page-error option to error on invalid page checksums. (Contributed by Andrew Pogrebnoi. Reviewed by Douglas J Hunley, David Steele, Greg Sabino Mullane, Stefan Fercot. Suggested by Greg Sabino Mullane.)
* Support for GCS Workload Identity Federation. (Contributed by Adol Rodriguez. Reviewed by Douglas J Hunley, David Steele.)
* Prefetch multi-file/range reads from object stores. (Reviewed by Andrew Pogrebnoi, Douglas J Hunley.)
Improvements:
* Reduce keep-alive requests to remote processes. (Reviewed by Douglas J Hunley.)
* Retry Azure batch sub-requests missing from the response. (Reviewed by Douglas J Hunley.)
* Reduce the manifest checks made when reconstructing backup.info. (Reviewed by Douglas J Hunley. Suggested by todeb.)
* Use original size to determine if a file should be bundled. (Reviewed by Douglas J Hunley.)
* Add context to block map read errors during backup. (Reviewed by Stefan Fercot, Douglas J Hunley.)
* Cast current_timestamp to text in the backup start label. (Contributed by Tiago Corcelli de Oliveira. Reviewed by David Steele.)
* Support building on illumos. (Contributed by Kalevi Kolttonen. Reviewed by Douglas J Hunley, David Steele.)
* Support OpenSSL 4. (Reviewed by Douglas J Hunley.)
* Fix clang builds. (Reviewed by Douglas J Hunley.)
* Migrate code generation from C to Python.
Documentation Improvements:
* Modernize the website. Special thanks to Jan for the insightful (and hilarious) logo. (Contributed by David Steele, Jan Wieremjewicz. Reviewed by Steve Atkins, Kai Wagner, Douglas J Hunley, Nikolaos Stamatopoulos, Matt Hudson, Stefan Fercot.)
* Document the release schedule.
* Migrate the documentation tools from C and Perl to Python.
Test Suite Improvements:
* Migrate the test harness from C and Perl to Python.
* Add a Fil-C job to CI.
* Add fuzz testing for the JSON, Ini, and Pack readers.
* Allow test user names that adduser on Debian rejects. (Contributed by Stefan Fercot. Reviewed by David Steele.)
M CONTRIBUTING.md
M README.md
M doc/resource/exe.cache
M doc/xml/auto/metric-coverage-report.auto.xml
M doc/xml/index.xml
M doc/xml/news.xml
M doc/xml/release/2020s/2026/2.59.0.xml
M doc/xml/release/2020s/2026/2.59.2.xml
M doc/xml/release/2020s/2026/2.60.0.xml
M meson.build
M src/version.h
v2.59.3: Weak Encryption Subkey Bug
commit : 46cdca625a73403cad4774d97354a1fac1e91e51
author : David Steele <david@pgbackrest.org>
date : Sun, 4 Oct 2026 09:29:49 +0200
committer: David Steele <david@pgbackrest.org>
date : Sun, 4 Oct 2026 09:29:49 +0200
Click here for diff
IMPORTANT NOTE: In prior versions it was possible for weak encryption subkeys and salts to be generated if there was an error accessing system random data.
Bug Fixes:
* Fix possible checksum error loading encrypted info and manifest files. (Fixed by j0uinim. Reviewed by David Steele.)
* Fix possible weak encryption subkeys/salts. (Fixed by j0uinim. Reviewed by David Steele, Stefan Fercot, Douglas J Hunley.)
M CONTRIBUTING.md
M README.md
M doc/RELEASE.md
M doc/resource/exe.cache
M doc/resource/git-history.cache
M doc/xml/auto/metric-coverage-report.auto.xml
M doc/xml/index.xml
M doc/xml/news.xml
M doc/xml/release/2020s/2026/2.59.3.xml
M meson.build
M src/version.h