Re: Copy PlannerInfo structure

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ana Carolina Brito de Almeida <anacrl(at)ig(dot)com(dot)br>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Copy PlannerInfo structure
Date: 2009-02-11 15:08:32
Message-ID: 9426.1234364912@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ana Carolina Brito de Almeida <anacrl(at)ig(dot)com(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Asko Oja 2009-02-11 15:19:24 Re: [PATCHES] updated hash functions for postgresql v1
Previous Message Robert Haas 2009-02-11 15:05:11 Re: GIN fast insert