First draft of PG 19 release notes
First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
I have completed the first draft of the PG 19 release notes: https://www.postgresql.org/docs/devel/release-19.html The feature count is 212. The recent average is 200: https://momjian.us/main/writings/pgsql/missing.pdf#page=3 I will create a wiki page to explain my methods used to create this because, someday, someone else will need to do this. I am traveling April 19 to May 7, so I might not be able to make quick adjustments based on feedback. Another committer can handle them, or you can wait for me to get to it. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, Apr 14, 2026 at 09:18:57PM -0400, Bruce Momjian wrote: > I will create a wiki page to explain my methods used to create this > because, someday, someone else will need to do this. Done: https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Дата:
Hi Bruce, On Wed, Apr 15, 2026 at 6:49 AM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html > > The feature count is 212. The recent average is 200: One correction: Add simplified shared memory registration function ShmemRequestStruct() (Ashutosh Bapat) § Heikki Linnakangas is the primary author of this commit. Also, depending upon the availability of space, here's a suggested version: -- Add simplified and improved shared memory registration function ShmemRequestStruct (Heikki Linnakangas, Ashutosh Bapat) Allows requesting named shared memory structures during and after server startup. Functions ShmemInitStruct() and ShmemInitHash() remain for backward compatibility. -- -- Best Wishes, Ashutosh Bapat
Re: First draft of PG 19 release notes
От:
David Rowley <dgrowleyml@gmail.com>
Дата:
On Wed, 15 Apr 2026 at 13:19, Bruce Momjian wrote: > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html Many thanks for your efforts here. "Improve performance of internal row formation (David Rowley)" It's really deformation, not formation. As far as I know, nothing in v19 sped up tuple formation. I also think Nathan's work on autovacuum table prioritisation (d7965d65f) is worth a mention. There were concerns there that it might cause trouble for people who (for some reason) get best results from the previous pg_class-ordered priority. Having something in the notes about this might help direct someone towards why they're seeing autovacuum behave differently after upgrading. David
Re: First draft of PG 19 release notes
От:
Peter Smith <smithpb2250@gmail.com>
Дата:
Hi, For this one: "Allow CREATE/ALTER PUBLICATION to exclude some tables using the EXCEPT TABLE clause (Vignesh C, Shlok Kyal)" ~ The "EXCEPT TABLE" syntax was later changed to "EXCEPT (TABLE ...)", so where above says "EXCEPT TABLE clause", probably now that should just say "EXCEPT clause" same as the documentation. ====== Kind Regards, Peter Smith. Fujitsu Australia.
Re: First draft of PG 19 release notes
От:
Laurenz Albe <laurenz.albe@cybertec.at>
Дата:
On Tue, 2026-04-14 at 21:18 -0400, Bruce Momjian wrote: > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html Thank you! I noticed a typo: Change vacuumdb's --analyze-only option to analyze partitioned tables when now targets are specified It should probably be "no targets" rather than "now targets". Yours, Laurenz Albe
Re: First draft of PG 19 release notes
От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 15 Apr 2026, at 03:18, Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: +Allow online enabling and disabling of data checksums (Daniel Gustafsson, Magnus Hagander, Tomas Vondra, Lakshmi N) This one should only say "Daniel Gustafsson, Magnus Hagander, Tomas Vondra" -- Daniel Gustafsson
Re: First draft of PG 19 release notes
От:
jian he <jian.universality@gmail.com>
Дата:
On Wed, Apr 15, 2026 at 9:19 AM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html > https://git.postgresql.org/cgit/postgresql.git/commit/?id=ecd9288624a1582a732cf86ac5a01475a1ce7815 https://git.postgresql.org/cgit/postgresql.git/commit/?id=4edd6036d69ce42ac1af236f659f20daed65c8d4 Do you think these two are worth adding to the release notes? """ Allow COPY TO to output partitioned tables (Jian He, Ajin Cherian) § § Previously COPY (SELECT ...) has to be used to output partitioned tables. """ The second commit uses this feature, so i guess the commit message needs a slight change. """ Improve timing performance measurements (Lukas Fittl, Andres Freund, David Geier, Lukas Fittl, David Geier) § § This benefits EXPLAIN (ANALYZE, TIMING) and pg_test_timing, and is controlled via server variable timing_clock_source. """ Duplicated name entry. """ Allow IS [NOT] DISTINCT FROM NULL to be converted to IS [NOT] NULL for proven null arguments (Richard Guo) § The latter form is more easily optimized. """ Two optional ``[NOT]`` introduce ambiguity. """ Add support for INSERT ... RETURNING ... ON CONFLICT DO SELECT (Andreas Karlsson, Marko Tiikkaja, Viktor Holmberg) § This allows conflicting rows to be returns, and optionally locked with FOR UPDATE/SHARE. """ I think it's: INSERT... ON CONFLICT DO SELECT...RETURNING -- jian https://www.enterprisedb.com/
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Wed, Apr 15, 2026 at 07:55:56AM +0530, Ashutosh Bapat wrote: > Hi Bruce, > > On Wed, Apr 15, 2026 at 6:49 AM Bruce Momjian wrote: > > > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > The feature count is 212. The recent average is 200: > > One correction: > > Add simplified shared memory registration function > ShmemRequestStruct() (Ashutosh Bapat) § > > Heikki Linnakangas is the primary author of this commit. > > Also, depending upon the availability of space, here's a suggested version: > > -- > Add simplified and improved shared memory registration function > ShmemRequestStruct (Heikki Linnakangas, Ashutosh Bapat) I have used your text above. FYI, the commit message only has this for author: Co-authored-by: Ashutosh Bapat > Allows requesting named shared memory structures during and after > server startup. Functions ShmemInitStruct() and ShmemInitHash() remain > for backward compatibility. I didn't add this text because the number of readers interested in this change is very small. Those who are interested can read the commit message. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Jacob Champion <jacob.champion@enterprisedb.com>
Дата:
On Wed, Apr 15, 2026 at 9:57 AM Bruce Momjian wrote: > I have used your text above. FYI, the commit message only has this for > author: > > Co-authored-by: Ashutosh Bapat The pattern of "a missing Author means the committer is the primary author" was discussed at [1]; you asked if Co-authored-by was used that way, and the answer was "yes". I use it, too. Thanks, --Jacob [1] https://postgr.es/m/adO73c_EJKi05smk%40momjian.us
Re: First draft of PG 19 release notes
От:
Melanie Plageman <melanieplageman@gmail.com>
Дата:
On Tue, Apr 14, 2026 at 9:19 PM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html As of b46e1e54d078def, SELECT queries may update the visibility map. Previously only vacuum did this. I think users may be confused by this if it is not mentioned in the release notes. Additionally, users may notice that there are no longer XLOG_HEAP2_VISIBLE records. A series of commits culminating in a881cc9c7e819fb (others being d96f87332b378, add323da40a6bf9e0, 1252a4ee2863673, a759ced2f1e) moved VM setting into the XLOG_HEAP2_PRUNE_VACUUM_SCAN record. Users may notice that XLOG_HEAP2_VISIBLE records are no longer produced. This is more minor, but we also now (378a216187aea1) set pd_prune_xid on insert, so users may notice that a freshly inserted page is on-access pruned and then the VM is set (which wouldn't have happened before without vacuum). - Melanie
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Wed, Apr 15, 2026 at 02:29:49PM +1200, David Rowley wrote: > On Wed, 15 Apr 2026 at 13:19, Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > Many thanks for your efforts here. > > "Improve performance of internal row formation (David Rowley)" > > It's really deformation, not formation. As far as I know, nothing in > v19 sped up tuple formation. Changed to: Improve performance of internal row deformation (David Rowley) -- Thanks. > I also think Nathan's work on autovacuum table prioritisation > (d7965d65f) is worth a mention. There were concerns there that it > might cause trouble for people who (for some reason) get best results > from the previous pg_class-ordered priority. Having something in the > notes about this might help direct someone towards why they're seeing > autovacuum behave differently after upgrading. Yikes, so I collected commits on March 26, but when I went to add new commits, I used March 27 as the start date, and missed all the late March 26 commits. I should have started on March 26 to get later-in-the-day commits! I went back and looked at the commits I missed and the one you pointed out is the only relevant one, so that is good. Applied patch attached. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Wed, Apr 15, 2026 at 10:21:34AM -0700, Jacob Champion wrote: > On Wed, Apr 15, 2026 at 9:57 AM Bruce Momjian wrote: > > I have used your text above. FYI, the commit message only has this for > > author: > > > > Co-authored-by: Ashutosh Bapat > > The pattern of "a missing Author means the committer is the primary > author" was discussed at [1]; you asked if Co-authored-by was used > that way, and the answer was "yes". I use it, too. Well, I am guessing you didn't read this thread fully: https://www.postgresql.org/message-id/flat/adElLtegJxi6Yecv%40momjian.us which opened with the question: In the PG 19 commits, I am seeing several commits with Author and Co-authored-by tags. FYI, I think we agreed that only the Author names are mentioned as the authors in the release notes. and I was told that authors and "Co-authored-by" should be listed; they are effectively the same, except that github recognizes "Co-authored-by". I _thought_ the plan from January 2025 until March 2026 was: https://wiki.postgresql.org/wiki/Commit_Message_Guidance Author: Co-authored-by: Used to indicate the patch authors. "Co-authored-by:" is used by committers when they want to give full credit to the named individuals, but also indicate that they made significant changes. This was specifically for "Co-authored-by:" == committer, but the text was not clear enough. However, that doesn't match your usage where a missing "Author" is considered to be the committer. At [1], https://postgr.es/m/adO73c_EJKi05smk, I said: Wow, I never thought that was a valid pattern, but I see a few PG 19 commit messages using that, e.g.: Author: Peter Eisentraut 2025-08-12 [5f19d13df] libpq: Set LDAP protocol version 3 libpq: Set LDAP protocol version 3 Some LDAP servers reject the default version 2 protocol. So set version 3 before starting the connection. This matches how the backend LDAP code has worked all along. Co-authored-by: Andrew Jackson Reviewed-by: Pavel Seleznev Discussion: https://www.postgresql.org/message-id/flat/CAKK5BkHixcivSCA9pfd_eUp7wkLRhvQ6OtGLAYrWC%3Dk7E76LDQ%40mail.gmail.com Is that what people are using? A missing Author, and co-authors means the committer is the author? Right? Shouldn't we document this? That does give a unique use for Co-authored-by. However, later emails said: https://www.postgresql.org/message-id/CA%2BTgmob_tz0%2BT1CcyTFwgQVThsoezY2fKib%3Dr%2BukAvVBXwM1gg%40mail.gmail.com This whole discussion is crazy to me. Every Author and Co-Author should be listed in the release notes. If there is no author or co-author named in the commit message, then the committer should be listed as the sole author; otherwise, the exact list of authors and co-authors that the committer chose to include in the commit message should be credited. and there are more emails saying that, so that is the rule I used, and documented on the wiki is: https://wiki.postgresql.org/wiki/Commit_Message_Guidance Used to indicate the patch authors. If no "Author" or "Co-authored-by" is listed, the committer is assumed to be the author. What I also said in the thread was: What I don't want to do is to re-litigate this again, and usually if we ignore what people said in the past, they will show up at some later time to try to undo what we are doing now. I created the PG 19 release notes with Author == "Co-authored-by:", so if committers have not done that for PG 19, I need them to either inform me of the rules they used, supply a release note patch, or change the release notes themselves. And hopefully use agreed-upon rules in the future, whatever we decide those are. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Wed, Apr 15, 2026 at 02:41:22PM -0400, Bruce Momjian wrote: > On Wed, Apr 15, 2026 at 02:29:49PM +1200, David Rowley wrote: > > On Wed, 15 Apr 2026 at 13:19, Bruce Momjian wrote: > > > I have completed the first draft of the PG 19 release notes: > > > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > Many thanks for your efforts here. > > > > "Improve performance of internal row formation (David Rowley)" > > > > It's really deformation, not formation. As far as I know, nothing in > > v19 sped up tuple formation. > > Changed to: > > Improve performance of internal row deformation (David Rowley) > -- > Thanks. > > > I also think Nathan's work on autovacuum table prioritisation > > (d7965d65f) is worth a mention. There were concerns there that it > > might cause trouble for people who (for some reason) get best results > > from the previous pg_class-ordered priority. Having something in the > > notes about this might help direct someone towards why they're seeing > > autovacuum behave differently after upgrading. > > Yikes, so I collected commits on March 26, but when I went to add new > commits, I used March 27 as the start date, and missed all the late > March 26 commits. I should have started on March 26 to get > later-in-the-day commits! > > I went back and looked at the commits I missed and the one you pointed > out is the only relevant one, so that is good. > > Applied patch attached. Oops, patch _now_ attached. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Wed, Apr 15, 2026 at 03:27:49PM +1000, Peter Smith wrote: > Hi, > > For this one: > "Allow CREATE/ALTER PUBLICATION to exclude some tables using the > EXCEPT TABLE clause (Vignesh C, Shlok Kyal)" > > ~ > > The "EXCEPT TABLE" syntax was later changed to "EXCEPT (TABLE ...)", > so where above says "EXCEPT TABLE clause", probably now that should > just say "EXCEPT clause" same as the documentation. Yep, attached patch applied. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Wed, Apr 15, 2026 at 10:57:25AM +0200, Laurenz Albe wrote: > On Tue, 2026-04-14 at 21:18 -0400, Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > Thank you! > > I noticed a typo: > > Change vacuumdb's --analyze-only option to analyze partitioned tables when now targets are specified > > It should probably be "no targets" rather than "now targets". "Now targets" did have a sense of immediacy, but unfortunately inaccurate. ;-) Fixed. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Wed, Apr 15, 2026 at 01:18:50PM +0200, Daniel Gustafsson wrote: > > On 15 Apr 2026, at 03:18, Bruce Momjian wrote: > > > > I have completed the first draft of the PG 19 release notes: > > +Allow online enabling and disabling of data checksums (Daniel Gustafsson, Magnus Hagander, Tomas Vondra, Lakshmi N) > > This one should only say "Daniel Gustafsson, Magnus Hagander, Tomas Vondra" Okay, I added "Lakshmi N" because of this commit which is linked to from the release notes: commit b364828f825 Author: Daniel Gustafsson Date: Wed Apr 8 22:53:43 2026 +0300 doc: Fix data_checksums data type Commit f19c0eccae96 changed the data_checksums GUC datatype from a boolean to an enum. This updates the documentation to accurately reflect its new type and document the new possible states: 'on', 'off', 'inprogress-on', and 'inprogress-off'. Also update the xref for more information to point to the section on data checksums rather than the initdb checksum option. Author: Lakshmi N Reviewed-by: Daniel Gustafsson Discussion: https://postgr.es/m/CA+3i_M-AtTnqTB2KLBTpu-c-jvnTuy7bGxyxs80rgiQLxWrRUQ@mail.gmail.com but it is only a small doc patch, so makes sense to remove him. I debated this one at the time I added his name. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Wed, Apr 15, 2026 at 10:59:13PM +0800, jian he wrote: > On Wed, Apr 15, 2026 at 9:19 AM Bruce Momjian wrote: > > > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > https://git.postgresql.org/cgit/postgresql.git/commit/?id=ecd9288624a1582a732cf86ac5a01475a1ce7815 I don't usually mention test changes in the release notes. > https://git.postgresql.org/cgit/postgresql.git/commit/?id=4edd6036d69ce42ac1af236f659f20daed65c8d4 Uh, the commit message is: commit 4edd6036d69 Author: Tom Lane Date: Tue Apr 7 14:45:33 2026 -0400 Fix WITHOUT OVERLAPS' interaction with domains. UNIQUE/PRIMARY KEY ... WITHOUT OVERLAPS requires the no-overlap column to be a range or multirange, but it should allow a domain over such a type too. This requires minor adjustments in both the parser and executor. In passing, fix a nearby break-instead-of-continue thinko in transformIndexConstraint. This had the effect of disabling parse-time validation of the no-overlap column's type in the context of ALTER TABLE ADD CONSTRAINT, if it follows a dropped column. We'd still complain appropriately at runtime though. Author: Jian He Reviewed-by: Paul A Jungwirth Reviewed-by: Tom Lane Discussion: https://postgr.es/m/CACJufxGoAmN_0iJ=hjTG0vGpOSOyy-vYyfE+-q0AWxrq2_p5XQ@mail.gmail.com --> Backpatch-through: 18 Since it is backpatched to PG 18, it shouldn't appear in the PG 19 release notes. > """ > Allow COPY TO to output partitioned tables (Jian He, Ajin Cherian) § § > Previously COPY (SELECT ...) has to be used to output partitioned tables. > """ > The second commit uses this feature, so i guess the commit message > needs a slight change. Updated in attached patch. > """ > Improve timing performance measurements (Lukas Fittl, Andres Freund, > David Geier, Lukas Fittl, David Geier) § § > This benefits EXPLAIN (ANALYZE, TIMING) and pg_test_timing, and is > controlled via server variable timing_clock_source. > """ > Duplicated name entry. Fixed in attached patch. > """ > Allow IS [NOT] DISTINCT FROM NULL to be converted to IS [NOT] NULL for > proven null arguments (Richard Guo) § > The latter form is more easily optimized. > """ > Two optional ``[NOT]`` introduce ambiguity. Uh, if the NOT is in the first, it is in the second. Is that confusing? Suggestions? > """ > Add support for INSERT ... RETURNING ... ON CONFLICT DO SELECT > (Andreas Karlsson, Marko Tiikkaja, Viktor Holmberg) § > This allows conflicting rows to be returns, and optionally locked with > FOR UPDATE/SHARE. > """ > I think it's: > INSERT... ON CONFLICT DO SELECT...RETURNING Uh, went by the commit messsage which says: The INSERT statement must have a RETURNING clause, when DO SELECT is specified. However, all the examples have the syntax as you specified, so I must have interpreted it wrong. Applied patch attached. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Wed, Apr 15, 2026 at 01:56:50PM -0400, Melanie Plageman wrote: > On Tue, Apr 14, 2026 at 9:19 PM Bruce Momjian wrote: > > > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > As of b46e1e54d078def, SELECT queries may update the visibility map. > Previously only vacuum did this. I think users may be confused by this > if it is not mentioned in the release notes. Yes, I puzzled on this one and I am glad you clarified its purpose. I think it should be added, and I have applied the attached patch. > Additionally, users may notice that there are no longer > XLOG_HEAP2_VISIBLE records. A series of commits culminating in > a881cc9c7e819fb (others being d96f87332b378, add323da40a6bf9e0, > 1252a4ee2863673, a759ced2f1e) moved VM setting into the > XLOG_HEAP2_PRUNE_VACUUM_SCAN record. Users may notice that > XLOG_HEAP2_VISIBLE records are no longer produced. > > This is more minor, but we also now (378a216187aea1) set pd_prune_xid > on insert, so users may notice that a freshly inserted page is > on-access pruned and then the VM is set (which wouldn't have happened > before without vacuum). Uh, I don't want to get into the internals too much in the release notes, in fear of confusing/losing readers. I think this is too low-level to mention, but we now have a good "prune" item so if they see big improvements, they will know why. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>
Дата:
On Wed, Apr 15, 2026 at 10:27 PM Bruce Momjian wrote: > > On Wed, Apr 15, 2026 at 07:55:56AM +0530, Ashutosh Bapat wrote: > > Hi Bruce, > > > > On Wed, Apr 15, 2026 at 6:49 AM Bruce Momjian wrote: > > > > > > I have completed the first draft of the PG 19 release notes: > > > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > > > The feature count is 212. The recent average is 200: > > > > One correction: > > > > Add simplified shared memory registration function > > ShmemRequestStruct() (Ashutosh Bapat) § > > > > Heikki Linnakangas is the primary author of this commit. > > > > Also, depending upon the availability of space, here's a suggested version: > > > > -- > > Add simplified and improved shared memory registration function > > ShmemRequestStruct (Heikki Linnakangas, Ashutosh Bapat) > > I have used your text above. FYI, the commit message only has this for > author: > > Co-authored-by: Ashutosh Bapat Thanks for accepting the suggestion. > > > Allows requesting named shared memory structures during and after > > server startup. Functions ShmemInitStruct() and ShmemInitHash() remain > > for backward compatibility. > > I didn't add this text because the number of readers interested in this > change is very small. Those who are interested can read the commit > message. Fair enough. -- Best Wishes, Ashutosh Bapat
Re: First draft of PG 19 release notes
On Tue, Apr 14, 2026 at 6:19 PM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html Thank you for working on this. "Add memory usage and parallelism reporting to VACUUM (VERBOSE) and autovacuum logs (Masahiko Sawada, Daniil Davydov)" Please revise the author of the memory usage report to vacuum logs to Tatsuya Kawata. I missed credit him as the author in the original commit[1]. I've attached the patch. Regards, [1] https://www.postgresql.org/message-id/CAD21AoD8NOPCZ6_b0Kt1rdaMtwSU2PaAhwcecEBj4ifEySvLRw%40mail.gmail.com -- Masahiko Sawada Amazon Web Services: https://aws.amazon.com
Re: First draft of PG 19 release notes
От:
David Geier <geidav.pg@gmail.com>
Дата:
Hi Bruce! On 15.04.2026 03:18, Bruce Momjian wrote: > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html > > The feature count is 212. The recent average is 200: > > https://momjian.us/main/writings/pgsql/missing.pdf#page=3 > How about also including the improvements we did for reducing GIN index build times, see [1]? Not all patches have been committed yet but the ones that got committed already make a meaningful difference. [1] https://www.postgresql.org/message-id/flat/5d366878-2007-4d31-861e-19294b7a583b%40gmail.com -- David Geier
Re: First draft of PG 19 release notes
On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html Thanks for putting in all this work! The co-author is missing from this item: * Allow more LEFT JOINs to be converted to ANTI JOINs (Tender Wang) Three items authored by me are under General Performance but should be under Optimizer, as they are planner-time expression transformations. I also fixed some wording issues in those items and one other Optimizer item. Attached is the patch. - Richard
Re: First draft of PG 19 release notes
От:
Michael Banck <mbanck@gmx.net>
Дата:
Hi, On Wed, Apr 15, 2026 at 03:27:06PM -0400, Bruce Momjian wrote: > On Wed, Apr 15, 2026 at 10:21:34AM -0700, Jacob Champion wrote: > > On Wed, Apr 15, 2026 at 9:57 AM Bruce Momjian wrote: > > > I have used your text above. FYI, the commit message only has this for > > > author: > > > > > > Co-authored-by: Ashutosh Bapat > > > > The pattern of "a missing Author means the committer is the primary > > author" was discussed at [1]; you asked if Co-authored-by was used > > that way, and the answer was "yes". I use it, too. > > Well, I am guessing you didn't read this thread fully: > > https://www.postgresql.org/message-id/flat/adElLtegJxi6Yecv%40momjian.us > > which opened with the question: > > In the PG 19 commits, I am seeing several commits with Author > and Co-authored-by tags. FYI, I think we agreed that only the > Author names are mentioned as the authors in the release notes. > > and I was told that authors and "Co-authored-by" should be listed; they > are effectively the same, except that github recognizes > "Co-authored-by". > > I _thought_ the plan from January 2025 until March 2026 was: > > https://wiki.postgresql.org/wiki/Commit_Message_Guidance > Author: > Co-authored-by: > Used to indicate the patch authors. "Co-authored-by:" is used by > committers when they want to give full credit to the named individuals, > but also indicate that they made significant changes. > > This was specifically for "Co-authored-by:" == committer, but the text > was not clear enough. However, that doesn't match your usage where a > missing "Author" is considered to be the committer. I think if the committer omits an "Author" tag, but credits a non-committer as "Co-Author", then both the committer and the non-committer should be considered authors and credited in the release notes. What would be the use-case for a sole non-committer "Co-Author" (as opposed to just crediting the non-committer as "Author") otherwise be? Michael
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Apr 16, 2026 at 09:54:57AM +0200, Michael Banck wrote: > > Well, I am guessing you didn't read this thread fully: > > > > https://www.postgresql.org/message-id/flat/adElLtegJxi6Yecv%40momjian.us > > > > This was specifically for "Co-authored-by:" == committer, but the text > > was not clear enough. However, that doesn't match your usage where a > > missing "Author" is considered to be the committer. > > I think if the committer omits an "Author" tag, but credits a > non-committer as "Co-Author", then both the committer and the > non-committer should be considered authors and credited in the release > notes. > > What would be the use-case for a sole non-committer "Co-Author" (as > opposed to just crediting the non-committer as "Author") otherwise be? I agree with you, and made that case in January of 2025 and in the email thread URL above. However, I seemed to annoy people more than help them, so I am not going to revisit it. If someone else wants to restart that thread and get a different consensus, feel free to do so. My guess is that most (vocal?) committers prefer to have Author and Co-Author indicate different levels of authorship in the commit text, rather than have them have different behavior for release note authorship. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Wed, Apr 15, 2026 at 10:47:58PM -0700, Masahiko Sawada wrote: > On Tue, Apr 14, 2026 at 6:19 PM Bruce Momjian wrote: > > > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > Thank you for working on this. > > "Add memory usage and parallelism reporting to VACUUM (VERBOSE) and > autovacuum logs (Masahiko Sawada, Daniil Davydov)" > > Please revise the author of the memory usage report to vacuum logs to > Tatsuya Kawata. I missed credit him as the author in the original > commit[1]. > > I've attached the patch. Great, patch applied. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Apr 16, 2026 at 08:38:45AM +0200, David Geier wrote: > Hi Bruce! > > On 15.04.2026 03:18, Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > The feature count is 212. The recent average is 200: > > > > https://momjian.us/main/writings/pgsql/missing.pdf#page=3 > > > > How about also including the improvements we did for reducing GIN index > build times, see [1]? Not all patches have been committed yet but the > ones that got committed already make a meaningful difference. > > [1] > https://www.postgresql.org/message-id/flat/5d366878-2007-4d31-861e-19294b7a583b%40gmail.com This is an interesting case. First, I looked at the commit logs and didn't see anything talking about improving the speed of GIN index builds. So then I looked at the first email in the thread and saw 3x improvement for pg_trgm, so I looked in the commit logs for pg_trgm and didn't see any speedup mentioned. I then looked at the posted patches and this might be a case where there are a number of targeted improvements that didn't specify the larger goal, so there is no goal mentioned in the commit logs. This is an edge case that is hard to get into the release notes. Now that you have told me about it, here is my normal criteria for adding performance items to the release notes: Performance improvements are mentioned in the release notes if they are user-visible (e.g., new syntax) or significant enough to enable new workloads. So, it seems there is no user-visible change, except it is faster. Does it enable new workloads? A 3x speedup probably does. Should this be a pg_trgm item, with a description mentioning GIN in general, or should it be a GIN item, perhaps mentioning pg_trgm? Do you have any suggested text and list of commits? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Apr 16, 2026 at 04:49:37PM +0900, Richard Guo wrote: > On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > Thanks for putting in all this work! > > The co-author is missing from this item: > * Allow more LEFT JOINs to be converted to ANTI JOINs (Tender Wang) > > Three items authored by me are under General Performance but should be > under Optimizer, as they are planner-time expression transformations. > I also fixed some wording issues in those items and one other > Optimizer item. > > Attached is the patch. Great, patch applied. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
David Geier <geidav.pg@gmail.com>
Дата:
On 16.04.2026 18:14, Bruce Momjian wrote: >> How about also including the improvements we did for reducing GIN index >> build times, see [1]? Not all patches have been committed yet but the >> ones that got committed already make a meaningful difference. >> >> [1] >> https://www.postgresql.org/message-id/flat/5d366878-2007-4d31-861e-19294b7a583b%40gmail.com > > This is an interesting case. First, I looked at the commit logs and > didn't see anything talking about improving the speed of GIN index > builds. So then I looked at the first email in the thread and saw 3x > improvement for pg_trgm, so I looked in the commit logs for pg_trgm and > didn't see any speedup mentioned. > > I then looked at the posted patches and this might be a case where there > are a number of targeted improvements that didn't specify the larger > goal, so there is no goal mentioned in the commit logs. This is an edge > case that is hard to get into the release notes. > > Now that you have told me about it, here is my normal criteria for > adding performance items to the release notes: > > Performance improvements are mentioned in the release notes if > they are user-visible (e.g., new syntax) or significant enough > to enable new workloads. > > So, it seems there is no user-visible change, except it is faster. Does > it enable new workloads? A 3x speedup probably does. Should this be a > pg_trgm item, with a description mentioning GIN in general, or should it > be a GIN item, perhaps mentioning pg_trgm? Do you have any suggested > text and list of commits? Not all patches from the initial mail have been committed yet. Hence, currently the speed up is less. However, once they got all committed they would indeed open up new "use cases". For example, I know users that don't add GIN indexes to very large tables because creating them takes too long. -- David Geier
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, Apr 17, 2026 at 04:40:09PM +0200, David Geier wrote: > > Now that you have told me about it, here is my normal criteria for > > adding performance items to the release notes: > > > > Performance improvements are mentioned in the release notes if > > they are user-visible (e.g., new syntax) or significant enough > > to enable new workloads. > > > > So, it seems there is no user-visible change, except it is faster. Does > > it enable new workloads? A 3x speedup probably does. Should this be a > > pg_trgm item, with a description mentioning GIN in general, or should it > > be a GIN item, perhaps mentioning pg_trgm? Do you have any suggested > > text and list of commits? > > Not all patches from the initial mail have been committed yet. Hence, > currently the speed up is less. However, once they got all committed > they would indeed open up new "use cases". For example, I know users > that don't add GIN indexes to very large tables because creating them > takes too long. Yes, GIN index creation has always been considered slow, so it is good it is being worked on. I wonder if we should just wait for it all to be committed before adding it to the release notes, unless you want to measure the improvement we have in PG 19. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
David Geier <geidav.pg@gmail.com>
Дата:
>>> So, it seems there is no user-visible change, except it is faster. Does >>> it enable new workloads? A 3x speedup probably does. Should this be a >>> pg_trgm item, with a description mentioning GIN in general, or should it >>> be a GIN item, perhaps mentioning pg_trgm? Do you have any suggested >>> text and list of commits? >> >> Not all patches from the initial mail have been committed yet. Hence, >> currently the speed up is less. However, once they got all committed >> they would indeed open up new "use cases". For example, I know users >> that don't add GIN indexes to very large tables because creating them >> takes too long. > > Yes, GIN index creation has always been considered slow, so it is good > it is being worked on. I wonder if we should just wait for it all to be > committed before adding it to the release notes, unless you want to > measure the improvement we have in PG 19. I've measured with the same benchmark I used in the original thread [1]. With latest master the results are as follows: Dataset | REL_18_3 | master | Speedup ---------|------------|------------|-------- movies | 10,561 ms | 9,124 ms | 1.17x lineitem | 263,523 ms | 234,605 ms | 1.12x That's because three patches from the patchset haven't been committed yet. Two of the three patches are the most impactful from the patchset. [1] https://www.postgresql.org/message-id/flat/5d366878-2007-4d31-861e-19294b7a583b%40gmail.com -- David Geier
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sun, Apr 19, 2026 at 01:27:10PM +0200, David Geier wrote: > >>> So, it seems there is no user-visible change, except it is faster. Does > >>> it enable new workloads? A 3x speedup probably does. Should this be a > >>> pg_trgm item, with a description mentioning GIN in general, or should it > >>> be a GIN item, perhaps mentioning pg_trgm? Do you have any suggested > >>> text and list of commits? > >> > >> Not all patches from the initial mail have been committed yet. Hence, > >> currently the speed up is less. However, once they got all committed > >> they would indeed open up new "use cases". For example, I know users > >> that don't add GIN indexes to very large tables because creating them > >> takes too long. > > > > Yes, GIN index creation has always been considered slow, so it is good > > it is being worked on. I wonder if we should just wait for it all to be > > committed before adding it to the release notes, unless you want to > > measure the improvement we have in PG 19. > > I've measured with the same benchmark I used in the original thread [1]. > With latest master the results are as follows: > > Dataset | REL_18_3 | master | Speedup > ---------|------------|------------|-------- > movies | 10,561 ms | 9,124 ms | 1.17x > lineitem | 263,523 ms | 234,605 ms | 1.12x > > That's because three patches from the patchset haven't been committed > yet. Two of the three patches are the most impactful from the patchset. Okay, at +12-17%, so we should wait until all the patches are in to mention this. Thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Andres Freund <andres@anarazel.de>
Дата:
Hi, On 2026-04-19 09:32:45 -0400, Bruce Momjian wrote: > On Sun, Apr 19, 2026 at 01:27:10PM +0200, David Geier wrote: > > >>> So, it seems there is no user-visible change, except it is faster. Does > > >>> it enable new workloads? A 3x speedup probably does. Should this be a > > >>> pg_trgm item, with a description mentioning GIN in general, or should it > > >>> be a GIN item, perhaps mentioning pg_trgm? Do you have any suggested > > >>> text and list of commits? > > >> > > >> Not all patches from the initial mail have been committed yet. Hence, > > >> currently the speed up is less. However, once they got all committed > > >> they would indeed open up new "use cases". For example, I know users > > >> that don't add GIN indexes to very large tables because creating them > > >> takes too long. > > > > > > Yes, GIN index creation has always been considered slow, so it is good > > > it is being worked on. I wonder if we should just wait for it all to be > > > committed before adding it to the release notes, unless you want to > > > measure the improvement we have in PG 19. > > > > I've measured with the same benchmark I used in the original thread [1]. > > With latest master the results are as follows: > > > > Dataset | REL_18_3 | master | Speedup > > ---------|------------|------------|-------- > > movies | 10,561 ms | 9,124 ms | 1.17x > > lineitem | 263,523 ms | 234,605 ms | 1.12x > > > > That's because three patches from the patchset haven't been committed > > yet. Two of the three patches are the most impactful from the patchset. > > Okay, at +12-17%, so we should wait until all the patches are in to > mention this. Thanks. That makes no sense to me. It's a material improvement that could convince people to upgrade. Why would you not want to mention that, just because PG 20 might have further improvements? There *always* will be further potential improvements. Greetings, Andres Freund
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sun, Apr 19, 2026 at 11:10:40AM -0400, Andres Freund wrote: > Hi, > > On 2026-04-19 09:32:45 -0400, Bruce Momjian wrote: > > On Sun, Apr 19, 2026 at 01:27:10PM +0200, David Geier wrote: > > > >>> So, it seems there is no user-visible change, except it is faster. Does > > > >>> it enable new workloads? A 3x speedup probably does. Should this be a > > > >>> pg_trgm item, with a description mentioning GIN in general, or should it > > > >>> be a GIN item, perhaps mentioning pg_trgm? Do you have any suggested > > > >>> text and list of commits? > > > >> > > > >> Not all patches from the initial mail have been committed yet. Hence, > > > >> currently the speed up is less. However, once they got all committed > > > >> they would indeed open up new "use cases". For example, I know users > > > >> that don't add GIN indexes to very large tables because creating them > > > >> takes too long. > > > > > > > > Yes, GIN index creation has always been considered slow, so it is good > > > > it is being worked on. I wonder if we should just wait for it all to be > > > > committed before adding it to the release notes, unless you want to > > > > measure the improvement we have in PG 19. > > > > > > I've measured with the same benchmark I used in the original thread [1]. > > > With latest master the results are as follows: > > > > > > Dataset | REL_18_3 | master | Speedup > > > ---------|------------|------------|-------- > > > movies | 10,561 ms | 9,124 ms | 1.17x > > > lineitem | 263,523 ms | 234,605 ms | 1.12x > > > > > > That's because three patches from the patchset haven't been committed > > > yet. Two of the three patches are the most impactful from the patchset. > > > > Okay, at +12-17%, so we should wait until all the patches are in to > > mention this. Thanks. > > That makes no sense to me. It's a material improvement that could convince > people to upgrade. Why would you not want to mention that, just because PG 20 > might have further improvements? There *always* will be further potential > improvements. The text I put in the wiki, which I have followed for years, says: https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes Performance improvements are mentioned in the release notes if they are user-visible (e.g., new syntax) or significant enough to enable new workloads. I didn't think +12-17% for an index build would enable new workloads. If you want to relitigate that, you are welcome to do so. If this is changed, it has to be done so consistently, not just for this item. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Andres Freund <andres@anarazel.de>
Дата:
Hi, On 2026-04-19 13:53:08 -0400, Bruce Momjian wrote: > The text I put in the wiki, which I have followed for years, says: > > https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes > Performance improvements are mentioned in the release notes if > they are user-visible (e.g., new syntax) or significant enough > to enable new workloads. > > I didn't think +12-17% for an index build would enable new workloads. > If you want to relitigate that, you are welcome to do so. If this is > changed, it has to be done so consistently, not just for this item. Just about everyone has disagreed vehemently with you about this, in every of the last 5 releases or so. I don't think it's ok that you continue to ignore that. I find this policy so depressing that I stopped even opening the release notes, just to preserve whatever semblance of sanity I possess. I'm know I'm not alone in that. Greetings, Andres Freund
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sun, Apr 19, 2026 at 02:04:34PM -0400, Andres Freund wrote: > Hi, > > On 2026-04-19 13:53:08 -0400, Bruce Momjian wrote: > > The text I put in the wiki, which I have followed for years, says: > > > > https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes > > Performance improvements are mentioned in the release notes if > > they are user-visible (e.g., new syntax) or significant enough > > to enable new workloads. > > > > I didn't think +12-17% for an index build would enable new workloads. > > If you want to relitigate that, you are welcome to do so. If this is > > changed, it has to be done so consistently, not just for this item. > > Just about everyone has disagreed vehemently with you about this, in every of > the last 5 releases or so. I don't think it's ok that you continue to ignore > that. That is not my recollection, and I thought I would have heard more about it if that was the case. > I find this policy so depressing that I stopped even opening the release > notes, just to preserve whatever semblance of sanity I possess. I'm know I'm > not alone in that. Well, I just merged the wiki text to explain that we have to consider how much an item is of interest when adding it: While the major release notes include changes to the documented extension interface, it does not include all changes of interest to extension developers or Postgres forks because doing so would include too many items that would be uninteresting to the general audience. Performance improvements are mentioned in the release notes if they are user-visible (e.g., new syntax) or significant enough to enable new workloads. So, if you want to change this process, please feel free to get agreement on new text that I can follow, or someone else can follow. I have always hesitated to expand the list of items with concern that general Postgres users will lose interest in reading it. I have in mind that the release notes are not for me or hackers subscribers to read. I think we expanded the the list for optimizer changes. Could we find a way to do that more that would be readable? I don't know. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Andres Freund <andres@anarazel.de>
Дата:
On 2026-04-19 14:36:57 -0400, Bruce Momjian wrote: > On Sun, Apr 19, 2026 at 02:04:34PM -0400, Andres Freund wrote: > > Hi, > > > > On 2026-04-19 13:53:08 -0400, Bruce Momjian wrote: > > > The text I put in the wiki, which I have followed for years, says: > > > > > > https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes > > > Performance improvements are mentioned in the release notes if > > > they are user-visible (e.g., new syntax) or significant enough > > > to enable new workloads. > > > > > > I didn't think +12-17% for an index build would enable new workloads. > > > If you want to relitigate that, you are welcome to do so. If this is > > > changed, it has to be done so consistently, not just for this item. > > > > Just about everyone has disagreed vehemently with you about this, in every of > > the last 5 releases or so. I don't think it's ok that you continue to ignore > > that. > > That is not my recollection, and I thought I would have heard more about > it if that was the case. I don't know what to tell you. Just looking at emails to you with a subject that contains release and a body that contains performance quickly unearthed: Tom: https://postgr.es/m/568104.1716520270@sss.pgh.pa.us Jonathan: https://postgr.es/m/29a7dd7b-cb55-4c3c-8eba-faeca222b10b@postgresql.org Alvaro: https://postgr.es/m/202405150838.sg5ddcexyyf4@alvherre.pgsql David: https://postgr.es/m/CAApHDvrun6b+cAj6bgb6_1irnu+t7GU_uCdj1XvMQsPT0KngkQ@mail.gmail.com Melanie: https://postgr.es/m/CAAKRu_YKDQG1qA-eRq+gf5uoXZ3s9Jm3af9k3yF7WdKr2eTqLA@mail.gmail.com Joe: https://postgr.es/m/c276a2e5-a7ef-410d-832e-6fe54137e86d@joeconway.com Jelte: https://postgr.es/m/CAGECzQTp5TW+YzihDdPDuZN6q_uNWL_iCi5uxN2AjGPLOJh=Mg@mail.gmail.com Peter G: https://postgr.es/m/CAH2-Wzkgyak_ni0u24r1v3nhM1gVfx68-7-ZX1yZB+zcojMdnw@mail.gmail.com Robert: https://postgr.es/m/CA+TgmobqYx=+1RDsD7w9r_pfTa-CgJ6_Aj0SNaA6UKHQGyT9vg@mail.gmail.com Noah: 20180505061321.GA2832545@rfd.leadboat.com me: https://postgr.es/m/20240524175028.lul7tpbngjlemy7j@awork3.anarazel.de That's just a small sample. I think nearly everybody said so in multiple releases. The argument goes back to at least 9.5... > > I find this policy so depressing that I stopped even opening the release > > notes, just to preserve whatever semblance of sanity I possess. I'm know I'm > > not alone in that. > > Well, I just merged the wiki text to explain that we have to consider > how much an item is of interest when adding it: > > While the major release notes include changes to the documented > extension interface, it does not include all changes of interest > to extension developers or Postgres forks because doing so would > include too many items that would be uninteresting to the general > audience. Performance improvements are mentioned in the release > notes if they are user-visible (e.g., new syntax) or significant > enough to enable new workloads. I think you're again documenting things as consensus for which there is not concensus. > So, if you want to change this process, please feel free to get > agreement on new text that I can follow, or someone else can follow. s/if they are user-visible (e.g., new syntax) or// s/enough to enable new workloads// > I have always hesitated to expand the list of items with concern that > general Postgres users will lose interest in reading it. I have in mind > that the release notes are not for me or hackers subscribers to read. Yes, which is precisely why they should be able to read the release notes to see if an upgrade might address their performance issue. They can't realistically be expected to read all commit messages or the list. > I think we expanded the the list for optimizer changes. Could we find a > way to do that more that would be readable? I don't know. I don't think mentioning a few performance improvements when we do mention things like "Modify psql backslash commands to show comments", "Allow the search path to appear in the psql prompt via "%S", "Add IO wait events for COPY FROM/TO on a pipe/file/program", ... makes a material negative difference. If we want to make the release notes easier to grasp, I could imagine that giving each bullet point an icon indicating whether it's a feature, a performance improvement, a behavioural change or such could make it easier to scan. Greetings, Andres Freund
Re: First draft of PG 19 release notes
От:
David Rowley <dgrowleyml@gmail.com>
Дата:
On Mon, 20 Apr 2026 at 07:25, Andres Freund wrote: > > On 2026-04-19 14:36:57 -0400, Bruce Momjian wrote: > > That is not my recollection, and I thought I would have heard more about > > it if that was the case. > > I don't know what to tell you. Just looking at emails to you with a subject > that contains release and a body that contains performance quickly unearthed: > David: > https://postgr.es/m/CAApHDvrun6b+cAj6bgb6_1irnu+t7GU_uCdj1XvMQsPT0KngkQ@mail.gmail.com This isn't a "I told you so" comment, but I do feel that it's hard to unsee the irony in the originally omitted item being discussed there (tidstore), which in the end was the top-listed headline feature for v17. I feel that was just too powerful a signal to how much others do think this stuff is worthwhile mentioning. > > I have always hesitated to expand the list of items with concern that > > general Postgres users will lose interest in reading it. I have in mind > > that the release notes are not for me or hackers subscribers to read. There is a "General Performance" section for this, so maybe people who don't care about performance can skip these more easily. I do agree that there is some threshold. Sometimes we do commit patches which we know increases performance some way, but nobody tested by how much. There are likely many of these, but one example [1] that I don't think has any business on the release notes, but it should help performance somehow/somewhere. It just might or might not be measurable. Filtering out those seems good. Maybe there's something committers can put in the commit message to make it more obvious which commits matter by referencing some actual performance numbers that were published that showed a definitive speedup (not just a measurment of noise). I do expect that it's a fairly horrible job if we're going to ask Bruce to trawl each thread to find what performance numbers were posted. In the past I've tried to list some example numbers in commit messages to help Bruce (e.g. final paragraph in [2] and [3]). I'm not sure if it does help, or if there's something better that could be done instead. David [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=49ce41810faca2722424b3d8fabda79bf4902339 [2] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=c456e39113809376f6604e720910ccd24e18e034 [3] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=58a359e585d0281ecab4d34cab9869e7eb4e4ca3
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Mon, Apr 20, 2026 at 01:30:25PM +1200, David Rowley wrote: > Maybe there's something committers can put in the commit message to > make it more obvious which commits matter by referencing some actual > performance numbers that were published that showed a definitive > speedup (not just a measurement of noise). I do expect that it's a > fairly horrible job if we're going to ask Bruce to trawl each thread > to find what performance numbers were posted. In the past I've tried > to list some example numbers in commit messages to help Bruce (e.g. > final paragraph in [2] and [3]). I'm not sure if it does help, or if > there's something better that could be done instead. In that thread from PG 17, I said: https://www.postgresql.org/message-id/ZlKaHOM8HYLy9nCY%40momjian.us > Well, let's start with a new section for PG 17 that lists these. Is it > 20 items, 50, or 150? I have no idea, but without the user-visible > filter, I am unable to determine what not-included performance features > are worthy of the release notes. > > Can someone do that? There is no reason other committers can't change > the release notes. Yes, I realize we are looking for a consistent > voice, but the new section can probably have its own style, and I can > make adjustments if desired. > > Also, I think this has gone unaddressed so long because if we skip a > user-visible change, users complain, but I don't remember anyone > complaining about skipped performance changes. So, what is the filter I am supposed to use? We even have a patch that, in aggregate, increases performance by 12-17%. Is that under or over the threadshold to be included? I have no idea. And, even if we agree on a number, how do I handle commits with no numbers; this commit didn't have a number. Just like with the co-authored-by, I need rules. I thought I got agreement on the co-authored-by rules in January 2025 because no one objected, only to learn recently that many didn't like it, and we changed the rules, and I used those new rules for PG 19. I can follow the rules on the wiki: https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes While the major release notes include changes to the documented extension interface, it does not include all changes of interest to extension developers or Postgres forks because doing so would include too many items that would be uninteresting to the general audience. Similarly, performance improvements are not mentioned in the release notes unless they are user-visible (e.g., new syntax) or significant enough to enable new workloads. I can't follow rules that require me to consistently identify if a patch is a performance improvement, and if it is significant enough for the release notes. If someone else can do that, please go ahead and stop blaming me for something I can't do. I thought if it was easy, someone else since PG 17 would have either given me rules or done it. Can committers mention when they want something to be included in the release notes? What we can do is to have all the hackers point out the missing items after I done creating the release notes, as messy as that is. One thing we can easily do is to add text to the release notes stating, "This release includes minor performance improvements that are too numerous to mention." -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
shammat@gmx.net
Дата:
Bruce Momjian schrieb am 15.04.2026 um 03:18: > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html > > The feature count is 212. The recent average is 200: > > https://momjian.us/main/writings/pgsql/missing.pdf#page=3 > > I will create a wiki page to explain my methods used to create this > because, someday, someone else will need to do this. > > I am traveling April 19 to May 7, so I might not be able to make quick > adjustments based on feedback. Another committer can handle them, or > you can wait for me to get to it. > "Allow casts between bytea and uuid date types" I think that should be "data" types?
Re: First draft of PG 19 release notes
От:
David Rowley <dgrowleyml@gmail.com>
Дата:
On Mon, 20 Apr 2026 at 21:10, Bruce Momjian wrote: > In that thread from PG 17, I said: > > https://www.postgresql.org/message-id/ZlKaHOM8HYLy9nCY%40momjian.us > > > Well, let's start with a new section for PG 17 that lists these. Is it > > 20 items, 50, or 150? I have no idea, but without the user-visible > > filter, I am unable to determine what not-included performance features > > are worthy of the release notes. I imagine it's easier to prune away items that are not interesting enough than to add ones that were skipped. Unless we get visibility of ones that you skipped, it requires someone else to notice something is missing (probably their own work), or it requires a complete parse of all commits in the release. > So, what is the filter I am supposed to use? We even have a patch that, > in aggregate, increases performance by 12-17%. Is that under or over > the threadshold to be included? I have no idea. And, even if we agree > on a number, how do I handle commits with no numbers; this commit > didn't have a number. That's going to be tricky to define. 2x performance increase in something like initdb isn't going to be nearly as interesting to an end user as making joins or aggregation go twice as fast. Maybe it would be worth putting temporary tags on items that there are no obvious performance numbers for to tell the author or committer that you need proof, otherwise the item might disappear. For items that might be more borderline worth adding, maybe those could also get added and tagged to trigger some debate as to if they're worth keeping around. In the end, we might see what it is you see with the bloated release notes. You might find you get more agreement to remove things. That's seldom requested with the current method. It seems reasonable that not many people can sympathise with the "there are too many items" problem, as by the time the notes go public, they're already trimmed down to a manageable number. We might find that we all agree on more things if the pruning is done more publicly. > I can't follow rules that require me to consistently identify if a patch > is a performance improvement, and if it is significant enough for the > release notes. If someone else can do that, please go ahead and stop > blaming me for something I can't do. I thought if it was easy, someone > else since PG 17 would have either given me rules or done it. I don't think anyone expects you to do anything that makes this job harder than it already. I expect a careful process change could make this job easier for you. > Can committers mention when they want something to be included in the > release notes? What we can do is to have all the hackers point out the > missing items after I done creating the release notes, as messy as that > is. I wondered if the job could be made easier if we were to tag fixup commits for commits that fix some recent feature commit. You could pretty much ignore every single one of those for the release notes. If that fixup information was more structured, it might also be very interesting. > One thing we can easily do is to add text to the release notes stating, > "This release includes minor performance improvements that are too > numerous to mention." If the WIP draft contained the items of lesser importance, we might be able to do some aggregation of those into something meaningful enough. It might be much easier for people closer to the particular items to aggregate them than it is for a single person to do it for all commits. I'm aware that you already do quite a bit of this aggregation already. David
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Mon, Apr 20, 2026 at 12:07:55PM +0200, shammat@gmx.net wrote: > Bruce Momjian schrieb am 15.04.2026 um 03:18: > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > The feature count is 212. The recent average is 200: > > > > https://momjian.us/main/writings/pgsql/missing.pdf#page=3 > > > > I will create a wiki page to explain my methods used to create this > > because, someday, someone else will need to do this. > > > > I am traveling April 19 to May 7, so I might not be able to make quick > > adjustments based on feedback. Another committer can handle them, or > > you can wait for me to get to it. > > > > > "Allow casts between bytea and uuid date types" > > I think that should be "data" types? Yes, fixed thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Xuneng Zhou <xunengzhou@gmail.com>
Дата:
Hi Bruce, On Wed, Apr 15, 2026 at 9:19 AM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html > > The feature count is 212. The recent average is 200: > > https://momjian.us/main/writings/pgsql/missing.pdf#page=3 > > I will create a wiki page to explain my methods used to create this > because, someday, someone else will need to do this. > > I am traveling April 19 to May 7, so I might not be able to make quick > adjustments based on feedback. Another committer can handle them, or > you can wait for me to get to it. Thanks for working on the draft. Here're some comments for it: 1) Improve performance of pgstattuple by using streaming reads There are two related commits that improve the performance of pgstattuple. The current hyperlink references [1]; would it make sense to include [2] too? [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=213f0079b [2] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=ae58189a4d523f0156ebe30f4534180555669e88 2) Additionally, would this[3] be something worth mentioning in the General Performance section? The improvement looks fairly big. [3] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=6c228755add8f0714677440d53a160f9ed332902 3) Allow standbys to wait for LSN values to be replayed via WAIT FOR As for this feature, the follow-up commit[4] extends the WAIT FOR command to support waiting for flush and write operations. Is it helpful for users to be aware of these use cases as well? [4] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=49a181b5d634340fcfb7c762c387c03f6405367e Thanks! -- Best, Xuneng
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Mon, Apr 20, 2026 at 10:40:13PM +1200, David Rowley wrote: > That's going to be tricky to define. 2x performance increase in > something like initdb isn't going to be nearly as interesting to an > end user as making joins or aggregation go twice as fast. Maybe it > would be worth putting temporary tags on items that there are no > obvious performance numbers for to tell the author or committer that > you need proof, otherwise the item might disappear. For items that > might be more borderline worth adding, maybe those could also get > added and tagged to trigger some debate as to if they're worth keeping > around. In the end, we might see what it is you see with the bloated > release notes. You might find you get more agreement to remove things. > That's seldom requested with the current method. It seems reasonable > that not many people can sympathise with the "there are too many > items" problem, as by the time the notes go public, they're already > trimmed down to a manageable number. We might find that we all agree > on more things if the pruning is done more publicly. So, these are not really rules, but a suggestion to just include more and we can trim. I see several problems with that: 1. Researching and writing each item is what takes the most time, so it could double my time to do this, which is fine if there were not other problems. 2. I don't think people will be motived to remove items, partly because they might not want to upset anyone, and partly because they might assume everyone else knows more. This could lead to the item count doubling, not because we want all those items but because we can't trim, and I would be embarrassed to be part of that and would probably stop being involved. 3. My guess of what to add would be very poor. I can mostly guess new workload performance items, but once it gets more granular than that, I would guess poorly and don't want to field complaints about my poor guesses. I asked in the PG 17 thread for someone to create a list of missing items, and that was mostly successful. Another approach would be for me to create a document with the git detail of all commits I didn't include --- that is easy to do since I have the commit hashes in the XML files, and people can then look at that and tell me which commits need to be added. It is only April 20. We still have time for someone to start from scratch and make a new version. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Etsuro Fujita <etsuro.fujita@gmail.com>
Дата:
On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html Thank you! "Allow the retrieval of statistics from foreign data wrapper servers (Corey Huinker, Etsuro Fujita)" This is mentioned in the Additional Modules section, presumably because it was supported in postgres_fdw, but it isn't limited to postgres_fdw, so we should move it to the General Performance section? Best regards, Etsuro Fujita
Re: First draft of PG 19 release notes
От:
Andres Freund <andres@anarazel.de>
Дата:
Hi, On 2026-04-20 12:12:07 -0400, Bruce Momjian wrote: > On Mon, Apr 20, 2026 at 10:40:13PM +1200, David Rowley wrote: > > That's going to be tricky to define. 2x performance increase in > > something like initdb isn't going to be nearly as interesting to an > > end user as making joins or aggregation go twice as fast. Maybe it > > would be worth putting temporary tags on items that there are no > > obvious performance numbers for to tell the author or committer that > > you need proof, otherwise the item might disappear. For items that > > might be more borderline worth adding, maybe those could also get > > added and tagged to trigger some debate as to if they're worth keeping > > around. In the end, we might see what it is you see with the bloated > > release notes. You might find you get more agreement to remove things. > > That's seldom requested with the current method. It seems reasonable > > that not many people can sympathise with the "there are too many > > items" problem, as by the time the notes go public, they're already > > trimmed down to a manageable number. We might find that we all agree > > on more things if the pruning is done more publicly. > > So, these are not really rules, but a suggestion to just include more > and we can trim. I see several problems with that: > > 1. Researching and writing each item is what takes the most time, so it > could double my time to do this, which is fine if there were not other > problems. FWIW, I think it's totally fine if you say that you don't want to do the work to formulate performance improvement release note entries. It's a lot of work to curate the release notes, it makes sense to split the work up. It's just that the answer to proposing listing certain performance improvements shouldn't be that we don't include them as a matter of policy. > It is only April 20. We still have time for someone to start from > scratch and make a new version. I don't see any need to start from scratch! That'd be foolish imo, it's a lot of work to get to this point. Greetings, Andres Freund
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Mon, Apr 20, 2026 at 10:40:13PM +1200, David Rowley wrote: > > I can't follow rules that require me to consistently identify if a patch > > is a performance improvement, and if it is significant enough for the > > release notes. If someone else can do that, please go ahead and stop > > blaming me for something I can't do. I thought if it was easy, someone > > else since PG 17 would have either given me rules or done it. > > I don't think anyone expects you to do anything that makes this job > harder than it already. I expect a careful process change could make > this job easier for you. > > > Can committers mention when they want something to be included in the > > release notes? What we can do is to have all the hackers point out the > > missing items after I done creating the release notes, as messy as that > > is. > > I wondered if the job could be made easier if we were to tag fixup > commits for commits that fix some recent feature commit. You could > pretty much ignore every single one of those for the release notes. If > that fixup information was more structured, it might also be very > interesting. > > > One thing we can easily do is to add text to the release notes stating, > > "This release includes minor performance improvements that are too > > numerous to mention." > > If the WIP draft contained the items of lesser importance, we might be > able to do some aggregation of those into something meaningful enough. > It might be much easier for people closer to the particular items to > aggregate them than it is for a single person to do it for all > commits. I'm aware that you already do quite a bit of this aggregation > already. I had some more time to think about the items you list above. My first reaction was that it wasn't workable, but I then realized it is not workable because you can't do this level of analysis once the release note items are written. This idea of aggregating items and getting people to choose items makes a lot of sense if we are using a list of commits with git commit text that were not included already. Let me work on creating such a list and we will see how it goes. I am traveling now so it will be delayed. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, Apr 21, 2026 at 11:52:37AM -0400, Andres Freund wrote: > On 2026-04-20 12:12:07 -0400, Bruce Momjian wrote: > > So, these are not really rules, but a suggestion to just include more > > and we can trim. I see several problems with that: > > > > 1. Researching and writing each item is what takes the most time, so it > > could double my time to do this, which is fine if there were not other > > problems. > > FWIW, I think it's totally fine if you say that you don't want to do the work > to formulate performance improvement release note entries. It's a lot of work > to curate the release notes, it makes sense to split the work up. When people complained about missing optimizer improvements, I was able to add them by referencing the plan changes they effect, with the assumption that they understand plan types. For lower-level performance improvements, it is nearly impossible for me to explain the items in a way that references something the reader will understand. Saying "widget X is faster" when the user has no idea what X is just isn't useful information for them, and I can't even explain widget X in a brief, user-relatable way. It is this fundamental issue that has prevented me from even trying. In summary, I was only able to do the optimizer additions by referencing plan types --- if I didn't assume users understand plan types, adding the optimizer issues would also have been impossible for me. I think David Rowley's idea of rolling up performance improvements into a single release note entry that is relatable is a great idea, but something I am incapable of doing without a lot of help. Giving a list of commits and git details might allow others to create text for such items. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, Apr 21, 2026 at 11:52:37AM -0400, Andres Freund wrote: > FWIW, I think it's totally fine if you say that you don't want to do the work > to formulate performance improvement release note entries. It's a lot of work > to curate the release notes, it makes sense to split the work up. > > It's just that the answer to proposing listing certain performance > improvements shouldn't be that we don't include them as a matter of policy. I am fine with listing anything, as long as it is effective and useful to the reader. I explained in my recent email why I considered that to be very hard for performance items, but with help I think it can be achieved. New optimizer items are a good example --- we reference plan types. I need help in how other items can have similar effectiveness. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Tue, Apr 21, 2026 at 04:18:40PM -0400, Bruce Momjian wrote: > Let me work on creating such a list and we will see how it goes. I am > traveling now so it will be delayed. That was easy with awk, so done and attached. There are 1556 commits from the start of PG 19 to the AS OF date of the release notes that I did not include in the release notes. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
jian he <jian.universality@gmail.com>
Дата:
On Wed, Apr 15, 2026 at 9:19 AM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html > Change FDW function prototypes to use uint* instead of bit* typedefs (Nathan Bossart) § This commit doesn't seem related to FDW? Allow btree_gin to match partial qualifications (Tom Lane) § § I don't understand "partial qualifications", the commit seems more about "cross type operators". https://git.postgresql.org/cgit/postgresql.git/commit/?id=999f172d Can this also be added to the release notes? Do you think this (https://git.postgresql.org/cgit/postgresql.git/commit/?id=00c025a001170979e99706ce746f75fcc615761d) worth add to the release notes? Before commit: https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-POSIX-REGEXP After commit: https://www.postgresql.org/docs/devel/functions-matching.html#FUNCTIONS-POSIX-LIST -- jian https://www.enterprisedb.com/
Re: First draft of PG 19 release notes
On Tue, Apr 21, 2026 at 05:17:13PM -0400, Bruce Momjian wrote: > On Tue, Apr 21, 2026 at 04:18:40PM -0400, Bruce Momjian wrote: > > Let me work on creating such a list and we will see how it goes. I am > > traveling now so it will be delayed. > > That was easy with awk, so done and attached. There are 1556 commits > from the start of PG 19 to the AS OF date of the release notes that I > did not include in the release notes. Here is a better version with the "[DOC]" marker I use. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Wed, Apr 22, 2026 at 03:11:23AM -0400, Bruce Momjian wrote: > On Tue, Apr 21, 2026 at 05:17:13PM -0400, Bruce Momjian wrote: > > On Tue, Apr 21, 2026 at 04:18:40PM -0400, Bruce Momjian wrote: > > > Let me work on creating such a list and we will see how it goes. I am > > > traveling now so it will be delayed. > > > > That was easy with awk, so done and attached. There are 1556 commits > > from the start of PG 19 to the AS OF date of the release notes that I > > did not include in the release notes. > > Here is a better version with the "[DOC]" marker I use. I documented how I created this "excluded commits" list as item 12 here: https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Andreas Karlsson <andreas@proxel.se>
Дата:
On 4/15/26 3:18 AM, Bruce Momjian wrote:
> I have completed the first draft of the PG 19 release notes:
Thanks!
I noticed that two of my performance patches were not included in the
release notes and I personally think one of them belongs in the release
notes while other not.
The one I think belongs is the one below since it it really results in
major speedups of lower(), upper(), initcap() and casefold() on ICU with
UTF-8. Not having to convert from UTF-8 to UTF-32 and back is often a
major speedup.
commit c4ff35f10441de7dbed4e87737bca205dcca698e
Author: Jeff Davis
Date: Tue Jan 6 14:09:07 2026 -0800
ICU: use UTF8-optimized case conversion API
Initializes a UCaseMap object once for use across calls, and uses
UTF8-optimized APIs.
Author: Andreas Karlsson
Reviewed-by: zengman
Discussion:
https://postgr.es/m/5a010b27-8ed9-4739-86fe-1562b07ba564@proxel.se
--
Andreas Karlsson
Percona
Re: First draft of PG 19 release notes
От:
Andreas Karlsson <andreas@proxel.se>
Дата:
On 4/30/26 9:08 AM, Andreas Karlsson wrote: > I noticed that two of my performance patches were not included in the > release notes and I personally think one of them belongs in the release > notes while other not. > > The one I think belongs is the one below since it it really results in > major speedups of lower(), upper(), initcap() and casefold() on ICU with > UTF-8. Not having to convert from UTF-8 to UTF-32 and back is often a > major speedup. Saw the big discussion on performance improvements if they should be included or not. So I will just leave this alone. :) -- Andreas Karlsson Percona
Re: First draft of PG 19 release notes
От:
Richard Guo <guofenglinux@gmail.com>
Дата:
On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html I just committed 8d829f5a0 to fix JSON_ARRAY(subquery) to return an empty JSON array instead of NULL over an empty result set, per the SQL/JSON standard. Since this is a user-visible behavior change, we need to add an item to the v19 migration section to call it out. Suggested entry: - Make JSON_ARRAY(query_expression) return an empty JSON array when the subquery returns no rows (Richard Guo) Previously, an empty result set produced NULL. This corrects the behavior to match the SQL/JSON standard. Application code that relied on the previous NULL behavior may need to be updated. - Richard
RE: First draft of PG 19 release notes
От:
Phil Florent <philflorent@hotmail.com>
Дата:
Hi,
I see on many UTF-8 customer bases expression-based index on lower(col) to fulfill some ORM implementation (lower(col) = lower(exp) or "ilike" but ilike is even more "difficult" to index so lower(col) is not so bad...) If pg 19 makes lower(utf-8_text) faster, it's definitely something I would be happy to read in a major upgrade .
Best regards,
Phil
De : Andreas Karlsson <andreas@proxel.se>
Envoyé : jeudi 30 avril 2026 09:16
À : Bruce Momjian <bruce@momjian.us>; PostgreSQL-development <pgsql-hackers@lists.postgresql.org>
Objet : Re: First draft of PG 19 release notes
Envoyé : jeudi 30 avril 2026 09:16
À : Bruce Momjian <bruce@momjian.us>; PostgreSQL-development <pgsql-hackers@lists.postgresql.org>
Objet : Re: First draft of PG 19 release notes
On 4/30/26 9:08 AM, Andreas Karlsson wrote:
> I noticed that two of my performance patches were not included in the
> release notes and I personally think one of them belongs in the release
> notes while other not.
>
> The one I think belongs is the one below since it it really results in
> major speedups of lower(), upper(), initcap() and casefold() on ICU with
> UTF-8. Not having to convert from UTF-8 to UTF-32 and back is often a
> major speedup.
Saw the big discussion on performance improvements if they should be
included or not. So I will just leave this alone. :)
--
Andreas Karlsson
Percona
> I noticed that two of my performance patches were not included in the
> release notes and I personally think one of them belongs in the release
> notes while other not.
>
> The one I think belongs is the one below since it it really results in
> major speedups of lower(), upper(), initcap() and casefold() on ICU with
> UTF-8. Not having to convert from UTF-8 to UTF-32 and back is often a
> major speedup.
Saw the big discussion on performance improvements if they should be
included or not. So I will just leave this alone. :)
--
Andreas Karlsson
Percona
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Apr 23, 2026 at 11:10:03AM -0400, Bruce Momjian wrote: > On Wed, Apr 22, 2026 at 03:11:23AM -0400, Bruce Momjian wrote: > > On Tue, Apr 21, 2026 at 05:17:13PM -0400, Bruce Momjian wrote: > > > On Tue, Apr 21, 2026 at 04:18:40PM -0400, Bruce Momjian wrote: > > > > Let me work on creating such a list and we will see how it goes. I am > > > > traveling now so it will be delayed. > > > > > > That was easy with awk, so done and attached. There are 1556 commits > > > from the start of PG 19 to the AS OF date of the release notes that I > > > did not include in the release notes. > > > > Here is a better version with the "[DOC]" marker I use. > > I documented how I created this "excluded commits" list as item 12 here: > > https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes In item 2, I added a link to my MicroEmacs 4 text editor macros in case someone needs to port those to another text editor. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Mon, Apr 20, 2026 at 09:03:41PM +0800, Xuneng Zhou wrote: > Thanks for working on the draft. Here're some comments for it: > > 1) Improve performance of pgstattuple by using streaming reads > > There are two related commits that improve the performance of > pgstattuple. The current hyperlink references [1]; would it make sense > to include [2] too? Sure, added. > [1] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=213f0079b > [2] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=ae58189a4d523f0156ebe30f4534180555669e88 > > > 2) Additionally, would this[3] be something worth mentioning in the > General Performance section? The improvement looks fairly big. > > [3] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=6c228755add8f0714677440d53a160f9ed332902 Sure, I added it to an existing item. > 3) Allow standbys to wait for LSN values to be replayed via WAIT FOR > As for this feature, the follow-up commit[4] extends the WAIT FOR > command to support waiting for flush and write operations. Is it > helpful for users to be aware of these use cases as well? > > [4] https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=49a181b5d634340fcfb7c762c387c03f6405367e Oh, that's a good point. I missed that additional functionality. All fixed in the attached, applied patch. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, Apr 21, 2026 at 05:24:59AM -0700, Etsuro Fujita wrote: > On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > Thank you! > > "Allow the retrieval of statistics from foreign data wrapper servers > (Corey Huinker, Etsuro Fujita)" > > This is mentioned in the Additional Modules section, presumably > because it was supported in postgres_fdw, but it isn't limited to > postgres_fdw, so we should move it to the General Performance section? Well, the full text is: Allow the retrieval of statistics from foreign data wrapper servers (Corey Huinker, Etsuro Fujita) § This is enabled for postgres_fdw by using the option restore_stats. The default is for ANALYZE to retrieve rows from the remote server to locally generate statistics. It clearly mentions in the detail that it applies only to postgres_fdw, so I think it is already in the right section. While it technically can be done by any FDW, it is now only postgres_fdw so people looking for postgres_fdw improvements will find it in the Additional Modules section. What we can do is to reword it to: --> Allow the retrieval of statistics from postgres_fdw foreign data wrapper servers (Corey Huinker, Etsuro Fujita) § --> This is enabled by using the option restore_stats. The default is for ANALYZE to retrieve rows from the remote server to locally generate statistics. but I think this is worse because it sounds like it can _only_ ever be done by postgres_fdw. However, if you prefer this I will make this change. I avoided "General Performance" because frankly, it is only postgres_fdw, and it not a "General" performance improvement, and we have a section for postgres_fdw already. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Wed, Apr 22, 2026 at 11:10:06AM +0800, jian he wrote: > On Wed, Apr 15, 2026 at 9:19 AM Bruce Momjian wrote: > > > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > Change FDW function prototypes to use uint* instead of bit* typedefs > (Nathan Bossart) § > This commit doesn't seem related to FDW? Wow, I have no idea why I put FDW in there. Next text is: Change function prototypes to use uint* instead of bit* typedefs (Nathan Bossart) > Allow btree_gin to match partial qualifications (Tom Lane) § § > I don't understand "partial qualifications", the commit seems more > about "cross type operators". Yeah, another mistake. I got the description from this doc change in the patch: + Compare a partial-match query key to an index key. + partial_key is a query key that was returned + by extractQuery with an indication that it + requires partial match, and key is an index entry. + Returns an integer but that is only a clarification of an existing sentence, and I mistook that for a new feature. If a patch has a doc change, I tend to focus on that, but made a mistake here. New text is: Change btree_gin to support all btree-supported cross-type comparisons (Tom Lane) > https://git.postgresql.org/cgit/postgresql.git/commit/?id=999f172d > Can this also be added to the release notes? Uh, I saw that one, and I don't normally mention changes where rare actions used to generate errors, and don't anymore, and I saw this one as being in that category. > Do you think this > (https://git.postgresql.org/cgit/postgresql.git/commit/?id=00c025a001170979e99706ce746f75fcc615761d) > worth add to the release notes? > > Before commit: > https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-POSIX-REGEXP > After commit: > https://www.postgresql.org/docs/devel/functions-matching.html#FUNCTIONS-POSIX-LIST I saw this as a documentation restructuring, and I usually only mention document changes that create significant new content. Attached patch applied. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Fri, May 1, 2026 at 01:24:51PM +0000, Phil Florent wrote: > Hi, > I see on many UTF-8 customer bases expression-based index on lower(col) to > fulfill some ORM implementation (lower(col) = lower(exp) or "ilike" but ilike > is even more "difficult" to index so lower(col) is not so bad...) If pg 19 > makes lower(utf-8_text) faster, it's definitely something I would be happy to > read in a major upgrade . Yes, agreed. I had not considered how impactful this would be, based on the commit message. Index usage sounds like a huge win. Attached patch applied. --------------------------------------------------------------------------- > Best regards, > Phil > > ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ > De : Andreas Karlsson > Envoyé : jeudi 30 avril 2026 09:16 > À : Bruce Momjian ; PostgreSQL-development > > Objet : Re: First draft of PG 19 release notes > > On 4/30/26 9:08 AM, Andreas Karlsson wrote: > > I noticed that two of my performance patches were not included in the > > release notes and I personally think one of them belongs in the release > > notes while other not. > > > > The one I think belongs is the one below since it it really results in > > major speedups of lower(), upper(), initcap() and casefold() on ICU with > > UTF-8. Not having to convert from UTF-8 to UTF-32 and back is often a > > major speedup. > > Saw the big discussion on performance improvements if they should be > included or not. So I will just leave this alone. :) > > -- > Andreas Karlsson > Percona > > > -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, May 1, 2026 at 10:16:24AM +0900, Richard Guo wrote: > On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > I just committed 8d829f5a0 to fix JSON_ARRAY(subquery) to return an > empty JSON array instead of NULL over an empty result set, per the > SQL/JSON standard. Since this is a user-visible behavior change, we > need to add an item to the v19 migration section to call it out. > > Suggested entry: > > - Make JSON_ARRAY(query_expression) return an empty JSON array when > the subquery returns no rows (Richard Guo) > > Previously, an empty result set produced NULL. This corrects the > behavior to match the SQL/JSON standard. Application code that > relied on the previous NULL behavior may need to be updated. I will add this as soon as I update with the new commits. Thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Chao Li <li.evan.chao@gmail.com>
Дата:
> On May 16, 2026, at 01:27, Bruce Momjian wrote: > > On Fri, May 15, 2026 at 12:31:59PM -0400, Peter Geoghegan wrote: >> On Tue, Apr 14, 2026 at 9:19 PM Bruce Momjian wrote: >>> I have completed the first draft of the PG 19 release notes: >>> >>> https://www.postgresql.org/docs/devel/release-19.html >> >> I do not think that this item merits mention in the release notes: >> >> "Add fake LSN support to hash index AM (Peter Geoghegan)" >> >> It offers no user-visible benefit. It's just preparation for index >> prefetching, which didn't make it into Postgres 19. > > Ah, I see your point, and the commit message was clear: > > This commit is similar to commit 8a879119, which taught nbtree to > use fake LSNs to improve its dropPin behavior. However, unlike that > commit, this is not an independently useful enhancement, since hash > doesn't implement anything like nbtree's dropPin behavior (not yet). > > Item removed. > > -- > Bruce Momjian https://momjian.us > EDB https://enterprisedb.com > > Do not let urgent matters crowd out time for investment in the future. > > Chong Peng, whom I added to CC, reported this release note issue to me, so I’m just forwarding the message: ``` Add slot synchronization skip information to pg_stat_replication_slots (Shlok Kyal) § § § The new columns are slotsync_skip_count, slotsync_last_skip, and slotsync_skip_reason. ``` The feature description is inaccurate: slotsync_skip_count and slotsync_last_skip belong to pg_stat_replication_slots, while slotsync_skip_reason belongs to pg_replication_slots. Maybe it could be reworded as: ``` Add slot synchronization skip information to pg_stat_replication_slots and pg_replication_slots (Shlok Kyal) ``` Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/
Re: First draft of PG 19 release notes
On Tue, May 26, 2026 at 01:25:15PM +0800, Chao Li wrote: > Chong Peng, whom I added to CC, reported this release note issue to me, so I’m just forwarding the message: > > ``` > > > Add slot synchronization skip information to pg_stat_replication_slots (Shlok Kyal) > § > § > § > > > > The new columns are slotsync_skip_count, slotsync_last_skip, and slotsync_skip_reason. > > > ``` > > The feature description is inaccurate: slotsync_skip_count and slotsync_last_skip belong to pg_stat_replication_slots, while slotsync_skip_reason belongs to pg_replication_slots. Maybe it could be reworded as: > ``` > Add slot synchronization skip information to pg_stat_replication_slots and pg_replication_slots (Shlok Kyal) > ``` Yes, very good point. I missed that detail when merging the commit items. I fixed it as you suggested, patch attached. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Tue, 26 May 2026 at 16:00, Bruce Momjian wrote: > > On Tue, May 26, 2026 at 01:25:15PM +0800, Chao Li wrote: > > Chong Peng, whom I added to CC, reported this release note issue to me, so I’m just forwarding the message: > > > > ``` > > > > > > Add slot synchronization skip information to pg_stat_replication_slots (Shlok Kyal) > > § > > § > > § > > > > > > > > The new columns are slotsync_skip_count, slotsync_last_skip, and slotsync_skip_reason. > > > > > > ``` > > > > The feature description is inaccurate: slotsync_skip_count and slotsync_last_skip belong to pg_stat_replication_slots, while slotsync_skip_reason belongs to pg_replication_slots. Maybe it could be reworded as: > > ``` > > Add slot synchronization skip information to pg_stat_replication_slots and pg_replication_slots (Shlok Kyal) > > ``` > > Yes, very good point. I missed that detail when merging the commit > items. I fixed it as you suggested, patch attached. > > -- > Bruce Momjian https://momjian.us > EDB https://enterprisedb.com > > Do not let urgent matters crowd out time for investment in the future. Did a review and found a few issues. Attached fixes. Regards Thom
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, May 26, 2026 at 04:46:12PM +0100, Thom Brown wrote: > On Tue, 26 May 2026 at 16:00, Bruce Momjian wrote: > Did a review and found a few issues. Attached fixes. Oh, all very good, applied, thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Tue, 26 May 2026 at 21:33, Bruce Momjian wrote: > > On Tue, May 26, 2026 at 04:46:12PM +0100, Thom Brown wrote: > > On Tue, 26 May 2026 at 16:00, Bruce Momjian wrote: > > Did a review and found a few issues. Attached fixes. > > Oh, all very good, applied, thanks. I've just spotted that this was a slightly older version of the patch I had accidentally selected. Attached are the missing changes I had intended to also send. Regards Thom
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, May 26, 2026 at 10:14:32PM +0100, Thom Brown wrote: > On Tue, 26 May 2026 at 21:33, Bruce Momjian wrote: > > > > On Tue, May 26, 2026 at 04:46:12PM +0100, Thom Brown wrote: > > > On Tue, 26 May 2026 at 16:00, Bruce Momjian wrote: > > > Did a review and found a few issues. Attached fixes. > > > > Oh, all very good, applied, thanks. > > I've just spotted that this was a slightly older version of the patch > I had accidentally selected. Attached are the missing changes I had > intended to also send. Wow, thanks for the additional fixes, applied. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
"彭冲" <chong.peng@enmotech.com>
Дата:
Hi, Bruce
```
<listitem>
<para>
Modify pg_read_all_data() and pg_write_all_data() to read/write large objects (Nitin Motiani, Nathan Bossart)
<ulink url="&commit_baseurl;d98197602">§</ulink>
</para>
<para>
These functions are designed to allow non-super users to run pg_dump.
</para>
</listitem>```
I found the feature description is inaccurate.: “pg_read_all_data” and “pg_write_all_data” are system roles.
Besides, i think this feature should not category to Functions.
Re: First draft of PG 19 release notes
On Fri, May 29, 2026 at 11:30:28AM +0800, 彭冲 wrote: > Hi, Bruce > > ``` > > > > Modify pg_read_all_data() and pg_write_all_data() to read/write large objects (Nitin Motiani, Nathan Bossart) > § > > > > These functions are designed to allow non-super users to run pg_dump. > > > > ``` > > > I found the feature description is inaccurate.: “pg_read_all_data” and “pg_write_all_data” are system roles. > > Besides, i think this feature should not category to Functions. Ah, very good point. It item reworded and moved to the server configuration section. Patch attached and applied. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
"彭冲" <chong.peng@enmotech.com>
Дата:
Hi, Bruce
```
<para>
Previously <acronym>JIT</acronym> was enabled by default, and activated based on optimizer costs, but this costing has been determined to be unreliable. This this change requires sites that are doing many
large analytical queries to manually enable <acronym>JIT</acronym>.
</para>
```
This this, double "this".
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Jun 4, 2026 at 08:51:58AM +0800, 彭冲 wrote: > Hi, Bruce > > ``` > > > Previously JIT was enabled by default, and activated based on optimizer costs, but this costing has been determined to be unreliable. This this change requires sites that are doing many > large analytical queries to manually enable JIT. > > > ``` > > > This this, double "this". Thanks, will fix. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, Jun 5, 2026 at 05:11:08PM +0900, Yugo Nagata wrote: > Hi, > > On Tue, 14 Apr 2026 21:18:57 -0400 > Bruce Momjian wrote: > > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > I noticed duplicate names in the psql tab completion improvement entry. > Yugo Nagata and Fujii Masao each appear twice. > > If this is not intentional, we could remove the duplicates as in the attached patch. Yes, my mistake, will fix, thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, Jun 5, 2026 at 09:55:27AM -0400, Bruce Momjian wrote: > On Fri, Jun 5, 2026 at 05:11:08PM +0900, Yugo Nagata wrote: > > Hi, > > > > On Tue, 14 Apr 2026 21:18:57 -0400 > > Bruce Momjian wrote: > > > > > I have completed the first draft of the PG 19 release notes: > > > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > I noticed duplicate names in the psql tab completion improvement entry. > > Yugo Nagata and Fujii Masao each appear twice. > > > > If this is not intentional, we could remove the duplicates as in the attached patch. > > Yes, my mistake, will fix, thanks. I want to thank everyone for the fixes/improvements they have supplied for the PG 19 release notes. I am now satisfied with them and I think they are close to what they will look link for PG 19 final. Here are the current contents: https://www.postgresql.org/docs/19/release-19.html -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, Jun 5, 2026 at 02:14:21PM -0400, Bruce Momjian wrote: > On Fri, Jun 5, 2026 at 09:55:27AM -0400, Bruce Momjian wrote: > > On Fri, Jun 5, 2026 at 05:11:08PM +0900, Yugo Nagata wrote: > > > Hi, > > > > > > On Tue, 14 Apr 2026 21:18:57 -0400 > > > Bruce Momjian wrote: > > > > > > > I have completed the first draft of the PG 19 release notes: > > > > > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > > > I noticed duplicate names in the psql tab completion improvement entry. > > > Yugo Nagata and Fujii Masao each appear twice. > > > > > > If this is not intentional, we could remove the duplicates as in the attached patch. > > > > Yes, my mistake, will fix, thanks. > > I want to thank everyone for the fixes/improvements they have supplied > for the PG 19 release notes. I am now satisfied with them and I think > they are close to what they will look link for PG 19 final. Here are the > current contents: > > https://www.postgresql.org/docs/19/release-19.html My apologies, this is the old version; the most current version is here: https://momjian.us/pgsql_docs/release-19.html -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Baji Shaik <baji.pgdev@gmail.com>
Дата:
On Fri, Jun 5, 2026 at 1:58 PM Bruce Momjian <bruce@momjian.us> wrote:
My apologies, this is the old version; the most current version is
here:
https://momjian.us/pgsql_docs/release-19.html
Can e5035950dab ("psql: Fix tab completion for REPACK boolean options")
also be part of the notes?
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=e5035950dab
also be part of the notes?
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=e5035950dab
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, Jun 5, 2026 at 02:17:01PM -0500, Baji Shaik wrote:
>
>
> On Fri, Jun 5, 2026 at 1:58 PM Bruce Momjian wrote:
>
> My apologies, this is the old version; the most current version is
> here:
>
> https://momjian.us/pgsql_docs/release-19.html
>
>
> Can e5035950dab ("psql: Fix tab completion for REPACK boolean options")
> also be part of the notes?
> https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=e5035950dab
Uh, I don't add tab fixes for new commands in the release note. I am
more focused on adding changes for tab completion for existing commands,
though I tend to add them on the first pass but not in later months.
--
Bruce Momjian https://momjian.us
EDB https://enterprisedb.com
Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Álvaro Herrera <alvherre@kurilemu.de>
Дата:
On 2026-Jun-05, Bruce Momjian wrote: > > I want to thank everyone for the fixes/improvements they have supplied > > for the PG 19 release notes. I am now satisfied with them and I think > > they are close to what they will look link for PG 19 final. Here are the > > current contents: > https://momjian.us/pgsql_docs/release-19.html Thanks for putting these together! I have a few comments: * In the incompatibilities section, we have - Prevent carriage returns and line feeds in database, role, and tablespace names This was changed to avoid security problems. pg_upgrade will also disallow upgrading of clusters that use such names. The verb "prevent" here is a bit strange; I think "reject" would be better. Also, I think the phrase involving pg_upgrade should come before the reason for the change. We also have this item: Change the default index opclasses for inet and cidr data types from btree_gist to GiST The btree_gist inet/cidr opclasses are broken because they can exclude rows that should be returned. pg_upgrade will fail to upgrade if btree_gist inet/cidr indexes exist in the old server. Why do we say "pg_upgrade will fail to upgrade" here instead of the (IMO better) wording in the previous item? That is, "pg_upgrade will disallow upgrading if btree_gist inet/cidr indexes exist in the old server". The current wording of "fail to" suggest that this is a pg_upgrade shortcoming, which it isn't. * In section E.1.3.1.1 Optimizer, I think the item "Allow extended statistics on virtual generated columns" should come before all other items, because it's the only one that requires user action in order for them to take advantage of it. All the other items refer to some optimization that occurs automatically. * Section E.1.3.1.2 General Performance, the item Allow autovacuum to use parallel vacuum workers lacks a link to https://momjian.us/pgsql_docs/sql-createtable.html#RELOPTION-AUTOVACUUM-PARALLEL-WORKERS * Section E.1.3.1.3 System Views, the two items Add vacuum initiation details to system view pg_stat_progress_vacuum Add analyze initiation details to system view pg_stat_progress_analyze Maybe they should be a single entry? Add vacuum and analyze initiation details to system view pg_stat_progress_vacuum and pg_stat_progress_analyze respectively (Not really sure about this one) * E.1.3.1.4 Monitoring Add server variable log_autoanalyze_min_duration to log long-running autoanalyze operations (Shinya Kato) § Server variable log_autovacuum_min_duration now only controls logging of autovacuum operations. I think it's confusing to talk about "autoanalyze" as if it were an action taken by an agent other than autovacuum. I mean, we have autovacuum which runs autovacuums and also autovacuum which runs autoanalyzes? To my mind that makes no sense -- I think we have one autovacuum, which runs vacuum and analyze. I would explain this as Add server variable log_autoanalyze_min_duration to log long-running analyze operations run by autovacuum (Shinya Kato) § Server variable log_autovacuum_min_duration now only controls logging of vacuum operations run by autovacuum. * Add WAL full-page write bytes reporting to VACUUM and ANALYZE logging (Shinya Kato) § Maybe this should be "Report bytes of full-page WAL writes to VACUUM and ANALYZE logging". (This also appears in E.1.3.3.3 EXPLAIN and E.1.3.1.3 System Views) * Add function pg_get_multixact_stats() to report multixact activity (Naga Appani) § I think this item should appear second in the section, right after the one for log_min_messages, on importance grounds. * Two entries make the acronym LSN point to https://momjian.us/pgsql_docs/wal-internals.html I think a better target is the glossary item https://momjian.us/pgsql_docs/glossary.html#GLOSSARY-LOG-SEQUENCE-NUMBER The shorter definition in the glossary is possibly more useful for a release note reader; and if they want even more detail, the glossary definition does point to the WAL internals. A third entry appears in E.1.3.1.6 * E.1.3.1.5 Server Configuration * Allow online enabling and disabling of data checksums Previously the checksum status could only be set at initialization and changed only while the cluster was offline using pg_checksums. The word "only" appears twice in the second phrase, which is awkward. Maybe reword it as Previously the checksum status would be fixed at initialization time and only changed while the cluster was offline usiNG PG_checksums. * Add scoring system to control the order that tables are autovacuumed I think using "autovacuumed" as a verb is terrible grammar. I would rather have "... are processed by autovacuum". * Allow background workers to be configured to terminate before database-level operations (Aya Iwata) § This sounds far too mysterious; it probably warrants more detail. Also, move it a bit upwards: just below SNI perhaps? (That isn't much, but all the other items in this section also look valuable.) * E.1.3.3.2 Copy * Allow COPY TO to output partitioned tables (Jian He, Ajin Cherian) § § "to output partitioned tables"? This reads really awkward. What about ... "Allow partitioned tables to be [processed / read] by COPY TO directly" or something like that? -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/ "La vida es para el que se aventura"
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sun, Jun 7, 2026 at 11:43:16PM -0400, Bruce Momjian wrote: > > * In section E.1.3.1.1 Optimizer, I think the item > > "Allow extended statistics on virtual generated columns" > > should come before all other items, because it's the only one that > > requires user action in order for them to take advantage of it. All > > the other items refer to some optimization that occurs automatically. > > While the first item in each section is the most important, I then list > later items in groups that have similar characteristics, which I think > simplifies reading. While I could order all items in importance order, > I think it would be much more confusing to read. Right now the item you > mention is in a group of items about optimizer statistics. Actually, if there is no "most important" item in a section, I just order by placing the largest group of similar items first. Here are the detais: https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes order inside of sections most important item first in section if none, then largest group first group similar items together order group by item importance ideally the last item in a group will relate to the first item in the next group -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Chao Li <li.evan.chao@gmail.com>
Дата:
> On Jun 8, 2026, at 22:13, Bruce Momjian wrote: > > On Sun, Jun 7, 2026 at 11:43:16PM -0400, Bruce Momjian wrote: >>> * In section E.1.3.1.1 Optimizer, I think the item >>> "Allow extended statistics on virtual generated columns" >>> should come before all other items, because it's the only one that >>> requires user action in order for them to take advantage of it. All >>> the other items refer to some optimization that occurs automatically. >> >> While the first item in each section is the most important, I then list >> later items in groups that have similar characteristics, which I think >> simplifies reading. While I could order all items in importance order, >> I think it would be much more confusing to read. Right now the item you >> mention is in a group of items about optimizer statistics. > > Actually, if there is no "most important" item in a section, I just > order by placing the largest group of similar items first. Here are the > detais: > > https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes > order inside of sections > most important item first in section > if none, then largest group first > group similar items together > order group by item importance > ideally the last item in a group will relate to the first item in the next group > > -- > Bruce Momjian https://momjian.us > EDB https://enterprisedb.com > > Do not let urgent matters crowd out time for investment in the future. > > Hi Bruce, This feature has been reverted by a0354e29c41a9fb7491b3c7c23f079b1923c045a. ``` Allow the addition of columns based on domains containing constraints to usually avoid a table rewrite (Jian He) § Previously this always required a table rewrite. ``` So this item can be removed from the release note. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/
Re: First draft of PG 19 release notes
От:
Srinath Reddy Sadipiralla <srinath2133@gmail.com>
Дата:
Hi Bruce,
On Wed, Apr 15, 2026 at 6:49 AM Bruce Momjian <bruce@momjian.us> wrote:
I have completed the first draft of the PG 19 release notes:
https://www.postgresql.org/docs/devel/release-19.html
Thanks for working on this.
I noticed the notes don't mention the pg_rewind improvement committed in
5173bfd0 ("pg_rewind: Skip copy of WAL segments generated before point of
divergence") [0].
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, Jun 9, 2026 at 02:59:17PM +0800, Chao Li wrote: > This feature has been reverted by a0354e29c41a9fb7491b3c7c23f079b1923c045a. > > ``` > > > > > Allow the addition of columns based on domains containing constraints to usually avoid a table rewrite (Jian He) > § > > > > Previously this always required a table rewrite. > > > ``` > > So this item can be removed from the release note. Thanks. Reading the revert commit message, I am not sure I would have associated it with this release note item's visible text. Thanks. I updated the release notes to current. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Jun 11, 2026 at 02:31:38PM +0530, Srinath Reddy Sadipiralla wrote:
> Hi Bruce,
>
> On Wed, Apr 15, 2026 at 6:49 AM Bruce Momjian wrote:
>
> I have completed the first draft of the PG 19 release notes:
>
> https://www.postgresql.org/docs/devel/release-19.html
>
>
> Thanks for working on this.
>
> I noticed the notes don't mention the pg_rewind improvement committed in
> 5173bfd0 ("pg_rewind: Skip copy of WAL segments generated before point of
> divergence") [0].
>
> [0] - https://www.postgresql.org/message-id/flat/
> 181b4c6fa9c.b8b725681941212.7547232617810891479%40viggy28.dev
True. In reading the commit message, it seems like a minor improvement
that wasn't worth mentioning; it says:
This commit makes the way WAL segments are handled from the source
to the target server slightly smarter:
----------------
and
This change can make the rewind operation cheaper in some
configurations, especially for setups where some WAL retention
causes many segments to remain on the source server even after the
promotion of a standby used as source to rewind a previous primary.
It seemed like a nice improvement, but not something that would be
useful for the average user to know.
--
Bruce Momjian https://momjian.us
EDB https://enterprisedb.com
Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Jun 18, 2026 at 10:29:47AM +0900, Fujii Masao wrote: > On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > > > > I have completed the first draft of the PG 19 release notes: > > Thanks for working on the release note! > > Reduce lock level of ALTER DOMAIN ... VALIDATE CONSTRAINT to match > ALTER TABLE ... VALIDATE CONSTRAINT (Jian He) § > > I reverted this change at commit 64797ad97d6, so could you please > remove this item from the release notes? Oh, I missed that one, removed, thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Wed, Jun 17, 2026 at 09:34:38PM -0400, Bruce Momjian wrote: > On Thu, Jun 18, 2026 at 10:29:47AM +0900, Fujii Masao wrote: > > On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > > > > > > I have completed the first draft of the PG 19 release notes: > > > > Thanks for working on the release note! > > > > Reduce lock level of ALTER DOMAIN ... VALIDATE CONSTRAINT to match > > ALTER TABLE ... VALIDATE CONSTRAINT (Jian He) § > > > > I reverted this change at commit 64797ad97d6, so could you please > > remove this item from the release notes? > > Oh, I missed that one, removed, thanks. Ah, I missed it because it happened today and I was only current as of yesterday. I have now updated to be current as of today. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
> On Jun 18, 2026, at 09:45, Bruce Momjian wrote: > > On Wed, Jun 17, 2026 at 09:34:38PM -0400, Bruce Momjian wrote: >> On Thu, Jun 18, 2026 at 10:29:47AM +0900, Fujii Masao wrote: >>> On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: >>>> >>>> I have completed the first draft of the PG 19 release notes: >>> >>> Thanks for working on the release note! >>> >>> Reduce lock level of ALTER DOMAIN ... VALIDATE CONSTRAINT to match >>> ALTER TABLE ... VALIDATE CONSTRAINT (Jian He) § >>> >>> I reverted this change at commit 64797ad97d6, so could you please >>> remove this item from the release notes? >> >> Oh, I missed that one, removed, thanks. > > Ah, I missed it because it happened today and I was only current as of > yesterday. I have now updated to be current as of today. > > -- > Bruce Momjian https://momjian.us > EDB https://enterprisedb.com > > Do not let urgent matters crowd out time for investment in the future. Hi, Bruce, I noticed a typo in the item about “2026-03-27 [d7965d65f] Add rudimentary table prioritization to autovacuum”. The line is quite long, so I attached a diff file for your convenience. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Jun 25, 2026 at 10:57:47AM +0800, Chao Li wrote: > > > > On Jun 18, 2026, at 09:45, Bruce Momjian wrote: > > > > On Wed, Jun 17, 2026 at 09:34:38PM -0400, Bruce Momjian wrote: > >> On Thu, Jun 18, 2026 at 10:29:47AM +0900, Fujii Masao wrote: > >>> On Wed, Apr 15, 2026 at 10:19 AM Bruce Momjian wrote: > >>>> > >>>> I have completed the first draft of the PG 19 release notes: > >>> > >>> Thanks for working on the release note! > >>> > >>> Reduce lock level of ALTER DOMAIN ... VALIDATE CONSTRAINT to match > >>> ALTER TABLE ... VALIDATE CONSTRAINT (Jian He) § > >>> > >>> I reverted this change at commit 64797ad97d6, so could you please > >>> remove this item from the release notes? > >> > >> Oh, I missed that one, removed, thanks. > > > > Ah, I missed it because it happened today and I was only current as of > > yesterday. I have now updated to be current as of today. Ah, I missed adding the "autovacuum_" prefix, committed. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
Hi, I noticed that some of the OAuth-realted items ended up under the wrong sections. See my suggestions below and the attached patch. Jacob, do you have any opinion here? = Add a new OAUTH flow hook PQAUTHDATA_OAUTH_BEARER_TOKEN_V2 Should go under "libpq" = Allow custom OAUTH validators to register custom pg_hba.conf authentication options Should go under "Server Configuration". It could arguably go under "Source Code" too but that seems less useful to the reader. = Allow OAUTH validators to supply failure details Should go under "Source Code" as this is not user facing. -- Andreas Karlsson Percona
Re: First draft of PG 19 release notes
On 7/3/26 00:12, Andreas Karlsson wrote: > I noticed that some of the OAuth-realted items ended up under the wrong > sections. See my suggestions below and the attached patch. Ops, right patch attached now. -- Andreas Karlsson Percona
Re: First draft of PG 19 release notes
От:
Jacob Champion <jacob.champion@enterprisedb.com>
Дата:
On Thu, Jul 2, 2026 at 3:12 PM Andreas Karlsson wrote: > Jacob, do you have any opinion here? I've got a TODO to edit the feature docs that I haven't been able to check off yet. But no objections to your proposed moves at the moment (they might need to move again when I really sit down and stare at them). Thanks! --Jacob
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, Jul 3, 2026 at 12:16:05AM +0200, Andreas Karlsson wrote: > On 7/3/26 00:12, Andreas Karlsson wrote: > > I noticed that some of the OAuth-realted items ended up under the wrong > > sections. See my suggestions below and the attached patch. > Ops, right patch attached now. Changes applied; sorry for the delay. I had to create a new patch because the submitted patch had invalid markup, moved the first paragraph of items but left the second paragraph alone, and I didn't like the order of the error_detail item. I ended up moving the error detail item to Source Code, and swapped the validator and hook items. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Wed, Jul 15, 2026 at 05:56:07AM -0400, Bruce Momjian wrote: > On Fri, Jul 3, 2026 at 12:16:05AM +0200, Andreas Karlsson wrote: > > On 7/3/26 00:12, Andreas Karlsson wrote: > > > I noticed that some of the OAuth-realted items ended up under the wrong > > > sections. See my suggestions below and the attached patch. > > Ops, right patch attached now. > > Changes applied; sorry for the delay. I had to create a new patch > because the submitted patch had invalid markup, moved the first > paragraph of items but left the second paragraph alone, and I didn't > like the order of the error_detail item. I ended up moving the error > detail item to Source Code, and swapped the validator and hook items. You can see the updated output here: https://momjian.us/pgsql_docs/release-19.html Let me know if there should be anymore changes? -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Wed, Jul 15, 2026 at 2:57 PM Bruce Momjian wrote: > You can see the updated output here: > > https://momjian.us/pgsql_docs/release-19.html Thanks! I think one of those patches partially undid the other one; see below. > Let me know if there should be anymore changes? I've definitely kept you waiting long enough. See attached suggestions for my entries. First patch adjusts credit, expands/rewords some items [1], and rewrites the new authdata hook section to hopefully better illustrate why it belongs to libpq. Let me know what you think. Second patch should just be motion, I hope: the pg_hba changes go into the server config section and the authdata hook goes into libpq. It also deprioritizes the PQgetThreadLock() section, which I imagine very few people will care about in practice. :D I think this replays some of what Andreas was hoping for, maybe with more context. I'm not sure why "Allow OAuth validators to supply failure details" is still with server configuration at the moment, based on the conversation above, so maybe that also needs to be moved back to Source Code. I didn't do that here, in case it was on purpose. (I don't know if it's been discussed somewhere, but I find that the standard Git diff algorithm can't handle these sorts of doc-motion patches in a readable way. The attached patches were generated with `git format-patch --histogram` instead.) Thanks, --Jacob [1] "OAuth" is the overall feature, `oauth` is the HBA method name, and `OAUTHBEARER` is the developer-facing SASL mechanism name. Unfortunately (or fortunately?) none of them are acronyms. This is kind of analogous to the distinction we'd have to make between "Kerberos", `gss`, and the `GSSAPI` SASL mech (if we used it).
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Jul 16, 2026 at 01:38:00PM -0700, Jacob Champion wrote: > On Wed, Jul 15, 2026 at 2:57 PM Bruce Momjian wrote: > > You can see the updated output here: > > > > https://momjian.us/pgsql_docs/release-19.html > > Thanks! I think one of those patches partially undid the other one; see below. > > > Let me know if there should be anymore changes? > > I've definitely kept you waiting long enough. See attached suggestions > for my entries. > > First patch adjusts credit, expands/rewords some items [1], and > rewrites the new authdata hook section to hopefully better illustrate > why it belongs to libpq. Let me know what you think. > > Second patch should just be motion, I hope: the pg_hba changes go into > the server config section and the authdata hook goes into libpq. It > also deprioritizes the PQgetThreadLock() section, which I imagine very > few people will care about in practice. :D Patch applied. > I think this replays some of what Andreas was hoping for, maybe with > more context. I'm not sure why "Allow OAuth validators to supply > failure details" is still with server configuration at the moment, > based on the conversation above, so maybe that also needs to be moved > back to Source Code. I didn't do that here, in case it was on purpose. I am confused by this item. I moved it to Source Code in commit aa9787e325d, but then moved it again in commit 0546889b1b9. I have moved it back to Source Code as you suggested. > (I don't know if it's been discussed somewhere, but I find that the > standard Git diff algorithm can't handle these sorts of doc-motion > patches in a readable way. The attached patches were generated with > `git format-patch --histogram` instead.) I am very glad you mentioned this. I have been traveling for two weeks, and tried to get the original patch applied several times. I would study the patch, and the things wrong with the patch, and then get confused. I thought I was losing my ability to analyze patches or something. Combining the fact I don't understand how all the Oauth features fit together with the problems of understanding a patch with no context really overwhelmed me, plus I am trying to fit it into a travel schedule. The current output is at: https://momjian.us/pgsql_docs/release-19.html Please let me know if there should be some more changes. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Chao Li <li.evan.chao@gmail.com>
Дата:
Hi Bruce, This feature has been reverted by 372b8d1adb76740123791e9ded4f665b175f5bf5, so you need to delete the item from the v19 release note. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/
Re: First draft of PG 19 release notes
On Sat, Jul 18, 2026 at 06:03:09AM +0800, Chao Li wrote: > Hi Bruce, > > This feature has been reverted by 372b8d1adb76740123791e9ded4f665b175f5bf5, so you need to delete the item from the v19 release note. > > I have updated the release notes to match current git; updated output is at: https://momjian.us/pgsql_docs/ Patch attached. I added the psql \crosstabview item as an incompatibility. I didn't add this commit: commit 0c15b715c65 Author: Tom Lane Date: Tue Jun 30 17:21:23 2026 -0400 Disallow set-returning functions within window OVER clauses. We previously allowed this, but it leads to odd behaviors, basically because putting a SRF there is inconsistent with the principle that a window function doesn't change the number of rows in the query result. There doesn't seem to be a strong reason to try to make such cases behave consistently. Users should put their SRFs in lateral FROM clauses instead. This issue has been sitting on the back burner for multiple years now, partially because it didn't seem wise to back-patch such a change. Let's squeeze it into v19 before it's too late. because I assumed its use was rare enough and the error message clear enough. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Thu, Aug 27, 2026 at 10:52:17PM -0700, Masahiko Sawada wrote: > 4. Allow wal_receiver_timeout to be set per-subscription and user (Fujii Masao) > 5. Add optional pid parameter to pg_replication_origin_session_setup() > to allow parallelization of SQL-level replication solutions (Doruk > Yilmaz, Hayato Kuroda) > > I wonder if 4 and 5 should be listed in the "Logical Replication" > section instead because 4 is a new subscription option and 5 is > related to replication origins, which are used only in logical > replication. Please find the attached patch. Yes, I think you are correct. I can't always easily identify logical-only changes. Patch applied, thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
Bruce Momjian wrote: > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html This diff reflects the commit 01a80f0621 (in the REL_19_STABLE branch). -- Antonin Houska Web: https://www.cybertec-postgresql.com
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Mon, Oct 12, 2026 at 08:55:07AM +0200, Antonin Houska wrote: > Bruce Momjian wrote: > > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > This diff reflects the commit 01a80f0621 (in the REL_19_STABLE branch). Ah, thank you for this, committed. I was more focused on the commit text and missed seeing that the reverted commit subject matched a release note item. Reverted release note items should never appear in the release notes, and I bet AI could easily detect this mistake. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
shihao zhong <zhong950419@gmail.com>
Дата:
Hi Bruce,
While looking for bugs in new 19 features, I found some changes that
look intended, but I think the notes do not tell an upgrading user about
them. I checked the notes as of 58d16be8acd and ran each one on 19 and
18.6.
1. io_workers was removed (d1c01b79d4a). The item lists the new
variables but not that the old one is gone. An 18 postgresql.conf that
sets it stops 19 from starting.
2. The Snowball item (7dc95cc3b94) names only Dutch, but English and
German stems changed too. "biologist" now stems to "biolog" and
"arbeitet" to "arbeit". A tsvector stored by 18 for "biologist" no
longer matches a 19 query for the same word. Jeff asked about this in
[1].
3. With lz4 as the default (34dfca29343), some long text keys that fit
in a btree with pglz no longer fit. Restoring an 18 dump fails at ADD
PRIMARY KEY with "index row size 3344 exceeds btree version 4 maximum
2704", and the table is left without its key. Setting
default_toast_compression to pglz avoids it.
4. The hash join change (1811f1af98f) can write outer rows with NULL
keys to a temp file, even with one batch. A LEFT JOIN with 297000 NULL
keys wrote 33 MB of temp files, 18.6 wrote none. With temp_file_limit at
1MB it fails.
5. The wait event item gives only the type rename. The event BufferPin
is now BufferCleanup (6c5c393b740), and LWLock BufferContent became the
Buffer events BufferShared, BufferShareExclusive and BufferExclusive
(fcb9c977aa5). The old names are gone from pg_wait_events.
6. The checkpoint log line now carries the request flags (5b93a5987bd).
18.6: checkpoint complete: wrote 3783 buffers
19: checkpoint complete: fast force wait: wrote 6659 buffers
The 18 notes had a sentence when this line changed, maybe 19 needs one
too.
7. LSNs are now zero padded (2633dae2e48), in pg_lsn output and
pg_controldata.
18.6: 0/31CFA58
19: 0/031CFA58
So '0/31CFA58'::pg_lsn::text = '0/31CFA58' is now false.
8. DETACH PARTITION CONCURRENTLY no longer adds a CHECK constraint to
the detached table (3231fd04552). There is no item, and alter_table.sgml
still says it does. I can send a patch for that sentence.
[1] https://postgr.es/m/0da578e3c70dcfd92d2fdd33f4bac549b3f97bca.camel@j-davis.com
Thanks,
Shihao
While looking for bugs in new 19 features, I found some changes that
look intended, but I think the notes do not tell an upgrading user about
them. I checked the notes as of 58d16be8acd and ran each one on 19 and
18.6.
1. io_workers was removed (d1c01b79d4a). The item lists the new
variables but not that the old one is gone. An 18 postgresql.conf that
sets it stops 19 from starting.
2. The Snowball item (7dc95cc3b94) names only Dutch, but English and
German stems changed too. "biologist" now stems to "biolog" and
"arbeitet" to "arbeit". A tsvector stored by 18 for "biologist" no
longer matches a 19 query for the same word. Jeff asked about this in
[1].
3. With lz4 as the default (34dfca29343), some long text keys that fit
in a btree with pglz no longer fit. Restoring an 18 dump fails at ADD
PRIMARY KEY with "index row size 3344 exceeds btree version 4 maximum
2704", and the table is left without its key. Setting
default_toast_compression to pglz avoids it.
4. The hash join change (1811f1af98f) can write outer rows with NULL
keys to a temp file, even with one batch. A LEFT JOIN with 297000 NULL
keys wrote 33 MB of temp files, 18.6 wrote none. With temp_file_limit at
1MB it fails.
5. The wait event item gives only the type rename. The event BufferPin
is now BufferCleanup (6c5c393b740), and LWLock BufferContent became the
Buffer events BufferShared, BufferShareExclusive and BufferExclusive
(fcb9c977aa5). The old names are gone from pg_wait_events.
6. The checkpoint log line now carries the request flags (5b93a5987bd).
18.6: checkpoint complete: wrote 3783 buffers
19: checkpoint complete: fast force wait: wrote 6659 buffers
The 18 notes had a sentence when this line changed, maybe 19 needs one
too.
7. LSNs are now zero padded (2633dae2e48), in pg_lsn output and
pg_controldata.
18.6: 0/31CFA58
19: 0/031CFA58
So '0/31CFA58'::pg_lsn::text = '0/31CFA58' is now false.
8. DETACH PARTITION CONCURRENTLY no longer adds a CHECK constraint to
the detached table (3231fd04552). There is no item, and alter_table.sgml
still says it does. I can send a patch for that sentence.
[1] https://postgr.es/m/0da578e3c70dcfd92d2fdd33f4bac549b3f97bca.camel@j-davis.com
Thanks,
Shihao
Re: First draft of PG 19 release notes
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
shihao zhong writes: > 4. The hash join change (1811f1af98f) can write outer rows with NULL > keys to a temp file, even with one batch. A LEFT JOIN with 297000 NULL > keys wrote 33 MB of temp files, 18.6 wrote none. With temp_file_limit at > 1MB it fails. I'm a bit skeptical about this one. The older code would have put those rows into the primary hash table rather than a dedicated tuplestore, but either way you risk having to dump them to disk. regards, tom lane
Re: First draft of PG 19 release notes
От:
shihao zhong <zhong950419@gmail.com>
Дата:
Hi Tom,
> tuplestore, but either way you risk having to dump them to disk.
> I'm a bit skeptical about this one. The older code would have
> put those rows into the primary hash table rather than a dedicated> tuplestore, but either way you risk having to dump them to disk.
Sorry, my message is not that clear, I am saying mostly outer hash expressions.
In 18 the outer hash expression keeps nulls when the join fills the
outer side, so a NULL-keyed outer row is probed, matches nothing, and is
returned right away.
outer side, so a NULL-keyed outer row is probed, matches nothing, and is
returned right away.
In 19 ExecHashJoinOuterGetTuple() puts it into hj_NullOuterTupleStore, which
is sized at work_mem / 16, so with the default 4MB it goes to disk
after 256kB.
is sized at work_mem / 16, so with the default 4MB it goes to disk
after 256kB.
To reproduce, with default settings:
SET max_parallel_workers_per_gather = 0;
CREATE TABLE big AS
SELECT CASE WHEN g % 100 = 0 THEN g % 1000 END AS k,
repeat('x', 100) AS pad
FROM generate_series(1, 300000) g;
CREATE TABLE dim AS SELECT g AS id FROM generate_series(1, 1000) g;
ANALYZE big, dim;
EXPLAIN (ANALYZE, BUFFERS, COSTS OFF, TIMING OFF, SUMMARY OFF)
SELECT count(*) FROM big b LEFT JOIN dim d ON b.k = d.id;
SET temp_file_limit = '1MB';
SELECT count(*) FROM big b LEFT JOIN dim d ON b.k = d.id;
On 19rc1 the plan shows "temp read=4025 written=4025" with
"Batches: 1", and the last query fails with "temporary file size
exceeds temp_file_limit". On 18.6 there are no temp files and it returns
300000.
SET max_parallel_workers_per_gather = 0;
CREATE TABLE big AS
SELECT CASE WHEN g % 100 = 0 THEN g % 1000 END AS k,
repeat('x', 100) AS pad
FROM generate_series(1, 300000) g;
CREATE TABLE dim AS SELECT g AS id FROM generate_series(1, 1000) g;
ANALYZE big, dim;
EXPLAIN (ANALYZE, BUFFERS, COSTS OFF, TIMING OFF, SUMMARY OFF)
SELECT count(*) FROM big b LEFT JOIN dim d ON b.k = d.id;
SET temp_file_limit = '1MB';
SELECT count(*) FROM big b LEFT JOIN dim d ON b.k = d.id;
On 19rc1 the plan shows "temp read=4025 written=4025" with
"Batches: 1", and the last query fails with "temporary file size
exceeds temp_file_limit". On 18.6 there are no temp files and it returns
300000.
Thanks,
Shihao
Re: First draft of PG 19 release notes
От:
shihao zhong <zhong950419@gmail.com>
Дата:
I thought about this a bit more, and it may also cause a performance regression.
It is late here, so I will check it tomorrow.
Re: First draft of PG 19 release notes
От:
shihao zhong <zhong950419@gmail.com>
Дата:
Hi Tom,
I did a little more experiment on that this weekend.
For example, with default settings:
CREATE TABLE b (k int PRIMARY KEY);
INSERT INTO b SELECT generate_series(1, 1000);
CREATE TABLE a AS SELECT NULL::int AS k, repeat('x', 100) AS pad
FROM generate_series(1, 1000000);
VACUUM ANALYZE a, b;
EXPLAIN (ANALYZE, BUFFERS, COSTS OFF, TIMING OFF)
SELECT count(b.k) FROM a LEFT JOIN b ON a.k = b.k;
On release builds 18 takes 22 ms with no temp files. 19 takes 110 ms
and writes 106 MB of temp files.
Given that I think this is worth fixing in 19 and I will post a patch in a different
I did a little more experiment on that this weekend.
You are right about NULL keys in the inner table. 19 handles those
better.
better.
The problem is NULL keys on the outer side. 18 just returns those rows.
19 keeps them until the end, and they go to disk once they pass
work_mem / 16.
19 keeps them until the end, and they go to disk once they pass
work_mem / 16.
For example, with default settings:
CREATE TABLE b (k int PRIMARY KEY);
INSERT INTO b SELECT generate_series(1, 1000);
CREATE TABLE a AS SELECT NULL::int AS k, repeat('x', 100) AS pad
FROM generate_series(1, 1000000);
VACUUM ANALYZE a, b;
EXPLAIN (ANALYZE, BUFFERS, COSTS OFF, TIMING OFF)
SELECT count(b.k) FROM a LEFT JOIN b ON a.k = b.k;
On release builds 18 takes 22 ms with no temp files. 19 takes 110 ms
and writes 106 MB of temp files.
Given that I think this is worth fixing in 19 and I will post a patch in a different
thread. If you would rather leave 19 as is, I think it needs a release note.
Thanks,
Shihao
Thanks,
Shihao
Re: First draft of PG 19 release notes
Hello, The system view pg_stat_progress_repack was introduced with the REPACK command, but I can't find any reference to it in the release notes. Maybe it's worth adding the view to the System Views section? -- Pavel Luzanov Postgres Professional: https://postgrespro.com
Re: First draft of PG 19 release notes
I noticed that the release notes use "multixid" instead of "multixact" in two places. Attached is a patch that fixes that and improves the language in one of the instances. Yours, Laurenz Albe
Re: First draft of PG 19 release notes
On Sat, Oct 17, 2026 at 12:03:07AM -0400, shihao zhong wrote: > Hi Bruce, > > While looking for bugs in new 19 features, I found some changes that > look intended, but I think the notes do not tell an upgrading user about > them. I checked the notes as of 58d16be8acd and ran each one on 19 and > 18.6. Sorry for the delay in me getting to this. I realized it was going to take some serious research, not only to adjust the docs, but also to figure out how I missed seeing these changes. > 1. io_workers was removed (d1c01b79d4a). The item lists the new > variables but not that the old one is gone. An 18 postgresql.conf that > sets it stops 19 from starting. The commit message says replaced and that didn't register to me as removed, my mistake. I have attached a patch with these changes. > 2. The Snowball item (7dc95cc3b94) names only Dutch, but English and > German stems changed too. "biologist" now stems to "biolog" and > "arbeitet" to "arbeit". A tsvector stored by 18 for "biologist" no > longer matches a 19 query for the same word. Jeff asked about this in > [1]. Wow, I didn't see that change either. I see the mention of English changes in the doc patch but not the commit message, and I don't see any docs about the German change, but I assume you know more than I do, so I added a mention of that too. > 3. With lz4 as the default (34dfca29343), some long text keys that fit > in a btree with pglz no longer fit. Restoring an 18 dump fails at ADD > PRIMARY KEY with "index row size 3344 exceeds btree version 4 maximum > 2704", and the table is left without its key. Setting > default_toast_compression to pglz avoids it. Yes, I can see this change effecting users, but it seems the index would already be fragile to be affected by this. The web page explains how we decide what to add to the release notes: https://wiki.postgresql.org/wiki/Creating_Major_Release_Notes and I don't think this one fits, though if we get user complaints about failure, we will need to add it. > 4. The hash join change (1811f1af98f) can write outer rows with NULL > keys to a temp file, even with one batch. A LEFT JOIN with 297000 NULL > keys wrote 33 MB of temp files, 18.6 wrote none. With temp_file_limit at > 1MB it fails. This is the same issue. If we were to mention all such cases, the release notes would be very hard to read. Let's see if we get user reports about it. > 5. The wait event item gives only the type rename. The event BufferPin > is now BufferCleanup (6c5c393b740), and LWLock BufferContent became the > Buffer events BufferShared, BufferShareExclusive and BufferExclusive > (fcb9c977aa5). The old names are gone from pg_wait_events. Added. Again, couldn't see it in the commit message but found it in the patch. How did you find all of these items? > 6. The checkpoint log line now carries the request flags (5b93a5987bd). > > 18.6: checkpoint complete: wrote 3783 buffers > 19: checkpoint complete: fast force wait: wrote 6659 buffers > > The 18 notes had a sentence when this line changed, maybe 19 needs one > too. So, PG 18 mentioned it because we expected people might be either confused by the new format but in this case I think it will be clear. > 7. LSNs are now zero padded (2633dae2e48), in pg_lsn output and > pg_controldata. > > 18.6: 0/31CFA58 > 19: 0/031CFA58 > > So '0/31CFA58'::pg_lsn::text = '0/31CFA58' is now false. Oh, I wonder if users are parsing those? Let's see if anyone mentions a problem during migration. > 8. DETACH PARTITION CONCURRENTLY no longer adds a CHECK constraint to > the detached table (3231fd04552). There is no item, and alter_table.sgml > still says it does. I can send a patch for that sentence. Yes, can you please write one and I will add it to the attached patch and apply it. Thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Thu, Oct 22, 2026 at 02:27:03PM +0300, Pavel Luzanov wrote: > Hello, > > The system view pg_stat_progress_repack was introduced with the REPACK > command, > but I can't find any reference to it in the release notes. > Maybe it's worth adding the view to the System Views section? I went back and forth on this one. On the one hand, when we add a command, if we also add a system view to monitor it, it is usually considered part of the new command and not something we would mention. However, the new system view does show progress for existing commands CLUSTER and VACUUM FULL, and those are kept for compatibility vs depricated, so it makes sense to mention this system view separately in the release notes. I also grouped vacuum items. Applied patch attached. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
Hi Bruce,
Thanks for writing the patch for me, this is my first time dealing with a release
change is listed in the Snowball 3.0.0 NEWS file under "German".[2]
> Added. Again, couldn't see it in the commit message but found it in
> the patch. How did you find all of these items?
Thanks for taking these in.
As a brief background: these items were identified while running stability tests
> the patch. How did you find all of these items?
Thanks for taking these in.
As a brief background: these items were identified while running stability tests
for the PG 19 release. I built a local multi-agent LLM system to test commits
between PG 18.6 and PG 19.
It flagged 20-30 potential issues, which I then manually verified.
I listed the confirmed bugs in [1], while the remaining items were non-bug
I listed the confirmed bugs in [1], while the remaining items were non-bug
behavior changes, which is why I shared them in that post.
With Lz4 change(3), I agree with your judgement.
For the NOT NULL case(4), I had worked with Tom to fix it in
fc189eb7508.
> Oh, I wonder if users are parsing those?
II actually parsed LSNs myself for a replay verifier unit test, though I'm not sure
if anyone else has a similar use case.
Either way, I'm fine with leaving it out of the release notes.
> Yes, can you please write one and I will add it to the attached
> patch and apply it. Thanks.
Patch attached. It just drops the sentence.
> patch and apply it. Thanks.
Patch attached. It just drops the sentence.
Thanks for writing the patch for me, this is my first time dealing with a release
note so do not know we can also write a patch to it.
Three small things:
1. io_workers was replaced by four variables, not three.(io_min_workers,
io_max_workers, io_worker_idle_timeout, io_worker_launch_interval)
2. The names in pg_wait_events are BufferShared, BufferShareExclusive
and BufferExclusive. The upper case ones are internal names.
and BufferExclusive. The upper case ones are internal names.
3. I think the porter dictionary is the 1980 Porter algorithm and was there
before 19, so it is not the previous English stemmer. The Germanchange is listed in the Snowball 3.0.0 NEWS file under "German".[2]
Thanks,
Shihao
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Mon, Oct 26, 2026 at 11:31:06PM -0400, shihao zhong wrote: > > Yes, can you please write one and I will add it to the attached > > patch and apply it. Thanks. > > Patch attached. It just drops the sentence. > > Thanks for writing the patch for me, this is my first time dealing with a > release > note so do not know we can also write a patch to it. Patch applied separately since it affects the general docs and not the release notes. Thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
On Mon, Oct 26, 2026 at 11:31:06PM -0400, shihao zhong wrote: > Hi Bruce, > > > Added. Again, couldn't see it in the commit message but found it in > > the patch. How did you find all of these items? > > Thanks for taking these in. > > As a brief background: these items were identified while running stability > tests > for the PG 19 release. I built a local multi-agent LLM system to test commits > between PG 18.6 and PG 19. > > It flagged 20-30 potential issues, which I then manually verified. > > I listed the confirmed bugs in [1], while the remaining items were non-bug > behavior changes, which is why I shared them in that post. Wow, I am surprised you only found these few missing items considering how thorough your testing was. I would like to have this happen for every major release, though I am not sure if I am capable of doing it. Hopefully you will still be around next year. :-) > With Lz4 change(3), I agree with your judgement. > > For the NOT NULL case(4), I had worked with Tom to fix it in > fc189eb7508. Oh, great! Problem solved! > > Oh, I wonder if users are parsing those? > II actually parsed LSNs myself for a replay verifier unit test, though I'm not > sure > if anyone else has a similar use case. > > Either way, I'm fine with leaving it out of the release notes. Yes, let's see what reports we get. > > Yes, can you please write one and I will add it to the attached > > patch and apply it. Thanks. > > Patch attached. It just drops the sentence. Applied and I sent a separate email. > Thanks for writing the patch for me, this is my first time dealing with a > release > note so do not know we can also write a patch to it. > > Three small things: > > 1. io_workers was replaced by four variables, not three.(io_min_workers, > io_max_workers, io_worker_idle_timeout, io_worker_launch_interval) Right, not sure how I got "three" stuck in my head. > 2. The names in pg_wait_events are BufferShared, BufferShareExclusive > and BufferExclusive. The upper case ones are internal names. Yes, this one confused me. I could only find the uppercase names so I used those. Thanks to you, I now see that the lowercase names exist in src/backend/utils/pgstat_wait_event.c, but this is created by src/backend/utils/activity/generate-wait_event_types.pl so is not in the patch. I have adjusted for the lowercase versions as you suggested. > 3. I think the porter dictionary is the 1980 Porter algorithm and was there > before 19, so it is not the previous English stemmer. The German > change is listed in the Snowball 3.0.0 NEWS file under "German".[2] Huh, based on the docs we have the old Dutch version available as dutch_porter, but no previous English or German versions available. Doesn't this require a rebuilding of indexes that use these stemmers? Updated patch attached. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
shihao zhong <zhong950419@gmail.com>
Дата:
> Wow, I am surprised you only found these few missing items considering
> how thorough your testing was.
> how thorough your testing was.
Yes. I hope that covered most of the cases we need for release note and I
only posted the PG19 regressions issues I found from the pipeline, and there
are still some old bugs, I am planning to do more manual verification and post
them after PG19 GAed.
> Hopefully you will still be around next year.
Thank you for the recognition! I will definitely continue this approach in the
next major, or maybe even minor releases. I am actually considering building
an agent system for the community.
Given that Linux already has Sashiko, there is no reason we can't have
something similar for PG.
However, that will have to wait until after the PG19 GA.......
> Updated patch attached.
Patch looks good, Thanks!
Thanks,
Shihao
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Tue, Oct 27, 2026 at 03:08:30PM -0400, shihao zhong wrote: > > Wow, I am surprised you only found these few missing items considering > > how thorough your testing was. > > Yes. I hope that covered most of the cases we need for release note and I > only posted the PG19 regressions issues I found from the pipeline, and there > are still some old bugs, I am planning to do more manual verification and post > them after PG19 GAed. > > > Hopefully you will still be around next year. > Thank you for the recognition! I will definitely continue this approach in the > next major, or maybe even minor releases. I am actually considering building > an agent system for the community. > Given that Linux already has Sashiko, there is no reason we can't have > something similar for PG. > > However, that will have to wait until after the PG19 GA....... > > > Updated patch attached. > > Patch looks good, Thanks! All great news, and patch applied. I feel bad since it took me nine days to reply to you and you have been able to reply to my emails right away. You were a big help! -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Fri, Oct 23, 2026 at 07:22:55AM +0200, Laurenz Albe wrote: > I noticed that the release notes use "multixid" instead of > "multixact" in two places. Attached is a patch that fixes that and > improves the language in one of the instances. Agreed, patch applied, thanks! -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
Hi Bruce,
One more item for the migration section. After the BUG #19749 fix
(18740523a), older btree indexes on character columns must be rebuilt.
The same goes for oidvector. pg_upgrade does not do it. Until then,
index-only scans can return wrong values.
The attached patch adds a short entry that tells people to REINDEX them
after upgrading. It is for REL_19_STABLE only. Would you add it?
The fix was also back-patched to 14 through 18 (882fd416d6e on 18).
The next minor release notes for those branches need the same REINDEX
advice for character indexes. oidvector keeps deduplication there, so
only 19 needs it.
Thanks,
Shihao
(18740523a), older btree indexes on character columns must be rebuilt.
The same goes for oidvector. pg_upgrade does not do it. Until then,
index-only scans can return wrong values.
The attached patch adds a short entry that tells people to REINDEX them
after upgrading. It is for REL_19_STABLE only. Would you add it?
The fix was also back-patched to 14 through 18 (882fd416d6e on 18).
The next minor release notes for those branches need the same REINDEX
advice for character indexes. oidvector keeps deduplication there, so
only 19 needs it.
Thanks,
Shihao
Re: First draft of PG 19 release notes
Hi Bruce, On Tue, Apr 14, 2026 at 6:19 PM Bruce Momjian wrote: > > I have completed the first draft of the PG 19 release notes: > > https://www.postgresql.org/docs/devel/release-19.html > > The feature count is 212. The recent average is 200: > > https://momjian.us/main/writings/pgsql/missing.pdf#page=3 > > I will create a wiki page to explain my methods used to create this > because, someday, someone else will need to do this. > > I am traveling April 19 to May 7, so I might not be able to make quick > adjustments based on feedback. Another committer can handle them, or > you can wait for me to get to it. I've pushed a fix (8628df8891a) for how parallel vacuum computes the cost-based vacuum delay. As I mentioned in the commit message, while the fix corrects the delay computation, it could make VACUUM with the PARALLEL option and cost-based delay enabled slower after upgrading to v19. I think it's worth mentioning this in the release notes so that users can re-tune the cost-based delay parameters. I've attached the patch to add the item to the "Migration to Version 19" section. Please review it. Regards, -- Masahiko Sawada Amazon Web Services: https://aws.amazon.com
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
I will review this and hopefully apply it on Friday. --------------------------------------------------------------------------- On Sat, Oct 31, 2026 at 11:24:33PM -0400, shihao zhong wrote: > Hi Bruce, > > One more item for the migration section. After the BUG #19749 fix > (18740523a), older btree indexes on character columns must be rebuilt. > The same goes for oidvector. pg_upgrade does not do it. Until then, > index-only scans can return wrong values. > > The attached patch adds a short entry that tells people to REINDEX them > after upgrading. It is for REL_19_STABLE only. Would you add it? > > The fix was also back-patched to 14 through 18 (882fd416d6e on 18). > The next minor release notes for those branches need the same REINDEX > advice for character indexes. oidvector keeps deduplication there, so > only 19 needs it. > > Thanks, > Shihao > From 83088d79d6d7ecb998070afa06bcce30ebe33a4d Mon Sep 17 00:00:00 2001 > From: Shihao Zhong > Date: Sat, 31 Oct 2026 22:52:18 -0400 > Subject: [PATCH v1] doc: Add PG 19 migration note about bpchar index > deduplication. > > Commit 18740523a4a stopped nbtree deduplication for bpchar indexes, but > indexes built by earlier major versions keep the old allequalimage flag. > pg_upgrade does not rebuild them, and pg_upgrade --check does not warn > about them, so amcheck reports them until they are rebuilt, and an > index-only scan can return a value that differs from the heap in > trailing spaces. Tell users to REINDEX them after upgrading. > > Discussion: https://postgr.es/m/CAGRkXqQQ311Lg=62x5UdZtPuRFgpT6XpPMw4X9E3tgbTu162Mw@mail.gmail.com > --- > doc/src/sgml/release-19.sgml | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/doc/src/sgml/release-19.sgml b/doc/src/sgml/release-19.sgml > index 253fa07179a..91eb2a3aae3 100644 > --- a/doc/src/sgml/release-19.sgml > +++ b/doc/src/sgml/release-19.sgml > @@ -431,6 +431,38 @@ recommended to reindex any indexes that use these functions after the upgrade. > > > > + > + > + > + > +Disable B-tree deduplication for > +indexes on character (bpchar) columns > +(Shihao Zhong, Peter Geoghegan) > +§ > + > + > + > +Values of character that differ only in trailing spaces compare > +as equal but are stored differently, so deduplication could make an index-only > +scan return a value other than the one in the table. Indexes built by earlier > +major versions still claim to support deduplication, and > +pg_upgrade does > +not change that. After upgrading, run REINDEX on every > +B-tree index on a character column, including > +character(n) columns and indexes > +that use bpchar_pattern_ops. > + reports such indexes until they are rebuilt. > + > + > + > +The same applies to B-tree indexes on oidvector columns, which > +are rarely used outside the system catalogs. > + > + > + >
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
I will review this and hopefully apply it on Friday. --------------------------------------------------------------------------- On Mon, Nov 2, 2026 at 01:42:44PM -0800, Masahiko Sawada wrote: > Hi Bruce, > > On Tue, Apr 14, 2026 at 6:19 PM Bruce Momjian wrote: > > > > I have completed the first draft of the PG 19 release notes: > > > > https://www.postgresql.org/docs/devel/release-19.html > > > > The feature count is 212. The recent average is 200: > > > > https://momjian.us/main/writings/pgsql/missing.pdf#page=3 > > > > I will create a wiki page to explain my methods used to create this > > because, someday, someone else will need to do this. > > > > I am traveling April 19 to May 7, so I might not be able to make quick > > adjustments based on feedback. Another committer can handle them, or > > you can wait for me to get to it. > > I've pushed a fix (8628df8891a) for how parallel vacuum computes the > cost-based vacuum delay. As I mentioned in the commit message, while > the fix corrects the delay computation, it could make VACUUM with the > PARALLEL option and cost-based delay enabled slower after upgrading to > v19. I think it's worth mentioning this in the release notes so that > users can re-tune the cost-based delay parameters. I've attached the > patch to add the item to the "Migration to Version 19" section. Please > review it. > > Regards, > > -- > Masahiko Sawada > Amazon Web Services: https://aws.amazon.com > diff --git a/doc/src/sgml/release-19.sgml b/doc/src/sgml/release-19.sgml > index 253fa07179a..7939d44aa36 100644 > --- a/doc/src/sgml/release-19.sgml > +++ b/doc/src/sgml/release-19.sgml > @@ -303,6 +303,22 @@ large analytical queries to manually enable JIT. > > > > + > + > + > + > +Make the leader and workers of a parallel vacuum share the cost-based vacuum delay limit (Bharath Rupireddy) > +§ > + > + > + > +Previously each process slept based only on the cost it incurred itself, so a parallel vacuum could consume several times the budget set by vacuum_cost_limit. As a result, VACUUM with parallel workers and cost-based delay enabled can run slower than in previous releases. > + > + > + >
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sat, Oct 31, 2026 at 11:24:33PM -0400, shihao zhong wrote: > Hi Bruce, > > One more item for the migration section. After the BUG #19749 fix > (18740523a), older btree indexes on character columns must be rebuilt. > The same goes for oidvector. pg_upgrade does not do it. Until then, > index-only scans can return wrong values. > > The attached patch adds a short entry that tells people to REINDEX them > after upgrading. It is for REL_19_STABLE only. Would you add it? > > The fix was also back-patched to 14 through 18 (882fd416d6e on 18). > The next minor release notes for those branches need the same REINDEX > advice for character indexes. oidvector keeps deduplication there, so > only 19 needs it. I had to think about this one, particularly because PG 19 RC2 is coming out at the same time as the minor releases, and PG 19 is coming out soon after. Users who are going to PG 19 are required to read all minor release notes before moving to PG 19 and that includes the release notes we are putting out next week; I outlined the process here: https://momjian.us/main/blogs/pgblog/2022.html#June_13_2022 The general issue is that PG 19 is assumed to include all changes in all the minor releases so far. Therefore, I don't think this belongs in the PG 19 major release notes. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Bruce Momjian writes: > On Sat, Oct 31, 2026 at 11:24:33PM -0400, shihao zhong wrote: >> The attached patch adds a short entry that tells people to REINDEX them >> after upgrading. It is for REL_19_STABLE only. Would you add it? > The general issue is that PG 19 is assumed to include all changes in all > the minor releases so far. Therefore, I don't think this belongs in the > PG 19 major release notes. Also, the proposed text is too alarmist, because it claims that indexes on CHAR(n) columns need to be reindexed. AFAICS that is not true: CHAR(n) forces the number of characters to match in all entries in the column, therefore two otherwise-equal strings will have the same number of trailing blanks and will compare bitwise equal anyway. So you are only at risk if you created an unconstrained "bpchar" column, which is surely a pretty tiny minority usage. I did list this first in the draft 18.7 release notes, but mostly by default: there are not too many entries that require DBA action. I think the number of people actually affected will be small, likely smaller than the number of people who need to worry about reindexing other kinds of indexes. (To that point, if we did mention reindexing issues in major release notes, we'd have to cover those other bugs too.) regards, tom lane
Re: First draft of PG 19 release notes
On Mon, Nov 2, 2026 at 01:42:44PM -0800, Masahiko Sawada wrote: > I've pushed a fix (8628df8891a) for how parallel vacuum computes the > cost-based vacuum delay. As I mentioned in the commit message, while > the fix corrects the delay computation, it could make VACUUM with the > PARALLEL option and cost-based delay enabled slower after upgrading to > v19. I think it's worth mentioning this in the release notes so that > users can re-tune the cost-based delay parameters. I've attached the > patch to add the item to the "Migration to Version 19" section. Please > review it. I have slightly reworded the patch and applied it, attached, thanks. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
shihao zhong <zhong950419@gmail.com>
Дата:
Hi Tom and Bruce,
Thanks Bruce for explaining how the minor release notes fit in. That
makes sense, so please drop my patch.
Tom, thanks for pointing out that CHAR(n) is safe.
makes sense, so please drop my patch.
Tom, thanks for pointing out that CHAR(n) is safe.
Thanks,
Shihao
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sat, Nov 7, 2026 at 07:17:02PM -0500, shihao zhong wrote: > Hi Tom and Bruce, > > Thanks Bruce for explaining how the minor release notes fit in. That > makes sense, so please drop my patch. > > Tom, thanks for pointing out that CHAR(n) is safe. This showed me that there is _some_ confusion in the process. Suppose in PG 18.14 we tell users to reindex, and in PG 19.5, which was released on the same day as 18.14, we tell people to reindex for the same reason. Imagine someone is running 18.10, and they want to upgrade to 19.7. They will read all the release notes from 18.11 to 19.7, and it will tell them to reindex twice. Obviously the _reason_ for the reindex will be the same, and they will need to realize that as part of their upgrade procedure. In fact a lot of the items that are backpatched will be duplicates. I am just not sure that we give a simple way of avoiding this confusion. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
"David G. Johnston" <david.g.johnston@gmail.com>
Дата:
On Sat, Nov 7, 2026 at 5:47 PM Bruce Momjian <bruce@momjian.us> wrote:
On Sat, Nov 7, 2026 at 07:17:02PM -0500, shihao zhong wrote:
> Thanks Bruce for explaining how the minor release notes fit in. That
> makes sense, so please drop my patch.
>
This showed me that there is _some_ confusion in the process. Suppose
in PG 18.14 we tell users to reindex, and in PG 19.5, which was released
on the same day as 18.14, we tell people to reindex for the same reason.
Imagine someone is running 18.10, and they want to upgrade to 19.7.
They will read all the release notes from 18.11 to 19.7,
My understanding (position?) is that upgrading from 16.5 to 18.6; I'd expect to need to upgrade to 16.15 and read release notes for 16.6-16.15; then read the notes for 17.0 and 18.0 when I go from 16.15 to 18.6. I shouldn't need to read anything else in the 17 release nor the fixes applied to 18 for versions I never installed. I'll never see that reindex twice.
We don't support upgrading from an unsupported release, nor into an unsupported one. And the fixes that hit a major version only matter if you'd already been running that version otherwise those same fixes would have appeared on your supported minor release notes.
David J.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sat, Nov 7, 2026 at 06:04:48PM -0700, David G. Johnston wrote: > On Sat, Nov 7, 2026 at 5:47 PM Bruce Momjian wrote: > > On Sat, Nov 7, 2026 at 07:17:02PM -0500, shihao zhong wrote: > > Thanks Bruce for explaining how the minor release notes fit in. That > > makes sense, so please drop my patch. > > > This showed me that there is _some_ confusion in the process. Suppose > in PG 18.14 we tell users to reindex, and in PG 19.5, which was released > on the same day as 18.14, we tell people to reindex for the same reason. > > Imagine someone is running 18.10, and they want to upgrade to 19.7. > They will read all the release notes from 18.11 to 19.7, > > My understanding (position?) is that upgrading from 16.5 to 18.6; I'd expect to > need to upgrade to 16.15 and read release notes for 16.6-16.15; then read the > notes for 17.0 and 18.0 when I go from 16.15 to 18.6. I shouldn't need to read > anything else in the 17 release nor the fixes applied to 18 for versions I > never installed. I'll never see that reindex twice. You need to read all of 17 because if you are upgrading from 11 to 19.7 there might be reindex needs in PG 12-16. > We don't support upgrading from an unsupported release, nor into an unsupported > one. And the fixes that hit a major version only matter if you'd already been > running that version otherwise those same fixes would have appeared on your > supported minor release notes. Oh, I guess if you are always on supported releases you might be able to skip 17, good point. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sat, Nov 7, 2026 at 08:20:35PM -0500, Bruce Momjian wrote: > On Sat, Nov 7, 2026 at 06:04:48PM -0700, David G. Johnston wrote: > > My understanding (position?) is that upgrading from 16.5 to 18.6; I'd expect to > > need to upgrade to 16.15 and read release notes for 16.6-16.15; then read the > > notes for 17.0 and 18.0 when I go from 16.15 to 18.6. I shouldn't need to read > > anything else in the 17 release nor the fixes applied to 18 for versions I > > never installed. I'll never see that reindex twice. > > You need to read all of 17 because if you are upgrading from 11 to 19.7 > there might be reindex needs in PG 12-16. > > > We don't support upgrading from an unsupported release, nor into an unsupported > > one. And the fixes that hit a major version only matter if you'd already been > > running that version otherwise those same fixes would have appeared on your > > supported minor release notes. > > Oh, I guess if you are always on supported releases you might be able to > skip 17, good point. Actually, you do need to read all the 17.X and 18.x release notes because while some of those items are backpatched to 16.X, others are specific to the 17.X and 18.X branches. This is the crux of the problem --- that we mix backpatched and major-version-specific items in the same release notes. I see no way of improving that. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
"David G. Johnston" <david.g.johnston@gmail.com>
Дата:
On Sun, Nov 8, 2026 at 8:16 AM Bruce Momjian <bruce@momjian.us> wrote:
On Sat, Nov 7, 2026 at 08:20:35PM -0500, Bruce Momjian wrote:
> On Sat, Nov 7, 2026 at 06:04:48PM -0700, David G. Johnston wrote:
> > My understanding (position?) is that upgrading from 16.5 to 18.6; I'd expect to
> > need to upgrade to 16.15 and read release notes for 16.6-16.15; then read the
> > notes for 17.0 and 18.0 when I go from 16.15 to 18.6. I shouldn't need to read
> > anything else in the 17 release nor the fixes applied to 18 for versions I
> > never installed. I'll never see that reindex twice.
>
> You need to read all of 17 because if you are upgrading from 11 to 19.7
> there might be reindex needs in PG 12-16.
>
> > We don't support upgrading from an unsupported release, nor into an unsupported
> > one. And the fixes that hit a major version only matter if you'd already been
> > running that version otherwise those same fixes would have appeared on your
> > supported minor release notes.
>
> Oh, I guess if you are always on supported releases you might be able to
> skip 17, good point.
Actually, you do need to read all the 17.X and 18.x release notes
because while some of those items are backpatched to 16.X, others are
specific to the 17.X and 18.X branches. This is the crux of the problem
--- that we mix backpatched and major-version-specific items in the same
release notes. I see no way of improving that.
If the action needs to be taken post pg_upgrade too, and not just during a minor release update, it should be added into the N.0 migration section. We can limit what we put there by assuming all such migration actions in minor releases of earlier versions have already been performed. I would welcome an example of something that meets this criteria.
My other, not mutually exclusive, idea is to put 'Migrations' in the E1 position of the appendix and remove migration from the individual version sections. This reduces greatly the number of links to follow that all end up just saying the same thing anyway (in the migration section anyway).
David J.
Re: First draft of PG 19 release notes
От:
Álvaro Herrera <alvherre@kurilemu.de>
Дата:
On 2026-Nov-07, Bruce Momjian wrote: > Imagine someone is running 18.10, and they want to upgrade to 19.7. > They will read all the release notes from 18.11 to 19.7, and it will > tell them to reindex twice. Well, if they use https://why-upgrade.depesz.com they won't. For instance, https://why-upgrade.depesz.com/show?from=16.14&to=18.6&keywords= this will show going from 16.4 to 17, then to 17.1, 17.2 [etc] until 17.6, and then it says to jump to 18. So the release notes from 17.7 and up are not included, presumably because Depesz knows that these are duplicates. I don't think we _have_ to change the way our release notes are structured in order to cope with this. It may be nice to have a way to present them that matches what Depesz's page does, though. Or at least an explanation about how it would go. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sun, Nov 8, 2026 at 08:46:24AM -0700, David G. Johnston wrote: > On Sun, Nov 8, 2026 at 8:16 AM Bruce Momjian wrote: > Actually, you do need to read all the 17.X and 18.x release notes > because while some of those items are backpatched to 16.X, others are > specific to the 17.X and 18.X branches. This is the crux of the problem > --- that we mix backpatched and major-version-specific items in the same > release notes. I see no way of improving that. > > If the action needs to be taken post pg_upgrade too, and not just during a > minor release update, it should be added into the N.0 migration section. We > can limit what we put there by assuming all such migration actions in minor > releases of earlier versions have already been performed. I would welcome an > example of something that meets this criteria. We could add a feature in 17.0 and change its behavior in 17.4, then release 18.0. In that case, if ugrading from 16 to 18, and you read only 17.0, you will not see the 17.4 change. Listing the 17.4 change in 18.0 would be confusing. The example of needing to reindex is just an example of this. > My other, not mutually exclusive, idea is to put 'Migrations' in the E1 > position of the appendix and remove migration from the individual version > sections. This reduces greatly the number of links to follow that all end up > just saying the same thing anyway (in the migration section anyway). Well, how would you indicate which versions are affected by the migrations? You might have a migration issue in 17.2. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.
Re: First draft of PG 19 release notes
От:
Bruce Momjian <bruce@momjian.us>
Дата:
On Sun, Nov 8, 2026 at 05:28:06PM +0100, Álvaro Herrera wrote: > On 2026-Nov-07, Bruce Momjian wrote: > > > Imagine someone is running 18.10, and they want to upgrade to 19.7. > > They will read all the release notes from 18.11 to 19.7, and it will > > tell them to reindex twice. > > Well, if they use https://why-upgrade.depesz.com they won't. For > instance, > https://why-upgrade.depesz.com/show?from=16.14&to=18.6&keywords= > this will show going from 16.4 to 17, then to 17.1, 17.2 [etc] until > 17.6, and then it says to jump to 18. So the release notes from 17.7 > and up are not included, presumably because Depesz knows that these are > duplicates. Yeah, one logic is that once the next major release comes out, you can stop reading the later minor releases because any change to 17.X would also be changed in 18.X. I don't think we document this anywhere, and I frankly had never considered it. However, it is _possible_ that 18.0 rewrote a facility in 17.0 and a fix was made only in a 17.X release that happened after an 18.x release. However, since your are going to 18.X, it might not matter. I can't wrap my head around whether this would always be safe. I assume/hope https://why-upgrade.depesz.com compares compares commit text and not just release dates. > I don't think we _have_ to change the way our release notes are > structured in order to cope with this. It may be nice to have a > way to present them that matches what Depesz's page does, though. > Or at least an explanation about how it would go. Yeah, that is what I was thinking, but I have no idea how we would approach this. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Do not let urgent matters crowd out time for investment in the future.