Re: Warning for undefined cursor

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Warning for undefined cursor
Дата
Msg-id 8837.1059400095@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Warning for undefined cursor  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> In backend/commands/portalcmds.c we have
>         /* FIXME: shouldn't this be an ERROR? */

> The effect of this is that you can fetch from an undefined cursor and
> (successfully) get zero rows plus this warning.  I propose that we change
> this to an error.  Does anyone see a reason against this, except possibly
> bugward compatibility?

Backwards compatibility is the reason why it isn't an error now.

-hackers is not really the right forum to find out whether anyone is
depending on that behavior.  I'd suggest you shop the proposal around
on -general or -sql and see if you get any complaints.  (I think there
are a couple other cursor-related warnings that really oughta be errors,
too; might as well finger them all while you are at it.)
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Regression test failure date.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Doubt w.r.t vacuum