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)
Список
Дерево обсуждения
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
-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 по дате отправления