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 2 of 6 Topic 15444 of 17598
Post > Topic >>

Re: custom C function problem

by tgl@[EMAIL PROTECTED] (Tom Lane) May 3, 2008 at 01:50 PM

"Dan \"Heron\" Myers" <heron@[EMAIL PROTECTED]
> writes:
> I'm creating some custom C functions to load dynamically from a dll 
> (this is Postgres 8.3.1 on Windows XP SP2).  I have two that work fine, 
> but any time I try to write one that uses a text*, postgres crashes. 

What cases have you gotten to work correctly?

My guess is that you're either messed up about V0 vs V1 calling
convention (ie you forgot PG_FUNCTION_INFO_V1, or added it when you
shouldn't have), or you've got some kind of problem with not detoasting
toasted input values.  There's not enough info here to venture more.

			regards, tom lane

-- 
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 8:34:45 CST 2008.