Re: Postgres as In-Memory Database?
От
Andreas Brandl
Тема
Re: Postgres as In-Memory Database?
Дата
Msg-id
6919e28a-61d8-40fa-80c6-09703c19d8f8@store1.zcs.ext.wpsrv.net
Ответ на
Postgres as In-Memory Database? (Stefan Keller)
Список
Дерево обсуждения
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 Stefan, > How can Postgres be used and configured as an In-Memory Database? > we've put the data directory on our buildserver directly on a ramdisk (e.g. /dev/shm) to improve build times. Obviously you then don't care too much about durability here, so one can switch off all related settings (as has already been pointed out). The only thing to do on a server reboot would be to re-create a fresh data directory on the ramdisk. So if you're able to start from scratch relatively cheap (i.e. on a server reboot), don't care about durability/crash safety at all and your database fits into ram that solution is easy to handle. I've also tried having only a separate tablespace on ramdisk but abandoned the idea because postgres seemed too surprised to see the tablespace empty after a reboot (all tables gone). Overall the above solution works and improves our build times but I think there are better ways to have in-memory/application caches than using a postgres. What is your use-case? Regards Andreas
В списке pgsql-general по дате отправления