Re: Terminating a SETOF function call sequence - Mailing list pgsql-hackers

From Thomas Hallgren
Subject Re: Terminating a SETOF function call sequence
Date
Msg-id thhal-0xQbwAvuSxic1xNuidV6HkQ08IIRlp0@mailblocks.com
Whole thread Raw
In response to Re: Terminating a SETOF function call sequence  ("John Hansen" <john@geeknet.com.au>)
List pgsql-hackers
John,

>You are supposed to free resources used to produce the rows before srf_return_next();
>  
>
I can (and must) free up the resources used to produce one single row at
that time yes, but I might have resources that is common to all rows.
Let's assume that I have a file open for instance. I read one row at a
time from that file. I need to know when to close the file.

Regards,
Thomas Hallgren





pgsql-hackers by date:

Previous
From: "Magnus Hagander"
Date:
Subject: Re: win32 performance - fsync question
Next
From: "Zeugswetter Andreas DAZ SD"
Date:
Subject: Re: Design notes for BufMgrLock rewrite