PostgreSQL In Memory Database

前端 未结 4 1960
小蘑菇
小蘑菇 2021-01-31 05:04

I want to run my PostgreSQL database server from memory. The reason is that on my new server, I have 24 GB of memory, and hardly any of it is used.

I know I can run thi

4条回答
  •  耶瑟儿~
    2021-01-31 05:32

    I'm now using streaming replication which is async. This means my MASTER could be running all in memory, with the separate SLAVE instance using traditional disk.

    A machine restart would involve stopping the SLAVE, copying the postgresql data back into ramdisk and then restarting the MASTER followed by the SLAVE. This would be an interesting possibility which compares well with something like REDIS, but with the advantage of redundancy / hotstandby / backup / sql / rich toolset etc.

提交回复
热议问题