Re: extension_control_path

From: Stephen Frost <sfrost(at)snowman(dot)net>
To: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Sergey Muraviov <sergey(dot)k(dot)muraviov(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: extension_control_path
Date: 2014-02-28 13:34:26
Message-ID: 20140228133426.GE2921@tamriel.snowman.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

* Dimitri Fontaine (dimitri(at)2ndQuadrant(dot)fr) wrote:
> Stephen Frost <sfrost(at)snowman(dot)net> writes:
> >> # hstore extension
> >> comment = 'data type for storing sets of (key, value) pairs'
> >> default_version = '1.3'
> >> directory = 'local/hstore-new'
> >> module_pathname = '$directory/hstore'
> >> relocatable = true
> >
> > Interesting idea. I'm a *little* concerned that re-useing '$directory'
> > there might confuse people into thking that any values in the control
> > file could be substituted in a similar way though. Would there really
> > be much difference between that and '$ctldir' or something?
>
> Well, using $directory makes the feature auto-documented and very easy
> to read even without the reference documentation handy. It's also a very
> known way to setup things in .ini files.
>
> Now, what other parameters would you possibly use that way, other than
> $directory? I can see a use for $default_version, but that's about it.

Yeah, default_version was the other one that looked like it might be
possible to include, but folks might decide to try and use 'comment' in
that way too. Basically, there's a chance that they'd want to use any
string in there.

> Would you rather add support for $default_version in the patch, for all
> of the parameters just in case, for a different set of control
> parameters, or rename the $directory macro?
> My vote goes for adding $default_version only.

It certainly seems to me that people will natuarlly want to use
$default_version. I'm trying to figure out if that's actually something
we should encourage or what. Of course, including it and/or the
PG_MODULE_MAGIC that I mentioned in my previous email run afoul of our
current 'upgrade-all-the-things' strategy when changing major versions.
I continue to wonder if that was really the best idea.

Thanks,

Stephen

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabrízio de Royes Mello 2014-02-28 13:38:10 Re: [PATCH] Store Extension Options
Previous Message Stephen Frost 2014-02-28 13:27:53 Re: extension_control_path