agora inbox for pgsql-committers@postgresql.org
help / color / mirror / Atom feedpgfouine - www: fixed log_line_prefix for user/database filtering
6+ messages / 2 participants
[nested] [flat]
* pgfouine - www: fixed log_line_prefix for user/database filtering
@ 2009-04-18 22:47 User Gsmet <gsmet@pgfoundry.org>
0 siblings, 0 replies; 6+ messages in thread
From: gsmet@pgfoundry.org @ 2009-04-18 22:47 UTC (permalink / raw)
To: pgsql-committers
Log Message:
-----------
fixed log_line_prefix for user/database filtering
Modified Files:
--------------
www:
tutorial.html (r1.11 -> r1.12)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgfouine/www/tutorial.html.diff?r1=1.11&r2=1.12)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs
@ 2026-07-20 03:18 Richard Guo <rguo@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Richard Guo @ 2026-07-20 03:18 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Skip unnecessary get_relids_in_jointree() when there are no PHVs
Commit 1df9e8d96 made remove_useless_result_rtes() compute the set of
baserels in the jointree, to pass down to the find_dependent_phvs()
checks. But those checks are no-ops when the query contains no PHVs,
since find_dependent_phvs() and find_dependent_phvs_in_jointree() both
return early in that case. So we can avoid the
get_relids_in_jointree() scan altogether when root->glob->lastPHId is
zero, leaving baserels as NULL.
Author: Richard Guo <guofenglinux@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAMbWs49H275KzgZr3Cd1Hy+6Lmwp35bZ+5PrVc62k3HDLj6hNQ@mail.gmail.com
Backpatch-through: 16
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/0da71d90d62308d12a789aad8a2a09223976fe88
Modified Files
--------------
src/backend/optimizer/prep/prepjointree.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs
@ 2026-07-20 03:18 Richard Guo <rguo@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Richard Guo @ 2026-07-20 03:18 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Skip unnecessary get_relids_in_jointree() when there are no PHVs
Commit 1df9e8d96 made remove_useless_result_rtes() compute the set of
baserels in the jointree, to pass down to the find_dependent_phvs()
checks. But those checks are no-ops when the query contains no PHVs,
since find_dependent_phvs() and find_dependent_phvs_in_jointree() both
return early in that case. So we can avoid the
get_relids_in_jointree() scan altogether when root->glob->lastPHId is
zero, leaving baserels as NULL.
Author: Richard Guo <guofenglinux@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAMbWs49H275KzgZr3Cd1Hy+6Lmwp35bZ+5PrVc62k3HDLj6hNQ@mail.gmail.com
Backpatch-through: 16
Branch
------
REL_19_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/72457f1df803bba077b338d5ed3fb8418e69967d
Modified Files
--------------
src/backend/optimizer/prep/prepjointree.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs
@ 2026-07-20 03:18 Richard Guo <rguo@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Richard Guo @ 2026-07-20 03:18 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Skip unnecessary get_relids_in_jointree() when there are no PHVs
Commit 1df9e8d96 made remove_useless_result_rtes() compute the set of
baserels in the jointree, to pass down to the find_dependent_phvs()
checks. But those checks are no-ops when the query contains no PHVs,
since find_dependent_phvs() and find_dependent_phvs_in_jointree() both
return early in that case. So we can avoid the
get_relids_in_jointree() scan altogether when root->glob->lastPHId is
zero, leaving baserels as NULL.
Author: Richard Guo <guofenglinux@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAMbWs49H275KzgZr3Cd1Hy+6Lmwp35bZ+5PrVc62k3HDLj6hNQ@mail.gmail.com
Backpatch-through: 16
Branch
------
REL_18_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/9e40d07e140bc21186a8bdd1cb8b35d4d5f65979
Modified Files
--------------
src/backend/optimizer/prep/prepjointree.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs
@ 2026-07-20 03:18 Richard Guo <rguo@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Richard Guo @ 2026-07-20 03:18 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Skip unnecessary get_relids_in_jointree() when there are no PHVs
Commit 1df9e8d96 made remove_useless_result_rtes() compute the set of
baserels in the jointree, to pass down to the find_dependent_phvs()
checks. But those checks are no-ops when the query contains no PHVs,
since find_dependent_phvs() and find_dependent_phvs_in_jointree() both
return early in that case. So we can avoid the
get_relids_in_jointree() scan altogether when root->glob->lastPHId is
zero, leaving baserels as NULL.
Author: Richard Guo <guofenglinux@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAMbWs49H275KzgZr3Cd1Hy+6Lmwp35bZ+5PrVc62k3HDLj6hNQ@mail.gmail.com
Backpatch-through: 16
Branch
------
REL_17_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/b308eb3661bf41fa97e27909bf008871f438894c
Modified Files
--------------
src/backend/optimizer/prep/prepjointree.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
^ permalink raw reply [nested|flat] 6+ messages in thread
* pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs
@ 2026-07-20 03:18 Richard Guo <rguo@postgresql.org>
0 siblings, 0 replies; 6+ messages in thread
From: Richard Guo @ 2026-07-20 03:18 UTC (permalink / raw)
To: pgsql-committers@lists.postgresql.org
Skip unnecessary get_relids_in_jointree() when there are no PHVs
Commit 1df9e8d96 made remove_useless_result_rtes() compute the set of
baserels in the jointree, to pass down to the find_dependent_phvs()
checks. But those checks are no-ops when the query contains no PHVs,
since find_dependent_phvs() and find_dependent_phvs_in_jointree() both
return early in that case. So we can avoid the
get_relids_in_jointree() scan altogether when root->glob->lastPHId is
zero, leaving baserels as NULL.
Author: Richard Guo <guofenglinux@gmail.com>
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/CAMbWs49H275KzgZr3Cd1Hy+6Lmwp35bZ+5PrVc62k3HDLj6hNQ@mail.gmail.com
Backpatch-through: 16
Branch
------
REL_16_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/d610d8e8be5678f828e07aa99c16c1dcc2e4ef63
Modified Files
--------------
src/backend/optimizer/prep/prepjointree.c | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-07-20 03:18 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-04-18 22:47 pgfouine - www: fixed log_line_prefix for user/database filtering User Gsmet <gsmet@pgfoundry.org>
2026-07-20 03:18 pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs Richard Guo <rguo@postgresql.org>
2026-07-20 03:18 pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs Richard Guo <rguo@postgresql.org>
2026-07-20 03:18 pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs Richard Guo <rguo@postgresql.org>
2026-07-20 03:18 pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs Richard Guo <rguo@postgresql.org>
2026-07-20 03:18 pgsql: Skip unnecessary get_relids_in_jointree() when there are no PHVs Richard Guo <rguo@postgresql.org>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox