Re: truncate partitioned table locking - Mailing list pgsql-admin

From Tom Lane
Subject Re: truncate partitioned table locking
Date
Msg-id 20384.1150741590@sss.pgh.pa.us
Whole thread Raw
In response to truncate partitioned table locking  ("Sriram Dandapani" <sdandapani@counterpane.com>)
Responses Re: truncate partitioned table locking  ("Aaron Bono" <postgresql@aranya.com>)
List pgsql-admin
"Sriram Dandapani" <sdandapani@counterpane.com> writes:
> I have master table A, inherited by Table B and Table C

> Does the truncation of a child table take a lock on the master table ?

No, but it certainly locks the child table ... and queries on A are
going to try to scan all three tables.

            regards, tom lane

pgsql-admin by date:

Previous
From: "Sriram Dandapani"
Date:
Subject: truncate partitioned table locking
Next
From: "Sriram Dandapani"
Date:
Subject: Re: truncate partitioned table locking