Re: What limits Postgres performance when the whole database lives in cache? - Mailing list pgsql-general

From Jim Nasby
Subject Re: What limits Postgres performance when the whole database lives in cache?
Date
Msg-id 66ac7d49-92bd-8f52-8d7d-7c095fe7251a@BlueTreble.com
Whole thread Raw
In response to Re: What limits Postgres performance when the whole database lives in cache?  ("dandl" <david@andl.org>)
Responses Re: What limits Postgres performance when the whole database lives in cache?  ("dandl" <david@andl.org>)
List pgsql-general
On 9/2/16 7:39 PM, dandl wrote:
> I don't think this is quite true. The mechanism he proposes has a small window in which committed transactions can be
lost,and this should be addressed by replication or by a small amount of UPC (a few seconds). 

Except that's the entire point where all those kind of solutions
*completely* depart ways from Postgres. Postgres is designed to *lose
absolutely no data after a COMMIT*, potentially including requiring that
data to be synchronized out to a second server. That is worlds apart
from "we might lose a few seconds", and there's a lot of stuff Postgres
has to worry about to accomplish that. Some of that stuff can be
short-circuited if you don't care (that's what SET synchronous_commit =
off does), but there's always going to be some amount of extra work to
support synchronous_commit = local or remote_*.

Presumably there's more improvements that could be made to Postgres in
this area, but if you really don't care about losing seconds worth of
data and you need absolutely the best performance possible then maybe
Postgres isn't the right choice for you.

"All databases suck, each one just sucks in a different way." - Me,
circa 1999.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
855-TREBLE2 (855-873-2532)   mobile: 512-569-9461


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: How to assemble all fields of (any) view into a string?
Next
From: Jim Nasby
Date:
Subject: Re: 2.5TB Migration from SATA to SSD disks - PostgreSQL 9.2