[postgis-users] Reloading .so File (Postgresql8.2+)

2013-11-15 Thread Peter Tolkewitz
Hello, is there any way to reload a shared object (.so) file with a C-function into Postgres? Seems that up from Postgres 8.2 the behaviour of LOAD has been changed: http://www.postgresql.org/docs/8.1/static/xfunc-c.html If you need to force a reload of an object file, for example after

Re: [postgis-users] How to create user-defined C function using a postgis C function

2013-11-13 Thread Peter Tolkewitz
, Peter Tolkewitz wrote: Hello Sandro,   thank you for your answer. For testing I wrote another main() class:   --- start main.c --- int main() {   test(0,0);   return 0; } --- end main.c ---   and compiled   cc -I/usr/include/pgsql/server -fpic -shared -o libtest.so test.c cc

Re: [postgis-users] How to create user-defined C function using a postgis C function

2013-11-11 Thread Peter Tolkewitz
:57 Uhr Von: Sandro Santilli s...@keybit.net An: PostGIS Users Discussion postgis-users@lists.osgeo.org Betreff: Re: [postgis-users] How to create user-defined C function using a postgis C function On Sat, Nov 09, 2013 at 01:33:57PM +0100, Peter Tolkewitz wrote: cc -I/usr/include/pgsql/server

[postgis-users] How to create user-defined C function using a postgis C function

2013-11-09 Thread Peter Tolkewitz
Hi there, what is the appropriate way to create a new user-defined C function using a postgis C function and define it as new Postgres function using CREATE FUNCTION .. LANGUAGE C? According to http://www.postgresql.org/docs/9.1/static/xfunc-c.html, I sucessfully compiled test.c (see