Re: trigger SPI_exec count argument - Mailing list pgsql-hackers

From Tom Lane
Subject Re: trigger SPI_exec count argument
Date
Msg-id 6070.1251910446@sss.pgh.pa.us
Whole thread Raw
In response to Re: trigger SPI_exec count argument  (Michael Nacos <m.nacos@gmail.com>)
List pgsql-hackers
Michael Nacos <m.nacos@gmail.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


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Adding \ev view editor?
Next
From: Tom Lane
Date:
Subject: Re: Adding \ev view editor?