Re: consistency check on SPI tuple count failed
От
Tom Lane
Тема
Re: consistency check on SPI tuple count failed
Дата
Msg-id
29030.1060369513@sss.pgh.pa.us
Ответ на
Re: consistency check on SPI tuple count failed (Stephan Szabo)
Список
Дерево обсуждения
Re: consistency check on SPI tuple count failed "Mendola Gaetano" <mendola@bigfoot.com>
Stephan Szabo writes: > On Fri, 8 Aug 2003, Tom Lane wrote: >> I have also just traced through _SPI_cursor_operation() in spi.c, >> watched PortalRunFetch return 2, and then watched _SPI_checktuples read >> zero from _SPI_current->processed. How the heck could that happen? >> Compiler bug, or am I just crazy? > Not sure, but I got the same thing. When I changed it to put the > result in a temporary int variable and then put it in it started > working for me (returning 0), reverting to the original made it fail > again. I'm going to try -O0 and see what happens there. Oooohhhh ... SPI_stack can move around as functions are entered/exited. Wonder why we've not seen that kind of failure happen before? Someone (doubtless me) must have changed the coding of this routine since 7.3. regards, tom lane
В списке pgsql-hackers по дате отправления