APR
APR

Reputation: 7

Cannot drop partitioned table in live system?

I am not able to drop old partition tables in a postgresql 8.4.4 live db. My drop statement hangs with a access share lock on those partition tables. Is there any way I can drop those tables?

Upvotes: 0

Views: 1364

Answers (1)

Matthew Wood
Matthew Wood

Reputation: 16417

Have you tried this first?

ALTER TABLE ONLY <child_table> NO INHERIT <parent_table>

Upvotes: 1

Related Questions