FOUND with EXECUTE - Mailing list pgsql-hackers

From Brendan Jurd
Subject FOUND with EXECUTE
Date
Msg-id 37ed240d0710151824s25e33069w817c1642c9234fa@mail.gmail.com
Whole thread Raw
Responses Re: FOUND with EXECUTE
List pgsql-hackers
Hi hackers,

Is there a technical reason we do not set the value of FOUND when
executing a dynamic statement in plpgsql?

It seems surprising that FOUND is set by SELECT, PERFORM, UPDATE,
INSERT, DELETE, etc, *except* when those statements are invoked by
EXECUTE.

I had a brief look at the code in pl/plpgsql/src/pl_exec.c, and
couldn't see any screamingly obvious reasons not to set FOUND in
exec_stmt_dynexecute in much the same way we do in exec_stmt_execsql.

Thanks for your time,
BJ


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: UTF8 on Debian
Next
From: Tom Lane
Date:
Subject: Re: 8.3 full text search docs