Re: Extension Templates S03E11

From: Heikki Linnakangas <hlinnakangas(at)vmware(dot)com>
To: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
Cc: Jeff Davis <pgsql(at)j-davis(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>, Boszormenyi Zoltan <zb(at)cybertec(dot)at>, Thom Brown <thom(at)linux(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Extension Templates S03E11
Date: 2013-11-25 23:37:22
Message-ID: 5293DF32.1020509@vmware.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 24.11.2013 00:19, Dimitri Fontaine wrote:
> Jeff Davis <pgsql(at)j-davis(dot)com> writes:
>> In the CF app, this is marked "Ready for Committer". That's a bit vague
>> here, considering Dimitri, you, Peter, and Alvaro are all committers.
>> Who is this patch waiting on? Is the discussion concluding, or does it
>> need another round of review?
>
> Thanks for the confusion I guess, but I'm no committer here ;-)
>
> This patch has received extensive review in July and I think it now
> properly implements the design proposed by Tom and Heikki in 9.3/CF4.

Ok, since my name has been mentioned, I'll bite..

I still don't like this. What I suggested back in December was to have a
simple mechanism to upload an extension zip file to the server via libpq
(http://www.postgresql.org/message-id/50BF80A6.20500@vmware.com). The
idea developed from that into the concept of extension templates, but
the original idea was lost somewhere along the way.

Back in December, when I agreed that "upload zip file via libpq" might
be useful, Tom suggested that we call control+sql file a "template", and
the installed entity an "extension". So far so good. Now comes the
patch, and the extension template no longer means a control+sql file. It
means an entity that's installed in the database that contains the same
information as a control+sql file, but in a new format. In fact, what
*do* you call the control+sql file that lies on the filesystem? Not a
template, apparently.

I want to be able to download extension.zip from pgxn.org, and then
install it on a server. I want to be able to install it the traditional
way, by unzipping it to the filesystem, or via libpq by using this new
feature. I do *not* want to rewrite the extension using a new CREATE
TEMPLATE FOR EXTENSION syntax to do the latter. I want to be able to
install the *same* zip file using either method.

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mark Kirkwood 2013-11-25 23:42:01 Re: why semicolon after begin is not allowed in postgresql?
Previous Message David Johnston 2013-11-25 23:36:26 Re: why semicolon after begin is not allowed in postgresql?