Re: SQL/MED estimated time of arrival? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SQL/MED estimated time of arrival?
Date
Msg-id 25108.1289230282@sss.pgh.pa.us
Whole thread Raw
In response to Re: SQL/MED estimated time of arrival?  (Shigeru HANADA <hanada@metrosystems.co.jp>)
Responses Re: SQL/MED estimated time of arrival?
List pgsql-hackers
Shigeru HANADA <hanada@metrosystems.co.jp> writes:
> How about removing them, ConnectServer and FreeFSConnection, from
> FdwRoutine and leaving the responsibility of resource management to
> each FDW?  Each FDW would have to use mechanism such as Virtual File
> and ResourceOwner to manage resources properly, though.

For the most part, we expect that ResourceOwners only do something
useful during error cleanup.  That is, you *should* have a
close-connection type of function that is expected to be called during
normal query shutdown.  The ResourceOwner hooks will operate to
compensate for the lack of this call in an error recovery case.
The reason for doing things that way is so that we can check for
unintentional resource leakage in the non-error code paths.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Stefan Kaltenbrunner
Date:
Subject: Re: Should we use make -k on the buildfarm?
Next
From: Hitoshi Harada
Date:
Subject: Re: SQL2011 and writeable CTE