Re: in-catalog Extension Scripts and Control parameters (templates?)

Dimitri Fontaine <dimitri@2ndquadrant.fr>

From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
To: Hitoshi Harada <umi.tanuki@gmail.com>
Cc: Jaime Casanova <jaime@2ndquadrant.com>, Heikki Linnakangas <hlinnakangas@vmware.com>, Alvaro Herrera <alvherre@2ndquadrant.com>, Stephen Frost <sfrost@snowman.net>, Tom Lane <tgl@sss.pgh.pa.us>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2013-06-27T11:34:44Z
Lists: pgsql-hackers
Hitoshi Harada <umi.tanuki@gmail.com> writes:
>> > - a template that is created in another template script does not appear
>> to
>> > depend on the parent template.
>>
>> I don't think that should be automatically the case, even if I admit I
>> didn't think about that case.
>>
> Really?  My understanding is everything that is created under extension
> depends on the extension, which depends on the template.  Why only template
> is exception?

Oh sorry, I understood you meant at CREATE TEMPLATE FOR EXTENSION time
rather than at CREATE EXTENSION time, and that you were refering to
dependency as in the "require" control parameter.

The pg_depend entry against the extension should be there, will fix.

Regards,
-- 
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support