pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many
4+ messages / 1 participants
[nested] [flat]

* pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many
@ 2019-02-21 01:53 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2019-02-21 01:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Speed up match_eclasses_to_foreign_key_col() when there are many ECs.

Check ec_relids before bothering to iterate through the EC members.
On a perhaps extreme, but still real-world, query in which
match_eclasses_to_foreign_key_col() accounts for the bulk of the
planner's runtime, this saves nearly 40% of the runtime.  It's a bit
of a stopgap fix, but it's simple enough to be back-patched to 9.6
where this code came in; so let's do that.

David Rowley

Discussion: https://postgr.es/m/6970.1545327857@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fa86238f1eac5b1bfb3887d2deb138f53da82c9b

Modified Files
--------------
src/backend/optimizer/path/equivclass.c | 8 ++++++++
1 file changed, 8 insertions(+)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many
@ 2019-02-21 01:53 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2019-02-21 01:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Speed up match_eclasses_to_foreign_key_col() when there are many ECs.

Check ec_relids before bothering to iterate through the EC members.
On a perhaps extreme, but still real-world, query in which
match_eclasses_to_foreign_key_col() accounts for the bulk of the
planner's runtime, this saves nearly 40% of the runtime.  It's a bit
of a stopgap fix, but it's simple enough to be back-patched to 9.6
where this code came in; so let's do that.

David Rowley

Discussion: https://postgr.es/m/6970.1545327857@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e22bfe94e4dfc9abedf17026c3081bca9877163d

Modified Files
--------------
src/backend/optimizer/path/equivclass.c | 8 ++++++++
1 file changed, 8 insertions(+)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many
@ 2019-02-21 01:53 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2019-02-21 01:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Speed up match_eclasses_to_foreign_key_col() when there are many ECs.

Check ec_relids before bothering to iterate through the EC members.
On a perhaps extreme, but still real-world, query in which
match_eclasses_to_foreign_key_col() accounts for the bulk of the
planner's runtime, this saves nearly 40% of the runtime.  It's a bit
of a stopgap fix, but it's simple enough to be back-patched to 9.6
where this code came in; so let's do that.

David Rowley

Discussion: https://postgr.es/m/6970.1545327857@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/affee8b14c68d8ac8815406be39a68403c4a815e

Modified Files
--------------
src/backend/optimizer/path/equivclass.c | 8 ++++++++
1 file changed, 8 insertions(+)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many
@ 2019-02-21 01:53 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: Tom Lane @ 2019-02-21 01:53 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Speed up match_eclasses_to_foreign_key_col() when there are many ECs.

Check ec_relids before bothering to iterate through the EC members.
On a perhaps extreme, but still real-world, query in which
match_eclasses_to_foreign_key_col() accounts for the bulk of the
planner's runtime, this saves nearly 40% of the runtime.  It's a bit
of a stopgap fix, but it's simple enough to be back-patched to 9.6
where this code came in; so let's do that.

David Rowley

Discussion: https://postgr.es/m/6970.1545327857@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/09c9dd39efeae4820b2f6343a5caf4d527bf1603

Modified Files
--------------
src/backend/optimizer/path/equivclass.c | 8 ++++++++
1 file changed, 8 insertions(+)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2019-02-21 01:53 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-02-21 01:53 pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many Tom Lane <tgl@sss.pgh.pa.us>
2019-02-21 01:53 pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many Tom Lane <tgl@sss.pgh.pa.us>
2019-02-21 01:53 pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many Tom Lane <tgl@sss.pgh.pa.us>
2019-02-21 01:53 pgsql: Speed up match_eclasses_to_foreign_key_col() when there are many Tom Lane <tgl@sss.pgh.pa.us>

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