diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2011-01-18 23:22:37 +0200 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2011-01-18 23:22:37 +0200 |
commit | 88047e59ba12479ef9adcaf3dee61b48566ce6eb (patch) | |
tree | 81de5b15c8804528371c29d8f696c450283eb22d /src/backend/access/gist/gistproc.c | |
parent | 8995440e387846261d18e728f11adc528ccc5c1b (diff) | |
download | postgresql-88047e59ba12479ef9adcaf3dee61b48566ce6eb.tar.gz postgresql-88047e59ba12479ef9adcaf3dee61b48566ce6eb.zip |
Fix an error when a set-returning function fails halfway through the execution
If the function using yield to return rows fails halfway, the iterator
stays open and subsequent calls to the function will resume reading
from it. The fix is to unref the iterator and set it to NULL if there
has been an error.
Jan UrbaĆski
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions