pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix incorrect comment for get_agg_clause_costs 2+ messages / 1 participants [nested] [flat]
* pgsql: Fix incorrect comment for get_agg_clause_costs @ 2021-07-26 02:55 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: David Rowley @ 2021-07-26 02:55 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect comment for get_agg_clause_costs Adjust the header comment in get_agg_clause_costs so that it matches what the function currently does. No recursive searching has been done ever since 0a2bc5d61. It also does not determine the aggtranstype like the comment claimed. That's all done in preprocess_aggref(). preprocess_aggref also now determines the numOrderedAggs, so remove the mention that get_agg_clause_costs also calculates "counts". Normally, since this is just an adjustment of a comment it might not be worth back-patching, but since this code is new to PG14 and that version is still in beta, then it seems worth having the comments match. Discussion: https://postgr.es/m/CAApHDvrrGrTJFPELrjx0CnDtz9B7Jy2XYW3Z2BKifAWLSaJYwQ@mail.gmail.com Backpatch-though: 14 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/2b58f894e56a1944e824e19c92337d6bf24d9c41 Modified Files -------------- src/backend/optimizer/prep/prepagg.c | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
* pgsql: Fix incorrect comment for get_agg_clause_costs @ 2021-07-26 02:56 David Rowley <drowley@postgresql.org> 0 siblings, 0 replies; 2+ messages in thread From: David Rowley @ 2021-07-26 02:56 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix incorrect comment for get_agg_clause_costs Adjust the header comment in get_agg_clause_costs so that it matches what the function currently does. No recursive searching has been done ever since 0a2bc5d61. It also does not determine the aggtranstype like the comment claimed. That's all done in preprocess_aggref(). preprocess_aggref also now determines the numOrderedAggs, so remove the mention that get_agg_clause_costs also calculates "counts". Normally, since this is just an adjustment of a comment it might not be worth back-patching, but since this code is new to PG14 and that version is still in beta, then it seems worth having the comments match. Discussion: https://postgr.es/m/CAApHDvrrGrTJFPELrjx0CnDtz9B7Jy2XYW3Z2BKifAWLSaJYwQ@mail.gmail.com Backpatch-though: 14 Branch ------ REL_14_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/dece64a941457686184654968ac1ded58b7d4ee8 Modified Files -------------- src/backend/optimizer/prep/prepagg.c | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-07-26 02:56 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2021-07-26 02:55 pgsql: Fix incorrect comment for get_agg_clause_costs David Rowley <drowley@postgresql.org> 2021-07-26 02:56 pgsql: Fix incorrect comment for get_agg_clause_costs David Rowley <drowley@postgresql.org>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox