Il 28/07/2016 20:45, Francisco Olarte ha scritto:
On Thu, Jul 28, 2016 at 3:25 PM, Moreno Andreo <moreno.and...@evolu-s.it> wrote:
Obviously ramdisk will be times faster disk, but having a, say, 512 GB
ramdisk will be a little too expensive :-)
Besides defeating the purpose of WAL, if you are going to use non
persistent storage for WAL you could as well use minimal level,
fsync=off and friends.
After Andreas post and thinking about it a while, I went to the decision that it's better not to use RAM but another persistent disk, because there can be an instant between when a WAL is written and it's fsync'ed, and if a failure happens in this instant the amount of data not fsync'ed is lost. Am I right?

Aside of this, I'm having 350 DBs that sum up a bit more than 1 TB, and plan
to use wal_level=archive because I plan to have a backup server with barman.
Is this why you plan using RAM for WAL ( assuming fast copies to the
archive and relying on it for recovery ) ?
Yes, but having to deal with the risk of having loss of data, I think I'll go on a bigger persistent disk, have bigger checkpoint intervals and end up having a longer rescue time, but the main thing is *no data loss*

Francisco Olarte.


Thanks

Moreno.




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

Reply via email to