Re: delta relations in AFTER triggers

From: Adam Brusselback <adambrusselback(at)gmail(dot)com>
To: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: delta relations in AFTER triggers
Date: 2016-11-02 16:41:00
Message-ID: CAMjNa7ePipxKWZJosbVPQFff+jZEx4MJ4MjjGPTucKGZQ3=ASg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>
> The delete of about one million rows from a "parent" table with no
> matching rows in the "child" table, and no index on referencing
> column in the child table, took 24:17.969 using current triggers
> and 00:03.262 using the set-based triggers. Yes, that reduces
> current run time for that case by 99.78%

That is really incredible. Gets rid of the need for an index on
referencing columns for a ton of use cases.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jesper Pedersen 2016-11-02 16:43:42 Re: pageinspect: Hash index support
Previous Message Tom Lane 2016-11-02 16:39:25 Substantial bloat in postgres_fdw regression test runtime