Two weeks ago, I installed ubuntu 18.04 in the windows Linux Subsystem
In there, I installed postgresql 11 using sudo apt-get install postgresql-11
At the time, I could start my postgresql using this command
sudo -u postgres /usr/lib/postgresql/11/bin/pg_ctl -D /etc/postgresql/11/main -l /var/log/postgresql/postgresql-11-main.log start
so far so good.
Two weeks later, I try to start this postgresql engine using the same command and I get this error "FATAL: could not create lock file "/var/run/postgresql/.s.PGSQL.5432.lock": No such file or directory"
I created that folder, gave it chmod 777 to avoid permission problems.
Then I get LOG: database system was interrupted; last known up at 2019-02-16 17:57:02 STD PANIC: could not flush dirty data: Function not implemented LOG: startup process (PID 94) was terminated by signal 6: Aborted
Any idea what might be wrong?