Re: postgres external table - Mailing list pgsql-general

From Greg Stark
Subject Re: postgres external table
Date
Msg-id 407d949e1001190308i4f66d3aegd7fe25ff696bfd46@mail.gmail.com
Whole thread Raw
In response to Re: postgres external table  (Craig Ringer <craig@postnewspapers.com.au>)
Responses Re: postgres external table  (Jayadevan M <Jayadevan.Maymala@ibsplc.com>)
List pgsql-general
On Tue, Jan 19, 2010 at 4:41 AM, Craig Ringer
<craig@postnewspapers.com.au> wrote:
> How can that work without a transactional file system, though? If the
> external process writes to the file while you're half-way through reading
> it, what's the database to do? In general, how do external tables cope with
> the fact that they're on non-transactional storage?

Well if you use mv to replace the old file with the new one then it
should be safe. Unless your query involves opening the table multiple
times or your transactions are more complex than a single query...


--
greg

pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: Index on immutable function call
Next
From: Jayadevan M
Date:
Subject: Re: postgres external table