Re: PostgreSQL Portable

From: Craig Ringer <craig(at)2ndquadrant(dot)com>
To: George Neuner <gneuner2(at)comcast(dot)net>, pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL Portable
Date: 2014-09-12 03:33:55
Message-ID: 541269A3.3080107@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vinayak 2014-09-12 05:00:41 Re: CREATE SYNONYM in PostgreSQL
Previous Message Craig Ringer 2014-09-12 03:32:21 Re: PostgreSQL Portable