Copy PlannerInfo structure

Поиск
Список
Период
Сортировка
Искать

Copy PlannerInfo structure

От:
Ana Carolina Brito de Almeida <anacrl@ig.com.br>
Дата:
Hi all,

How can I copy the PlannerInfo structure?
I have *root variable that is PlannerInfo and I would like to pass this value to another variable that I created (the same type - PlannerInfo).
Can you help me? I only found function that copies PlannedStmt structure.

Thanks,
Ana Carolina

Re: Copy PlannerInfo structure

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Ana Carolina Brito de Almeida  writes:
> How can I copy the PlannerInfo structure?

There's no support for that.  If you want a shallow copy it's just a
memcpy; a deep copy is a bit of a problem because of the circular
linkages in some of the planner data structures (meaning a simple
copyObject-like approach wouldn't work).

Why would you need to copy it anyway?
		regards, tom lane

FAQ