I just installed Postgres on Ubuntu 20 on WSL. Both of the following are stuck forever:
CREATE DATABASE foo
WITH
OWNER = postgres
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;
And:
sudo -u postgres createdb foo
The log doesn't have anything:
postgres@postgres ERROR: canceling statement due to user request
postgres@postgres STATEMENT: CREATE DATABASE foo
WITH
OWNER = postgres
ENCODING = 'UTF8'
CONNECTION LIMIT = -1;
What are some possible causes for this?
Restarting Postgres or restarting the computer doesn't help and there's no locks. I also tried manually killing every lock.