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] DROP TABLE leaks file descriptors |
Date: | 1999-05-10 15:01:02 |
Message-ID: | 199905101501.LAA02414@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Tom, is this resolved?
> I have just finished characterizing a nasty little bug in table
> destruction. Do this:
> create table x (i int4);
> create index xindex on x (i);
> drop table x;
> The backend will now have one more open file than it had before
> (use lsof or similar tool to check). Repeat enough times, and
> the backend crashes for lack of file descriptors.
>
> It appears that the file that is left open is the index relation.
> The index is *not* open at the end of the CREATE INDEX command;
> apparently, DROP TABLE opens the index for some reason, and then
> forgets to close the file descriptor when it destroys the index.
>
> Create more than one index, and they're *all* held open after DROP.
>
> I see the same behavior in both 6.4.2 and 6.5-current.
>
> Does anyone have a good idea where to look for the resource leak?
> I've never looked at table creation/destruction...
>
> regards, tom lane
>
>
--
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
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-05-10 15:08:31 | Re: NEW REFINT.C |
Previous Message | Thomas Lockhart | 1999-05-10 14:53:20 | Re: [HACKERS] parser enhancement request for 6.5 |