Обсуждение: Copy PlannerInfo structure

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

Copy PlannerInfo structure

От
Ana Carolina Brito de Almeida
Дата:
Hi all,<br /><br />How can I copy the PlannerInfo structure?<br />I have *root variable that is PlannerInfo and I would
liketo pass this value to another variable that I created (the same type - PlannerInfo).<br />Can you help me? I only
foundfunction that copies PlannedStmt structure.<br /><br />Thanks,<br />Ana Carolina<br /><br /> 

Re: Copy PlannerInfo structure

От
Tom Lane
Дата:
Ana Carolina Brito de Almeida <anacrl@ig.com.br> 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