Re: creating extension including dependencies

From: Andres Freund <andres(at)anarazel(dot)de>
To: Petr Jelinek <petr(at)2ndquadrant(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: creating extension including dependencies
Date: 2015-07-10 13:54:37
Message-ID: 20150710135437.GJ26521@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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...

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Shulgin, Oleksandr 2015-07-10 13:57:59 Re: [PATCH] Generalized JSON output functions
Previous Message Tom Lane 2015-07-10 13:52:30 Re: LANGUAGE sql functions don't use the custom plan logic