pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Remove dead foreign key optimization code
2+ messages / 2 participants
[nested] [flat]

* pgsql: Remove dead foreign key optimization code
@ 2018-11-10 15:21  Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Peter Eisentraut @ 2018-11-10 15:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Remove dead foreign key optimization code

The ri_KeysEqual() calls in the foreign-key trigger functions to
optimize away some updates are useless because since
adfeef55cbcc5dc72a772777f88c1be05a70dfee those triggers are not enqueued
at all.  (It's also not useful to keep these checks as some kind of
backstop, since it's also semantically correct to just run the full
check even with equal keys.)

Reviewed-by: Daniel Gustafsson <daniel@yesql.se>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/34479d9a36a280afe1387146871d4c1528cf2cbf

Modified Files
--------------
src/backend/utils/adt/ri_triggers.c | 51 -------------------------------------
1 file changed, 51 deletions(-)



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

* Re: pgsql: Remove dead foreign key optimization code
@ 2018-11-12 01:57  Alvaro Herrera <alvherre@2ndquadrant.com>
  parent: Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Alvaro Herrera @ 2018-11-12 01:57 UTC (permalink / raw)
  To: Peter Eisentraut <peter_e@gmx.net>; +Cc: pgsql-committers@lists.postgresql.org

On 2018-Nov-10, Peter Eisentraut wrote:

> Remove dead foreign key optimization code
> 
> The ri_KeysEqual() calls in the foreign-key trigger functions to
> optimize away some updates are useless because since
> adfeef55cbcc5dc72a772777f88c1be05a70dfee those triggers are not enqueued
> at all.  (It's also not useful to keep these checks as some kind of
> backstop, since it's also semantically correct to just run the full
> check even with equal keys.)
> 
> Reviewed-by: Daniel Gustafsson <daniel@yesql.se>

Please don't omit "Discussion:" tags from commit messages.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




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


end of thread, other threads:[~2018-11-12 01:57 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-10 15:21 pgsql: Remove dead foreign key optimization code Peter Eisentraut <peter_e@gmx.net>
2018-11-12 01:57 ` Alvaro Herrera <alvherre@2ndquadrant.com>

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