Postgresql warning: "could not flush dirty data: Function not implemented"

Someone picture Someone · Aug 1, 2017 · Viewed 11.6k times · Source

I'm trying to create a new database on postgres, by running command:

CREATE DATABASE dbname;

and I face the error:

WARNING: could not flush dirty data: Function not implemented

many times! and finally I get the message

CREATE DATABASE

Can anyone help me to undrestand and solve this error please?

Answer

Oni picture Oni · Oct 29, 2019

I solved the problem by updating postgresql.conf file. Add the following codes at the end of /etc/postgresql/11/main/postgresql.conf.

fsync = off
data_sync_retry = true

(Corrected underscores)