Re: truncate partitioned table locking

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Sriram Dandapani" <sdandapani(at)counterpane(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: truncate partitioned table locking
Date: 2006-06-19 18:26:30
Message-ID: 20384.1150741590@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Sriram Dandapani" <sdandapani(at)counterpane(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Sriram Dandapani 2006-06-19 18:41:05 Re: truncate partitioned table locking
Previous Message Sriram Dandapani 2006-06-19 17:11:49 truncate partitioned table locking