Re: ereport(ERROR) and files - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: ereport(ERROR) and files
Date
Msg-id 200508120328.j7C3SJB17079@candle.pha.pa.us
Whole thread Raw
In response to ereport(ERROR) and files  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-hackers
Bruce Momjian wrote:
> Do we automatically close files opened with AllocateFile() on
> ereport(ERROR)?

I found they are closed, fd.c comment says:
* fd.c will automatically close all files opened with AllocateFile at* transaction commit or abort; this prevents FD
leakageif a routine* that calls AllocateFile is terminated prematurely by ereport(ERROR).
 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: ereport(ERROR) and files
Next
From: Tatsuo Ishii
Date:
Subject: Re: obtaining row locking information