How to restore a Plan from a stored plan text?

Поиск
Список
Период
Сортировка
От sunpeng
Тема How to restore a Plan from a stored plan text?
Дата
Msg-id AANLkTim2HvCaPoJOQFiciwXFSpWJ-GOK3D6NVmJv9TKf@mail.gmail.com
обсуждение исходный текст
Ответы Re: How to restore a Plan from a stored plan text?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I've used the following codes to translate the PlannedStmt node to a char string:
PlannedStmt * pltl = (PlannedStmt *) linitial(plantree_list);
Plan *pl = pltl->planTree;
char       *s;
s = nodeToString(pl);
 How to restore from this s to Plan?
  I noticed using func parseNodeString() in /backends/nodes/readfuncs.c can't work, for example there is no codes translating into Agg node, should I write my code to parse this string back into PlannedStmt node?
  Thanks!

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

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: How can I use parameters in plain sql
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How to restore a Plan from a stored plan text?