Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 487
Someone Avatar asked Aug 01 '17 12:08

Someone


2 Answers

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)

like image 167
Oni Avatar answered Oct 27 '22 00:10

Oni


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

like image 2
iklinac Avatar answered Oct 27 '22 00:10

iklinac