Re: [HACKERS] Re: Nasty resource-leak problem in sort code

Bruce Momjian <maillist@candle.pha.pa.us>

From: Bruce Momjian <maillist@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgreSQL.org
Date: 1999-05-07T23:01:45Z
Lists: pgsql-hackers
> This will fix several problems, including (a) failure to release file
> descriptors after an error; (b) failure to delete temp files after
> an error; (c) risk of running out of FDs if multiple sorts are invoked
> concurrently (not sure if this can actually happen in the current state
> of the code).  Centralizing the generation of temp file names in one
> place seems like a good idea too.
> 
> Unless I hear objections, I'll work on this this weekend.

This sounds like a good plan.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026