Re: Extension Packaging

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
Cc: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>, "pgsql-hackers\(at)postgresql(dot)org Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Extension Packaging
Date: 2011-04-24 04:27:52
Message-ID: 295F3CF2-E254-480A-8D3F-3D7FDB7BDDFF@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Apr 23, 2011, at 1:03 PM, Dimitri Fontaine wrote:

> Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> writes:
>> For my extension I'm less concerned by having the install sql named in
>> different ways or by the upgrade sql as all these files are generated
>> by scripts. You may find useful this one
>
> You can also generate that reliably in SQL. You install your extension
> with CREATE EXTENSION then run the query over pg_depend and you have it
> all. Then you can test this upgrade script you just got in SQL. Tom
> also has a version that does the necessary string replacements using sed
> from a bash script rather than the SQL replace() function.
>
> http://archives.postgresql.org/pgsql-hackers/2011-02/msg01208.php
> http://archives.postgresql.org/pgsql-hackers/2011-02/msg01438.php

Nice. Did you and Tom ever work out the difference in results?

http://archives.postgresql.org/pgsql-hackers/2011-02/msg01572.php

I'd like to see this documented somewhere, perhaps in

http://developer.postgresql.org/pgdocs/postgres/extend-extensions.html

Thanks,

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2011-04-24 05:29:42 windows consolidated cleanup
Previous Message Jaime Casanova 2011-04-24 01:46:54 Re: time-delayed standbys