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

17.7k Views Asked by At

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?

4

There are 4 best solutions below

0
iklinac On

You need Windows 15025 build for it to function properly, as underlying ubuntu in windows was still in beta before. Even after this build there are still issues remaining.

If update is not yet available to you you can still install Postgres directly on Windows

1
Oni On

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)

0
devops soft9 On

Restarting the postgres sql did the trick for me

Use the following command

sudo service postgresql restart
0
Laurenz Albe On

The reason for this error is that the Windows emulation of Linux does not implement all system calls required to make a database work reliably. Originally PostgreSQL crashed when running there, but this has been downgraded to a warning.

Window's emulation of Linux is good to play with, but don't ever use it for serious work.