Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group