Re: PostgreSQL Portable - Mailing list pgsql-general

From Craig Ringer
Subject Re: PostgreSQL Portable
Date
Msg-id 541269A3.3080107@2ndquadrant.com
Whole thread Raw
In response to Re: PostgreSQL Portable  (George Neuner <gneuner2@comcast.net>)
List pgsql-general
On 09/11/2014 03:16 PM, George Neuner wrote:
>
> If the driver permits it and you [or your users] can be trusted to
> perform a safe unmount via the OS *before* disconnecting the device,
> then you can enable write caching for the device using the device
> manager.  [Note that the device must be connected for it to be visible
> in the device manager.]

It shouldn't be living dangerously, actually.

While I haven't tested it myself, writeback caching on the external
drive should be safe so long as it continues to honour explicit disk
flush requests.

That's why we have the WAL and do periodic checkpoints. If you yank the
drive mid-write you'll lose uncommitted transactions and might have
slower startup next time around, but it should otherwise not be overly
problematic.

--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


pgsql-general by date:

Previous
From: Craig Ringer
Date:
Subject: Re: PostgreSQL Portable
Next
From: Vinayak
Date:
Subject: Re: CREATE SYNONYM in PostgreSQL