Re: Terminating a SETOF function call sequence

From: Thomas Hallgren <thhal(at)mailblocks(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Terminating a SETOF function call sequence
Date: 2005-02-17 10:13:22
Message-ID: thhal-0xQbwAvuSxic1xNuidV6HkQ08IIRlp0@mailblocks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Zeugswetter Andreas DAZ SD 2005-02-17 12:05:43 Re: Design notes for BufMgrLock rewrite
Previous Message Magnus Hagander 2005-02-17 10:01:56 Re: win32 performance - fsync question