Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: custom C fu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 6 Topic 15444 of 17602
Post > Topic >>

Re: custom C function problem

by heron@[EMAIL PROTECTED] ("Dan \"Heron\" Myers") May 3, 2008 at 06:20 PM

Tom Lane wrote:
> Well, there's nothing wrong with that C code, so the problem is
> someplace else.
> 
> Did you remember to declare the function STRICT?  If not, and if
> there are any nulls in your test table, a crash would be expected;
> there's nothing in this function that's guarding against a null
> pointer dereference.

I did declare the function STRICT, yes.

I'm wondering if maybe there is a dependency somewhere I'm missing.  I 
link with postgres.lib to create the dll; I basically made an educated 
guess as to what to link with to get rid of linker errors, since the 
do***entation didn't really say I needed to link with anything, but I 
suppose it's possible that there is another .lib somewhere that I should 
link with instead.  Is there anyone who has experience writing custom C 
functions for Postgres that could weigh in here?

Thanks,
Dan

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




 6 Posts in Topic:
custom C function problem
heron@[EMAIL PROTECTED]   2008-05-03 11:27:36 
Re: custom C function problem
tgl@[EMAIL PROTECTED] (T  2008-05-03 13:50:35 
Re: custom C function problem
heron@[EMAIL PROTECTED]   2008-05-03 11:58:41 
Re: custom C function problem
tgl@[EMAIL PROTECTED] (T  2008-05-03 15:46:46 
Re: custom C function problem
heron@[EMAIL PROTECTED]   2008-05-03 18:20:50 
Re: custom C function problem
tgl@[EMAIL PROTECTED] (T  2008-05-03 21:04:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 19:45:10 CST 2008.