[postgis-devel] Is it possible to get rid of platform specific lwpostgis.sql files?

Paul Ramsey pramsey at refractions.net
Thu Sep 6 20:57:49 PDT 2007


As of what PgSQL version?
P

On 6-Sep-07, at 7:33 PM, Tom Lane wrote:

> Charlie Savage <cfis at savagexi.com> writes:
>> The PostGis installation scripts generate different versions of
>> lwpostgis.sql per platform.
>
>> For example, here is Affine defined on Linux and Windows:
>
>> CREATE OR REPLACE FUNCTION
>> Affine 
>> (geometry,float8,float8,float8,float8,float8,float8,float8,float8,flo 
>> at8,float8,float8,float8)
>> 	RETURNS geometry
>> 	AS '$libdir/liblwgeom.so.1.3', 'LWGEOM_affine'
>> 	LANGUAGE 'C' IMMUTABLE STRICT;
>
>
>> CREATE OR REPLACE FUNCTION
>> Affine 
>> (geometry,float8,float8,float8,float8,float8,float8,float8,float8,flo 
>> at8,float8,float8,float8)
>> 	RETURNS geometry
>> 	AS '$libdir/liblwgeom.dll', 'LWGEOM_affine'
>> 	LANGUAGE 'C' IMMUTABLE STRICT;
>
>> Notice the library names are different. However, if you look at other
>> postgresql contrib modules they don't do this.
>
> This is definitely deprecated practice --- you should rely on dfmgr to
> supply the appropriate platform-specific extension.
>
> 			regards, tom lane
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at postgis.refractions.net
> http://postgis.refractions.net/mailman/listinfo/postgis-devel




More information about the postgis-devel mailing list