Re: creating extension including dependencies - Mailing list pgsql-hackers

From Andres Freund
Subject Re: creating extension including dependencies
Date
Msg-id 20150902153120.GA6822@alap3.anarazel.de
Whole thread Raw
In response to Re: creating extension including dependencies  (Andres Freund <andres@anarazel.de>)
Responses Re: creating extension including dependencies  (Petr Jelinek <petr@2ndquadrant.com>)
List pgsql-hackers
On 2015-09-02 17:27:38 +0200, Andres Freund wrote:
> 1) Passing the list of parents through the cascade DefElem strikes me as
> incredibly ugly.
> 
> For one the cascade option really should take a true/false type option
> on the C level (so you can do defGetBoolean()), for another passing
> through the list of parents via DefElem->arg seems wrong. You're
> supposed to be able to copy parsenodes and at the very least that's
> broken by the approach.

I think the fix here is to split off the bulk of CreateExtension() into
an internal function that takes additional parameters.



pgsql-hackers by date:

Previous
From: "Joshua D. Drake"
Date:
Subject: PSA: Upcoming Linux scheduler changes
Next
From: Oleg Bartunov
Date:
Subject: Re: Horizontal scalability/sharding