When trying to run a simple create statement in a new schema within postgres (healthcare), the query never finishes. My question is why?
CREATE TABLE healthcare.admission_source(
admission_source_id INTEGER,
admission_source INTEGER,
description varchar(255)
);
Verified the schema exists with ownership & rights:
I have ran this same query before, and it runs endlessly. I canceled it at several hours last time, but wanted to show it takes a long time to run a CREATE TABLE statement:
For comparison, the query runs for 42 msec on the public schema of this database. The table is created correctly and the query finishes quickly, so leaves me thinking that the healthcare schema is the issue. Would love all thoughts and assistance



autocommit=off? Could be theCREATEhas never been committed.\echo :AUTOCOMMIT;and it returnedon;healthcare.admission_sourcethat is holding a lock and preventing theCREATE TABLE.