Re: truncate partitioned table locking
| От | Sriram Dandapani |
|---|---|
| Тема | Re: truncate partitioned table locking |
| Дата | |
| Msg-id | 6992E470F12A444BB787B5C937B9D4DF04C4CDFB@ca-mail1.cis.local обсуждение исходный текст |
| Ответ на | truncate partitioned table locking ("Sriram Dandapani" <sdandapani@counterpane.com>) |
| Ответы |
Re: truncate partitioned table locking
|
| Список | pgsql-admin |
I have a situation where data is constantly inserted and frequently
queried into a master table(and routed appropriately to the partition
based on a non-overlapping check constraint ). I also need to drop the
child partition (say for yesterday's data..the partitioning is done on a
daily basis).
How can I issue a truncate /drop table on the child without running into
locking issues. Doesn't constraint exclusion prevent access of a child
table based on the check constraint criteria
-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Monday, June 19, 2006 11:27 AM
To: Sriram Dandapani
Cc: pgsql-admin@postgresql.org
Subject: Re: [ADMIN] truncate partitioned table locking
"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 по дате отправления: