Life with Open Source

PostgreSQL 19.0 (upcoming) commit log

Fix overflow problems in btree_gist's penalty and distance functions.

commit   : 492bc90572bbbff21ff5770213e3b3e795c32618    
  
author   : Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 23 Nov 2026 17:53:56 -0500    
  
committer: Tom Lane <tgl@sss.pgh.pa.us>    
date     : Mon, 23 Nov 2026 17:53:56 -0500    

Click here for diff

The date opclass's penalty and distance functions used date_mi(),  
which rejects infinite dates.  Once a GiST index on a date column had  
internal pages, inserting 'infinity' or '-infinity' failed, as did any  
later insert or KNN search on an index already containing one.  The  
date <-> date operator failed the same way, so ORDER BY d <-> x could  
succeed with a KNN index scan but fail with a sort.  
  
Compute the penalty with penalty_num(), as the int4 and timestamp  
opclasses do.  In the KNN distance function and the <-> operator,  
treat same-sign infinities as equal, as the float8 opclass does, and  
any other infinite input as infinitely far away: return infinity from  
the former and INT_MAX from the latter.  No difference of two finite  
dates reaches INT_MAX, so both functions order rows the same way.  
  
gbt_float8_dist() raised an error when the difference of two finite  
values overflowed, and gbt_ts_dist() did the same via timestamp_mi()  
for valid timestamps too far apart for their difference to fit in an  
interval.  A KNN search computes these distances for every index entry  
it visits, not just the ones it returns, so a single extreme value in  
the index could make such searches fail.  
  
In gbt_float8_dist(), we need only return the infinite distance that  
the IEEE subtraction already produces.  In gbt_ts_dist(), compute the  
distance in double when the int64 difference overflows.  The <->  
operators themselves can still report overflow, as they do for the  
integer and float4 opclasses.  
  
gbt_ts_dist(), ts_dist() and tstz_dist() treated two equal infinities  
as infinitely far apart.  Treat them as equal instead, as the float8  
and date opclasses do, so that indexes containing multiple such  
entries won't bloat.  This changes the result of 'infinity'::timestamp  
<-> 'infinity'::timestamp (and likewise for -infinity and for  
timestamptz) from infinity to zero.  It seems unlikely that anyone  
is actually storing such values in btree_gist indexes, but if they  
are, they'll likely prefer this behavior anyway, especially since  
it now matches the behavior of other btree_gist opclasses.  
  
Bug: #19761  
Reported-by: Alperen Keles <alpkeles99@gmail.com>  
Author: Nitin Motiani <nitinmotiani@google.com>  
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>  
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>  
Discussion: https://postgr.es/m/19761-b72cfc453e487610@postgresql.org  
Backpatch-through: 15  

M contrib/btree_gist/btree_date.c
M contrib/btree_gist/btree_float8.c
M contrib/btree_gist/btree_ts.c
M contrib/btree_gist/expected/date.out
M contrib/btree_gist/expected/float8.out
M contrib/btree_gist/expected/timestamp.out
M contrib/btree_gist/expected/timestamptz.out
M contrib/btree_gist/sql/date.sql
M contrib/btree_gist/sql/float8.sql
M contrib/btree_gist/sql/timestamp.sql
M contrib/btree_gist/sql/timestamptz.sql

PostgreSQL 20.0 (upcoming) commit log

Recovery: ensure CLOG updates wait for minRecoveryPoint.

commit   : 8303f2e13c5c2fab539e11054073a58942cb0f30    
  
author   : Jeff Davis <jdavis@postgresql.org>    
date     : Wed, 18 Nov 2026 14:18:37 -0800    
  
committer: Jeff Davis <jdavis@postgresql.org>    
date     : Wed, 18 Nov 2026 14:18:37 -0800    

Click here for diff

The hot_standby=on case already used TransactionIdAsyncCommitTree();  
use that for hot_standby=off, too.  
  
Before this commit, it was possible that the CLOG status could reach  
disk without advancing minRecoveryPoint. Recovering with PITR prior to  
the transaction's commit record could incorrectly see the transaction  
as committed.  
  
Reviewed-by: Ayush Tiwari <ayushtiwari.slg01@gmail.com>  
Discussion: https://postgr.es/m/62b070d14df4d9d5f44cb8da6f15546c30259053.camel@j-davis.com  
Backpatch-through: 15  

M src/backend/access/transam/clog.c
M src/backend/access/transam/xact.c

pgBackRest 2.70 commit log

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

PostgreSQL 14.25 commit log

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

PostgreSQL 15.20 commit log

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

PostgreSQL 16.16 commit log

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

PostgreSQL 17.12 commit log

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

PostgreSQL 18.6 commit log

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

pgBackRest 2.69 commit log

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

pgBackRest 2.68 commit log

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