Detailed release notes

Started by Marcos Pegoraroover 1 year ago74 messages
Jump to latest
#1Marcos Pegoraro
marcos@f10.com.br

I'm now using version 14 and planning to update to 17 as soon as it comes
available. Then looking carefully to release notes to see exactly what I'll
get when updated I see lots of unexplained features. Just because release
notes does not explain exactly what that change does. And I don't have a
way to get what code or messages generated that feature.

-

Allow query nodes to be run in parallel in more cases (Tom Lane)
Cool this feature, but when and what kind of query will use this ?
-

Improve EXPLAIN's display of SubPlan nodes and output parameters (Tom
Lane, Dean Rasheed)
hmm, interesting, but what exactly ?

Everything that is done in Postgres is public, all messages and code are
available to anyone, but when I want to know what that feature is exactly
using release notes, I don't know how to find it.

I think it would be very interesting if we have on release notes what was
discussed for that change.

-

Allow query nodes to be run in parallel in more cases (Tom Lane) CF1
<https://commitfest.postgresql.org/47/4798/&gt; and CF2
<https://commitfest.postgresql.org/48/4810/&gt;
-

Improve EXPLAIN's display of SubPlan nodes and output parameters (Tom
Lane, Dean Rasheed) CF1 <https://commitfest.postgresql.org/47/4782/&gt;

And these CF links could point to commitfest or email messages or even a
detailed tutorial of that feature.

regards
Marcos

#2Daniel Gustafsson
daniel@yesql.se
In reply to: Marcos Pegoraro (#1)
Re: Detailed release notes

On 26 Jul 2024, at 14:30, Marcos Pegoraro <marcos@f10.com.br> wrote:

I'm now using version 14 and planning to update to 17 as soon as it comes available. Then looking carefully to release notes to see exactly what I'll get when updated I see lots of unexplained features. Just because release notes does not explain exactly what that change does. And I don't have a way to get what code or messages generated that feature.

There is a way, but it's not exactly visible from reading the release notes.

• Allow query nodes to be run in parallel in more cases (Tom Lane)
Cool this feature, but when and what kind of query will use this ?

Reading the source of the release notes will show a comment which links to the
commit. The source can be seen here:

https://github.com/postgres/postgres/blob/REL_17_STABLE/doc/src/sgml/release-17.sgml

..and the comment for this item is:

<!--
Author: Tom Lane <tgl@sss.pgh.pa.us>
2023-07-14 [e08d74ca1] Allow plan nodes with initPlans to be considered paralle
-->

<listitem>
<para>
Allow query nodes to be run in parallel in more cases (Tom Lane)
</para>
</listitem>

This comment tells us the relevant commit is e08d74ca1, which can be found here:

https://github.com/postgres/postgres/commit/e08d74ca1

This in turn leads to the mailinglist discussion for this specific feature:

/messages/by-id/1129530.1681317832@sss.pgh.pa.us

--
Daniel Gustafsson

#3Marcos Pegoraro
marcos@f10.com.br
In reply to: Daniel Gustafsson (#2)
Re: Detailed release notes

Em sex., 26 de jul. de 2024 às 09:45, Daniel Gustafsson <daniel@yesql.se>
escreveu:

There is a way, but it's not exactly visible from reading the release
notes.

Cool, didn't know that.
But why is that just a hidden comment and not a visible link for us ?

regards
Marcos

#4Daniel Gustafsson
daniel@yesql.se
In reply to: Marcos Pegoraro (#3)
Re: Detailed release notes

On 26 Jul 2024, at 15:00, Marcos Pegoraro <marcos@f10.com.br> wrote:

But why is that just a hidden comment and not a visible link for us ?

That's likely the wrong level of detail for the overwhelming majority of
release notes readers. I have a feeling this was discussed not too long ago
but (if so) I fail to find that discussion now.

--
Daniel Gustafsson

#5Marcos Pegoraro
marcos@f10.com.br
In reply to: Daniel Gustafsson (#4)
Re: Detailed release notes

Em sex., 26 de jul. de 2024 às 10:11, Daniel Gustafsson <daniel@yesql.se>
escreveu:

That's likely the wrong level of detail for the overwhelming majority of
release notes readers. I have a feeling this was discussed not too long
ago
but (if so) I fail to find that discussion now.

Wrong level ? Where is the appropriate place on DOCs to see exactly what
I'll get when updated ?
A separate page "Detailed Release Notes" ? I don't think so.
I think release notes are sometimes the only place we read to decide if an
upgrade is doable or not.

Well, that opened my eyes, now I can see detailed info about every feature
when it's committed.
And I'm really convinced that a small link to that commit wouldn't
get dirty release notes.

#6Jonathan S. Katz
jkatz@postgresql.org
In reply to: Marcos Pegoraro (#5)
Re: Detailed release notes
#7Robert Haas
robertmhaas@gmail.com
In reply to: Marcos Pegoraro (#5)
Re: Detailed release notes

On Fri, Jul 26, 2024 at 9:26 AM Marcos Pegoraro <marcos@f10.com.br> wrote:

Well, that opened my eyes, now I can see detailed info about every feature when it's committed.
And I'm really convinced that a small link to that commit wouldn't get dirty release notes.

+1. I think those links would be useful to a lot of people.

--
Robert Haas
EDB: http://www.enterprisedb.com

#8Tom Lane
tgl@sss.pgh.pa.us
In reply to: Daniel Gustafsson (#4)
Re: Detailed release notes

Daniel Gustafsson <daniel@yesql.se> writes:

On 26 Jul 2024, at 15:00, Marcos Pegoraro <marcos@f10.com.br> wrote:
But why is that just a hidden comment and not a visible link for us ?

That's likely the wrong level of detail for the overwhelming majority of
release notes readers. I have a feeling this was discussed not too long ago
but (if so) I fail to find that discussion now.

Yeah, I too recall some discussion of surfacing the commit links
somehow, perhaps as a popup tooltip. Nobody's got round to it yet.
It's not real clear how to handle multiple links per <para>, which
happens from time to time in major release notes and just about
everyplace in minor release notes.

regards, tom lane

#9Masahiko Sawada
sawada.mshk@gmail.com
In reply to: Robert Haas (#7)
Re: Detailed release notes

On Fri, Jul 26, 2024 at 6:56 AM Robert Haas <robertmhaas@gmail.com> wrote:

On Fri, Jul 26, 2024 at 9:26 AM Marcos Pegoraro <marcos@f10.com.br> wrote:

Well, that opened my eyes, now I can see detailed info about every feature when it's committed.
And I'm really convinced that a small link to that commit wouldn't get dirty release notes.

+1. I think those links would be useful to a lot of people.

+1. I've been asked a lot of times how to find the associated commit
IDs from release note items. These links would help users know the
details of the changes, and I believe many users would like to do
that.

Regards,

--
Masahiko Sawada
Amazon Web Services: https://aws.amazon.com

#10Marcos Pegoraro
marcos@f10.com.br
In reply to: Masahiko Sawada (#9)
Re: Detailed release notes

Em sex., 26 de jul. de 2024 às 13:01, Masahiko Sawada <sawada.mshk@gmail.com>
escreveu:

+1. I've been asked a lot of times how to find the associated commit
IDs from release note items. These links would help users know the
details of the changes, and I believe many users would like to do
that.

Yes, this way release notes would explain itself.

For now my release notes will be this
https://github.com/postgres/postgres/blob/REL_17_STABLE/doc/src/sgml/release-17.sgml
and not this
https://www.postgresql.org/docs/17/release-17.html

regards
Marcos

#11jian he
jian.universality@gmail.com
In reply to: Tom Lane (#8)
Re: Detailed release notes

On Fri, Jul 26, 2024 at 10:11 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:

Daniel Gustafsson <daniel@yesql.se> writes:

On 26 Jul 2024, at 15:00, Marcos Pegoraro <marcos@f10.com.br> wrote:
But why is that just a hidden comment and not a visible link for us ?

That's likely the wrong level of detail for the overwhelming majority of
release notes readers. I have a feeling this was discussed not too long ago
but (if so) I fail to find that discussion now.

Yeah, I too recall some discussion of surfacing the commit links
somehow, perhaps as a popup tooltip. Nobody's got round to it yet.
It's not real clear how to handle multiple links per <para>, which
happens from time to time in major release notes and just about
everyplace in minor release notes.

similar to https://docs.python.org/3/whatsnew/changelog.html

Change functions to use a safe search_path during maintenance
operations (Jeff Davis)

change to

[commitId_link1, commitId_link2]: Change functions to use a safe
search_path during maintenance operations (Jeff Davis)

Does this make sense?
If so, then we can hardcode and some automation can change to that way.

#12Marcos Pegoraro
marcos@f10.com.br
In reply to: jian he (#11)
Re: Detailed release notes

Em seg., 5 de ago. de 2024 às 07:54, jian he <jian.universality@gmail.com>
escreveu:

[commitId_link1, commitId_link2]: Change functions to use a safe
search_path during maintenance operations (Jeff Davis)

I don't like that prefix dirtying each item.
I think having just a link after every item would be better.
Firstly because in English we read left to right and
also because we don't need the commit code. So it would be

- Change functions to use a safe search_path during maintenance
operations (Jeff Davis) [link1, link2]

or just a number to it

- Change functions to use a safe search_path during maintenance
operations (Jeff Davis) [1, 2]

regards
Marcos

#13Daniel Gustafsson
daniel@yesql.se
In reply to: Marcos Pegoraro (#12)
Re: Detailed release notes

On 5 Aug 2024, at 13:16, Marcos Pegoraro <marcos@f10.com.br> wrote:

Em seg., 5 de ago. de 2024 às 07:54, jian he <jian.universality@gmail.com <mailto:jian.universality@gmail.com>> escreveu:

[commitId_link1, commitId_link2]: Change functions to use a safe
search_path during maintenance operations (Jeff Davis)

I don't like that prefix dirtying each item.

I too would prefer links at the end, not least since we might have 2 or 3 (or
more) links for an item.

Python also links to the Github issue and not the commit, in our project the
analog to that would be linking to the thread in the mailinglist archive as
well as the commit. For us linking to the commit is probably preferrable since
it will link to the thread but the thread often wont link to the commit (like a
Github issue will). Maybe icons for code/emailthread can be used to make it
clear what the link is, and cut down to horizontal space required?

--
Daniel Gustafsson

#14Euler Taveira
euler@eulerto.com
In reply to: Daniel Gustafsson (#13)
Re: Detailed release notes

On Mon, Aug 5, 2024, at 10:33 AM, Daniel Gustafsson wrote:

On 5 Aug 2024, at 13:16, Marcos Pegoraro <marcos@f10.com.br> wrote:

Em seg., 5 de ago. de 2024 às 07:54, jian he <jian.universality@gmail.com> escreveu:

[commitId_link1, commitId_link2]: Change functions to use a safe
search_path during maintenance operations (Jeff Davis)

I don't like that prefix dirtying each item.

I too would prefer links at the end, not least since we might have 2 or 3 (or
more) links for an item.

+1.

Python also links to the Github issue and not the commit, in our project the
analog to that would be linking to the thread in the mailinglist archive as
well as the commit. For us linking to the commit is probably preferrable since
it will link to the thread but the thread often wont link to the commit (like a
Github issue will). Maybe icons for code/emailthread can be used to make it
clear what the link is, and cut down to horizontal space required?

PgBouncer adds the PR number at the end [1]https://www.pgbouncer.org/changelog.html too. I generally prefer this style
because you read the message and after that if you want additional detail you
can click on the link at the end.

I don't know if linking to the thread is a good idea. We have long long threads
that cannot provide quick information for the reader. Since we don't have a
concept of every commit has a CF entry, IMO we should use only commits here. The
commit message points to the discussion so it is a good start point if you want
to research about that specific feature.

If one commit is not sufficient for that item, we can always add multiple
commits as we usually do in the release notes comments.

[1]: https://www.pgbouncer.org/changelog.html

--
Euler Taveira
EDB https://www.enterprisedb.com/

#15jian he
jian.universality@gmail.com
In reply to: Euler Taveira (#14)
Re: Detailed release notes

hi.

please check the attached patch file and apply against
b18b3a8150dbb150124bd345e000d6dc92f3d6dd.

you can also preview the attached screenshot to see the rendered effect.

Attachments:

Screenshot from 2024-08-06 15-24-19.pngimage/png; name="Screenshot from 2024-08-06 15-24-19.png"Download+9-13
v1-0001-pg-17-add-git-commit-link-to-release-notes.patchapplication/x-patch; name=v1-0001-pg-17-add-git-commit-link-to-release-notes.patchDownload+435-184
#16Marcos Pegoraro
marcos@f10.com.br
In reply to: jian he (#15)
Re: Detailed release notes

Em ter., 6 de ago. de 2024 às 04:30, jian he <jian.universality@gmail.com>
escreveu:

you can also preview the attached screenshot to see the rendered effect.

Loved, except that the commit id does not help too much, so I don't think
we need it.
I think a numbered link would be better.

- Change functions to use a safe search_path during maintenance
operations (Jeff Davis) [1, 2]

And your patch has an additional space before comma before second, third
links, [1 , 2] instead of [1, 2]

regards
Marcos

#17Robert Haas
robertmhaas@gmail.com
In reply to: Marcos Pegoraro (#16)
Re: Detailed release notes

On Tue, Aug 6, 2024 at 9:57 AM Marcos Pegoraro <marcos@f10.com.br> wrote:

Loved, except that the commit id does not help too much, so I don't think we need it.
I think a numbered link would be better.

I think the commit ID is quite useful. If you're using git, you can do
"git show $COMMITID". If you're using the web, you can go to
https://git.postgresql.org/pg/commitdiff/$COMMITID

Big -1 for removing the commit ID.

--
Robert Haas
EDB: http://www.enterprisedb.com

#18Euler Taveira
euler@eulerto.com
In reply to: Robert Haas (#17)
Re: Detailed release notes

On Tue, Aug 6, 2024, at 11:02 AM, Robert Haas wrote:

On Tue, Aug 6, 2024 at 9:57 AM Marcos Pegoraro <marcos@f10.com.br> wrote:

Loved, except that the commit id does not help too much, so I don't think we need it.
I think a numbered link would be better.

I think the commit ID is quite useful. If you're using git, you can do
"git show $COMMITID". If you're using the web, you can go to
https://git.postgresql.org/pg/commitdiff/$COMMITID

Big -1 for removing the commit ID.

Agree. Numbers mean nothing in this context. You are searching for detailed
information about the referred feature. A visual information (commit hash)
provides a context that you will find the source code modifications for that
feature.

Talking about the patch, do we want to rely on an external resource? I suggest
that we use a postgresql.org subdomain. It can point to

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=$COMMIT

or even better use a rewrite rule to define a user-friendly URL (and probably a
mechanism to hide the gitweb URL) like

https://www.postgresql.org/commit/da4017a694d

and the short version that we usually use for the mailing list.

https://postgr.es/c/da4017a694d

--
Euler Taveira
EDB https://www.enterprisedb.com/

#19Andres Freund
andres@anarazel.de
In reply to: Euler Taveira (#18)
Re: Detailed release notes

Hi,

On 2024-08-06 12:02:59 -0300, Euler Taveira wrote:

Talking about the patch, do we want to rely on an external resource? I suggest
that we use a postgresql.org subdomain. It can point to

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=$COMMIT

I wonder if we should make that a configurable base domain? We have a few
other variables in the sgml that can optionally be set.

Greetings,

Andres Freund

#20jian he
jian.universality@gmail.com
In reply to: Andres Freund (#19)
Re: Detailed release notes

On Tue, Aug 6, 2024 at 11:12 PM Andres Freund <andres@anarazel.de> wrote:

Hi,

On 2024-08-06 12:02:59 -0300, Euler Taveira wrote:

Talking about the patch, do we want to rely on an external resource? I suggest
that we use a postgresql.org subdomain. It can point to

https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=$COMMIT

I wonder if we should make that a configurable base domain? We have a few
other variables in the sgml that can optionally be set.

Thanks for the tip.

adding the following line to postgres.sgml saved me.
+<!ENTITY commit_baseurl "https://postgr.es/c/&quot;&gt;

if people think https://postgr.es/c/da4017a694d no good
we have
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=da4017a694d
and
https://git.postgresql.org/cgit/postgresql.git/commit/?id=da4017a694d

now we don't need to repeat the url prefix in release-17.sgml.
it is not configurable though.

Attachments:

v2-0001-pg-17-release-note-add-git-commit-link-reference.patchapplication/x-patch; name=v2-0001-pg-17-release-note-add-git-commit-link-reference.patchDownload+436-184
#21Marcos Pegoraro
marcos@f10.com.br
In reply to: jian he (#20)
#22jian he
jian.universality@gmail.com
In reply to: Marcos Pegoraro (#21)
#23Marcos Pegoraro
marcos@f10.com.br
In reply to: jian he (#22)
#24jian he
jian.universality@gmail.com
In reply to: Marcos Pegoraro (#23)
#25Marcos Pegoraro
marcos@f10.com.br
In reply to: jian he (#24)
#26Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#8)
#27Marcos Pegoraro
marcos@f10.com.br
In reply to: Bruce Momjian (#26)
#28Tom Lane
tgl@sss.pgh.pa.us
In reply to: Marcos Pegoraro (#27)
#29Marcos Pegoraro
marcos@f10.com.br
In reply to: Tom Lane (#28)
#30jian he
jian.universality@gmail.com
In reply to: Bruce Momjian (#26)
#31Bruce Momjian
bruce@momjian.us
In reply to: jian he (#30)
#32Peter Eisentraut
peter_e@gmx.net
In reply to: Tom Lane (#28)
#33Bruce Momjian
bruce@momjian.us
In reply to: Peter Eisentraut (#32)
#34Jelte Fennema-Nio
postgres@jeltef.nl
In reply to: Marcos Pegoraro (#29)
#35jian he
jian.universality@gmail.com
In reply to: Jelte Fennema-Nio (#34)
#36Marcos Pegoraro
marcos@f10.com.br
In reply to: jian he (#35)
#37Bruce Momjian
bruce@momjian.us
In reply to: jian he (#35)
#38Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#37)
#39Bruce Momjian
bruce@momjian.us
In reply to: jian he (#35)
#40Marcos Pegoraro
marcos@f10.com.br
In reply to: Bruce Momjian (#39)
#41Bruce Momjian
bruce@momjian.us
In reply to: Marcos Pegoraro (#40)
#42Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#41)
#43Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#39)
#44Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#43)
#45Marcos Pegoraro
marcos@f10.com.br
In reply to: Bruce Momjian (#44)
#46Bruce Momjian
bruce@momjian.us
In reply to: Marcos Pegoraro (#45)
#47Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Bruce Momjian (#46)
#48Jelte Fennema-Nio
postgres@jeltef.nl
In reply to: Alvaro Herrera (#47)
#49Marcos Pegoraro
marcos@f10.com.br
In reply to: Alvaro Herrera (#47)
#50Bruce Momjian
bruce@momjian.us
In reply to: Marcos Pegoraro (#49)
#51Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#50)
#52Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#51)
#53Peter Eisentraut
peter_e@gmx.net
In reply to: Bruce Momjian (#52)
#54Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Bruce Momjian (#50)
#55Jelte Fennema-Nio
postgres@jeltef.nl
In reply to: Bruce Momjian (#52)
#56Jelte Fennema-Nio
postgres@jeltef.nl
In reply to: Alvaro Herrera (#54)
#57Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Jelte Fennema-Nio (#56)
#58jian he
jian.universality@gmail.com
In reply to: Bruce Momjian (#52)
#59Marcos Pegoraro
marcos@f10.com.br
In reply to: Peter Eisentraut (#53)
#60Jelte Fennema-Nio
postgres@jeltef.nl
In reply to: Marcos Pegoraro (#59)
#61Tom Lane
tgl@sss.pgh.pa.us
In reply to: Jelte Fennema-Nio (#55)
#62Tom Lane
tgl@sss.pgh.pa.us
In reply to: Marcos Pegoraro (#59)
#63Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#61)
#64Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#50)
#65Bruce Momjian
bruce@momjian.us
In reply to: Bruce Momjian (#64)
#66Greg Sabino Mullane
greg@turnstep.com
In reply to: Bruce Momjian (#65)
#67Bruce Momjian
bruce@momjian.us
In reply to: Greg Sabino Mullane (#66)
#68Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#65)
#69Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#68)
#70Jacob Champion
jacob.champion@enterprisedb.com
In reply to: Tom Lane (#68)
#71Bruce Momjian
bruce@momjian.us
In reply to: Jacob Champion (#70)
#72Tom Lane
tgl@sss.pgh.pa.us
In reply to: Bruce Momjian (#71)
#73Bruce Momjian
bruce@momjian.us
In reply to: Tom Lane (#72)
#74Nathan Bossart
nathandbossart@gmail.com
In reply to: Bruce Momjian (#73)