Postgresql warning: "could not flush dirty data: Function not implemented"
Asked Answered
P

4

11

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?

Palpitant answered 1/8, 2017 at 12:28 Comment(3)
Which specific version of PostgreSQL are you using? Which OS?Ticino
pgsql 9.6.3 on WindowsBashLinux (which has linux 16.04 on it)Palpitant
Apparently, you're not the only one with this issue: install postgresql issue #61 and Running Docker containers on Windows, natively, using rkt (WSL aka Bash on Windows). It seems to be some kind of "missing feature"Ticino
P
16

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)

Paddy answered 29/10, 2019 at 22:7 Comment(1)
You may get the same error after fixing issue and starting app again. Restart the postgresql service again at the moment. sudo service postgresql restartPaddy
C
2

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

Comedo answered 1/8, 2017 at 13:30 Comment(0)
C
1

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.

Coupe answered 2/11, 2022 at 20:16 Comment(0)
E
0

Restarting the postgres sql did the trick for me

Use the following command

sudo service postgresql restart
Empress answered 25/11, 2021 at 17:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.