Re: truncate partitioned table locking

Поиск
Список
Период
Сортировка
Искать
От
Aaron Bono
Тема
Re: truncate partitioned table locking
Дата
Msg-id
bf05e51c0606191302h25a967denf90d232f83ccc30f@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Re: truncate partitioned table locking "Benjamin Krajmalnik" <kraj@illumen.com>
I am curious, why would a query on a parent table, A, put a lock on a child table, B?  If the query doesn't touch B or any of its children, why would PostgreSQL care what happens to the child table during its query?

-Aaron

On 6/19/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
"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 по дате отправления
От: Sriram Dandapani
Дата:
От: Tom Lane
Дата:
FAQ