Re: plpgsql EXECUTE will not set FOUND

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: plpgsql EXECUTE will not set FOUND
Дата
Msg-id 603c8f070910230716j347f6521i1b40d8a8f86dac9b@mail.gmail.com
обсуждение исходный текст
Ответ на Re: plpgsql EXECUTE will not set FOUND  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: plpgsql EXECUTE will not set FOUND  (Andrew Dunstan <andrew@dunslane.net>)
Re: plpgsql EXECUTE will not set FOUND  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Oct 23, 2009 at 9:52 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Dimitri Fontaine <dfontaine@hi-media.com> writes:
>> I'll go search for more, meantime I'll just add the main goal of this
>> new thread is to have -hackers know there is a real user demand for
>> having EXECUTE set FOUND the same way it sets GET DIAGNOSTIC.
>
> [shrug...]  There is also real user demand for not silently breaking
> code that works now, which is what we risk anytime we change the set
> of statements that can set FOUND.

We've had this discussion before and I'm still unpersuaded by your
position.  I *never* write "IF FOUND THEN" except immediately after
the statement where I expect that variable to be set, and I submit
that anyone who who does write code that relies on certain statements
not setting FOUND is, IMO, depending on a bug.  We don't and shouldn't
have a policy of making future PostgreSQL releases bug-compatible with
previous releases.

...Robert


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Using views for row-level access control is leaky
Следующее
От: David Fetter
Дата:
Сообщение: Re: Using views for row-level access control is leaky