Re: Postgres as In-Memory Database?

Поиск
Список
Период
Сортировка
Искать
От
Stefan Keller
Тема
Re: Postgres as In-Memory Database?
Дата
Msg-id
CAFcOn2_6yyPYdwUmk1qN4OyJ2atntQHhR5wOx8CAFde7pLJAwQ@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? rob stone <floriparob@gmail.com>
Re: Postgres as In-Memory Database? Edson Richter <edsonrichter@hotmail.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Edson Richter <edsonrichter@hotmail.com>
Re: Postgres as In-Memory Database? Andreas Brandl <ml@3.141592654.de>
Re: Postgres as In-Memory Database? Edson Richter <edsonrichter@hotmail.com>
Re: Postgres as In-Memory Database? Andreas Brandl <ml@3.141592654.de>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Andrew Dunstan <andrew@dunslane.net>
Re: Postgres as In-Memory Database? Jeff Janes <jeff.janes@gmail.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Andrew Sullivan <ajs@crankycanuck.ca>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? bricklen <bricklen@gmail.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Jeff Janes <jeff.janes@gmail.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Jeff Janes <jeff.janes@gmail.com>
Re: Postgres as In-Memory Database? Yeb Havinga <yebhavinga@gmail.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Florian Weimer <fweimer@redhat.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Hadi Moshayedi <hadi@citusdata.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Andrew Sullivan <ajs@crankycanuck.ca>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Andrew Sullivan <ajs@crankycanuck.ca>
Re: Postgres as In-Memory Database? Alban Hertroys <haramrae@gmail.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Michael Paquier <michael.paquier@gmail.com>
Re: Postgres as In-Memory Database? Bruce Momjian <bruce@momjian.us>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Edson Richter <edsonrichter@hotmail.com>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Martijn van Oosterhout <kleptog@svana.org>
Re: Postgres as In-Memory Database? Stefan Keller <sfkeller@gmail.com>
Re: Postgres as In-Memory Database? Gavin Flower <GavinFlower@archidevsys.co.nz>
Re: Postgres as In-Memory Database? Edson Richter <edsonrichter@hotmail.com>
Re: Postgres as In-Memory Database? John R Pierce <pierce@hogranch.com>
Re: Postgres as In-Memory Database? Jeff Janes <jeff.janes@gmail.com>
Re: Postgres as In-Memory Database? Edson Richter <edsonrichter@hotmail.com>
Re: Postgres as In-Memory Database? Jeff Janes <jeff.janes@gmail.com>
Re: Postgres as In-Memory Database? Edson Richter <edsonrichter@hotmail.com>
Re: Postgres as In-Memory Database? Jeff Janes <jeff.janes@gmail.com>
Re: Postgres as In-Memory Database? Jeff Janes <jeff.janes@gmail.com>
Hi Edson, 

On 2013/11/17 Edson Richter <edsonrichter@hotmail.com> you wrote:
> One question: would you please expand your answer and explain how would this adversely affect async replication?

Is this a question or a hint (or both) :-)? Of course almost all non-durable settings [1] will delay replication. 

I think I have to add, that pure speed of a read-mostly database is the main scenario I have in mind. 
Duration, High-availability and Scaling out are perhaps additional or separate scenarios.

So, to come back to my question: I think that Postgres could be even faster by magnitudes, if the assumption of writing to slow secondary storage (like disks) is removed (or replaced).

--Stefan





2013/11/17 Edson Richter <edsonrichter@hotmail.com>
Em 17/11/2013 10:00, Michael Paquier escreveu:

On Sun, Nov 17, 2013 at 8:25 PM, Stefan Keller <sfkeller@gmail.com> wrote:
How can Postgres be used and configured as an In-Memory Database?

Does anybody know of thoughts or presentations about this "NoSQL feature" -
beyond e.g. "Perspectives on NoSQL" from Gavin Roy at PGCon 2010)?

Given, say 128 GB memory or more, and (read-mostly) data that fit's into
this, what are the hints to optimize Postgres (postgresql.conf etc.)?
In this case as you are trading system safety (system will not be
crash-safe) for performance... The following parameters would be
suited:
- Improve performance by reducing the amount of data flushed:
fsync = off
synchronous_commit=off
- Reduce the size of WALs:
full_page_writes = off
- Disable the background writer:
bgwriter_lru_maxpages = 0
Regards,
One question: would you please expand your answer and explain how would this adversely affect async replication?

Edson


--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

В списке pgsql-general по дате отправления
От: Stefan Keller
Дата:
От: Edson Richter
Дата:
FAQ