RE: Parallel Inserts in CREATE TABLE AS

Поиск
Список
Период
Сортировка
От Hou, Zhijie
Тема RE: Parallel Inserts in CREATE TABLE AS
Дата
Msg-id d48b632d3dae4b4d8d2162077427d8ef@G08CNEXMBPEKD05.g08.fujitsu.local
обсуждение исходный текст
Ответ на Re: Parallel Inserts in CREATE TABLE AS  (Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>)
Ответы Re: Parallel Inserts in CREATE TABLE AS  (Dilip Kumar <dilipbalaut@gmail.com>)
Список pgsql-hackers
Hi

+        allow = ps && IsA(ps, GatherState) && !ps->ps_ProjInfo &&
+                plannedstmt->parallelModeNeeded &&
+                plannedstmt->planTree &&
+                IsA(plannedstmt->planTree, Gather) &&
+                plannedstmt->planTree->lefttree &&
+                plannedstmt->planTree->lefttree->parallel_aware &&
+                plannedstmt->planTree->lefttree->parallel_safe;

I noticed it check both IsA(ps, GatherState) and IsA(plannedstmt->planTree, Gather).
Does it mean it is possible that IsA(ps, GatherState) is true but IsA(plannedstmt->planTree, Gather) is false ?

I did some test but did not find a case like that.


Best regards,
houzj





В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrey Borodin
Дата:
Сообщение: Re: Yet another fast GiST build
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: [Patch] Optimize dropping of relation buffers using dlist