From: | Greg Stark <stark(at)mit(dot)edu> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | MauMau <maumau307(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: [patch] pg_copy - a command for reliable WAL archiving |
Date: | 2014-08-20 12:58:58 |
Message-ID: | CAM-w4HMdnAEZerVKeSV5YOhN6z1Jk3506DVF+0QzCzY=Gwg5RA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Aug 19, 2014 at 10:42 PM, Alvaro Herrera
<alvherre(at)2ndquadrant(dot)com> wrote:
> Is there a way to create a link to a file which only exists as an open
> file descriptor? If there was, you could create a temp file, open an
> fd, then delete the file. That would remove the issue with files being
> leaked due to failures of various kinds.
Sort of. On recent Linuxen you can create a file with open(O_TMPFILE)
then use linkat(2) to create a link for it only once it's fully
written.
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Stark | 2014-08-20 13:02:44 | Re: [patch] pg_copy - a command for reliable WAL archiving |
Previous Message | Heikki Linnakangas | 2014-08-20 12:36:47 | Re: [PATCH] Incremental backup: add backup profile to base backup |