From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | gjb(at)acm(dot)org (Greg Black) |
Cc: | hackers(at)postgreSQL(dot)org (PostgreSQL-development) |
Subject: | Re: PostgreSQL under BSD/OS |
Date: | 1998-08-25 17:28:51 |
Message-ID: | 199808251728.NAA00986@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> Thanks to some answers you gave me some time back, I've been doing some
> testing of PostgreSQL under BSD/OS-3.1 in preparation for a project that
> I'm working on. So far, it all seems to be working fine, apart from one
> (relatively minor) bug in psql -- it fails to close files it reads for a
> COPY command, meaning it can keep a multi-megabyte file open for days.
> The workaround is to do a new connect to the same database after the
> COPY, at which point the data file gets closed. Maybe you can get that
> fixed in a future release.
This is the first I have heard of this. The file commands/copy.c does
use a file descriptor cache, but that is really just used for allowing
more file opens that the OS permits. Actual opens and closes are
happending.
I assume the files you are talking about are the database table files.
Yes, they stay open because the backend may want to use them someday.
Is that a problem?
--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1998-08-25 17:31:31 | Re: [HACKERS] Open 6.4 items |
Previous Message | Thomas G. Lockhart | 1998-08-25 15:32:43 | Re: [HACKERS] Open 6.4 items |