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

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Re: Nasty resource-leak problem in sort code
Date: 1999-05-07 23:01:45
Message-ID: 199905072301.TAA14256@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-05-07 23:03:35 Re: [HACKERS] Re: Nasty resource-leak problem in sort code]
Previous Message Bruce Momjian 1999-05-07 22:59:34 Re: [HACKERS] pg_dump problem?