Re: truncate partitioned table locking

Поиск
Список
Период
Сортировка
От Aaron Bono
Тема Re: truncate partitioned table locking
Дата
Msg-id bf05e51c0606191302h25a967denf90d232f83ccc30f@mail.gmail.com
обсуждение исходный текст
Ответ на Re: truncate partitioned table locking  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
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"
Дата:
Сообщение: Re: truncate partitioned table locking
Следующее
От: Tom Lane
Дата:
Сообщение: Re: truncate partitioned table locking