From: | Gregor Trefs <gregor(dot)trefs(at)delphit(dot)com> |
---|---|
To: | |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: C function returns null values |
Date: | 2011-07-18 15:20:27 |
Message-ID: | 5987F6572432A3439988CDF27C6239A60124F7A43D8C@winserver.delphit.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Well, yes. I wrote a little make file which takes care of this part (except restarting the session):
INCLUDEDIRS += -I$(shell pg_config --includedir-server)
LIBDIR = -L$(shell pg_config --libdir)
LIBINSTALL = $(shell pg_config --pkglibdir)
integrated_c.so: integrated_c.c Makefile
gcc -fpic -o integrated_c.o -c integrated_c.c $(INCLUDEDIRS)
gcc -shared -o integrated_c.so integrated_c.o $(LIBDIR) -lmpfr -lgmp
cp integrated_c.so $(LIBINSTALL)
-----Ursprüngliche Nachricht-----
Von: Tom Lane [mailto:tgl(at)sss(dot)pgh(dot)pa(dot)us]
Gesendet: Montag, 18. Juli 2011 16:33
An: Gregor Trefs
Cc: pgsql-general(at)postgresql(dot)org
Betreff: Re: [GENERAL] C function returns null values
Gregor Trefs <gregor(dot)trefs(at)delphit(dot)com> writes:
> Thanks for your answer. I edited my code, but still get these random null values. What else can I do ?
Mph ... you're aware that you have to start a fresh session to load a new version of a .so into the backend?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2011-07-18 20:32:34 | Re: pg_upgrade does not translate tablespace location to new cluster |
Previous Message | Tom Lane | 2011-07-18 14:32:42 | Re: C function returns null values |