Re: Runtime SHAREDIR for testing CREATE EXTENSION - Mailing list pgsql-hackers

From Sandro Santilli
Subject Re: Runtime SHAREDIR for testing CREATE EXTENSION
Date
Msg-id 20120221174242.GL1546@gnash
Whole thread Raw
In response to Re: Runtime SHAREDIR for testing CREATE EXTENSION  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Runtime SHAREDIR for testing CREATE EXTENSION  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
List pgsql-hackers
On Tue, Feb 21, 2012 at 10:21:17AM -0500, Tom Lane wrote:
> Sandro Santilli <strk@keybit.net> writes:
> > I'm trying to understand what options I have to test "CREATE EXTENSION"
> > w/out installing the extension files in their final destination.
> 
> There aren't any.  Generally speaking, if you want to be testing an
> extension, you should be doing it in a test installation anyway;
> so I don't see what's the objection to sticking the files into the
> installation's real SHAREDIR.

We do a staged installation of the extension library and scripts
in an ad-hoc dir which does not match the built-in SHAREDIR of PostgreSQL.

It works fine for testing the extension directly sourcing the scripts.
It's only "CREATE EXTENSION" that doesn't play nicely with that setup.

--strk; 


pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Review: alternate psql file locations
Next
From: Tom Lane
Date:
Subject: Re: [GENERAL] Unfamous 'could not read block ... in file "...": read only 0 of 8192 bytes' again