Re: [GENERAL] Problem with heap_form_tuple error

2012-11-05 Thread Tom Lane
Stephen Woodbridge writes: > Thanks, changing my code to use BuildTupleFromCStrings did the trick. So > if I wanted to do some like my code was doing what is the proper way to > convert a CString into varchar and then that into Datum? Personally I'd use cstring_to_text (relying on the knowledge

Re: [GENERAL] Problem with heap_form_tuple error

2012-11-05 Thread Stephen Woodbridge
On 11/5/2012 10:34 AM, Tom Lane wrote: Stephen Woodbridge writes: I'm have a problem with heap_form_tuple error ERROR: invalid memory alloc request size 1149502660 I've read through a ton of examples and read through the code and the docs and I'm sure I'm doing something stupid but I'm no

Re: [GENERAL] Problem with heap_form_tuple error

2012-11-05 Thread Tom Lane
Stephen Woodbridge writes: > I'm have a problem with heap_form_tuple error > ERROR: invalid memory alloc request size 1149502660 > I've read through a ton of examples and read through the code and the > docs and I'm sure I'm doing something stupid but I'm not seeing it. Hm ... you're settin

[GENERAL] Problem with heap_form_tuple error

2012-11-05 Thread Stephen Woodbridge
Hi all, I'm have a problem with heap_form_tuple error ERROR: invalid memory alloc request size 1149502660 I've read through a ton of examples and read through the code and the docs and I'm sure I'm doing something stupid but I'm not seeing it. I have included a very reduced sample of the c