I\'m trying to create a new table in postgres but when I do it just hangs after the CREATE TABLE
call.
$ sudo usermod -s /bin/bash postgres
$ sudo s
This is explained in this thread; http://www.postgresql.org/message-id/75218696-61be-4730-89f6-dd6058fa9eda@a28g2000prb.googlegroups.com
According to Tom Lane,
this create operation references auth_user table and PostgreSQL should add triggers to both tables. So if there is a long-running (probably idle) open transaction that's holding AccessShare lock on auth_user Postgres is blocked waiting for that xact to finish and release its lock. Everything else queues up behind the Create.
That PostgreSQL Mail thread is a good read.