Re: trigger SPI_exec count argument

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Michael Nacos <m(dot)nacos(at)gmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: trigger SPI_exec count argument
Date: 2009-09-02 16:54:06
Message-ID: 6070.1251910446@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Nacos <m(dot)nacos(at)gmail(dot)com> writes:
> The interesting thing is SQL_exec(sql,1) resulted in a different
> execution plan while the stray FROM was still in place.

Well, the stray FROM resulted in a useless cross-join, which would
have generated a lot of extra no-op row updates. I think what the
limit was doing for you was stopping the UPDATE before it had performed
the extra updates.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2009-09-02 17:13:28 Re: Adding \ev view editor?
Previous Message Andrew Dunstan 2009-09-02 16:35:13 Re: Adding \ev view editor?