Re: Copy PlannerInfo structure

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Copy PlannerInfo structure
Дата
Msg-id 9426.1234364912@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Copy PlannerInfo structure  (Ana Carolina Brito de Almeida <anacrl@ig.com.br>)
Список pgsql-hackers
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


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: GIN fast insert
Следующее
От: Robert Haas
Дата:
Сообщение: Re: advance local xmin more aggressively