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

From Andres Freund
Subject Re: creating extension including dependencies
Date
Msg-id 20150710135437.GJ26521@alap3.anarazel.de
Whole thread Raw
In response to creating extension including dependencies  (Petr Jelinek <petr@2ndquadrant.com>)
Responses Re: creating extension including dependencies
List pgsql-hackers
On 2015-06-15 00:50:08 +0200, Petr Jelinek wrote:
> +                /* Create and execute new CREATE EXTENSION statement. */
> +                ces = makeNode(CreateExtensionStmt);
> +                ces->extname = curreq;
> +                ces->if_not_exists = false;
> +                parents = lappend(list_copy(recursive_parents), stmt->extname);
> +                ces->options = list_make1(makeDefElem("recursive",
> +                                                      (Node *) parents));
> +                CreateExtension(ces);

I think we should copy the SCHEMA option here and document that we use
the same schema. But it needs to be done in a way that doesn't error out
if the extension is not relocatable...



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: LANGUAGE sql functions don't use the custom plan logic
Next
From: "Shulgin, Oleksandr"
Date:
Subject: Re: [PATCH] Generalized JSON output functions