PostgreSQL In Memory Database

前端 未结 4 1961
小蘑菇
小蘑菇 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:44

    I have to believe that Postgres is written in such a way as to take full advantage of available RAM in the server. As you may have guessed by now, there's no reliable way to do this outside of Postgres.

    Within Postgres, transactions assure that all operations are atomic, so if the power goes down while you are writing to a Postgres database, you will only lose that particular operation, and not the entire database.

提交回复
热议问题