Search Postgresql Archives

Re: C function returns null values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx] 
Gesendet: Montag, 18. Juli 2011 16:33
An: Gregor Trefs
Cc: pgsql-general@xxxxxxxxxxxxxx
Betreff: Re:  C function returns null values 

Gregor Trefs <gregor.trefs@xxxxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux