s, tom lane
Mate, you just won a beer :)
You guessed it right, I was trying to "CStringGetDatum" into a text field, now
i solved it with
values[n] = DirectFunctionCall1(textin, CStringGetDatum(...string...));
Thank you very much!
Claudio Rossi
--
Sent via pgsql-hackers mailing
> > nulls = (bool *)palloc(natts*sizeof(bool *));
> >
>
> May not be related to segfault you are seeing, but this looks completely
> wrong.
> You want array of bool and not (bool *).
Yeah, you are right but in the original code it's:
values = (Datum *) palloc(natts * sizeof(Datum));
nulls = (bo
ap_form_tuple (in /usr/local/pgsql/bin/postgres)
If I work on tables with only 1 attribute, I use normal variables (Datum
values, bool nulls) instead of arrays, and using heap_form_tuple(TupleDesc td,
&values, &nulls) works flawlessly. What am i missing?
Thanks in advance for help,
Claudio Ro
> There are also some compatibility concerns involved. If we add
> grantable privileges for TRUNCATE and/or DDL operations, then GRANT ALL
> ON TABLE suddenly conveys a whole lot more privilege than it did before.
> This could lead to unpleasant surprises in security-sensitive
> operations. One c
bove. Thanks
for answers.
Regards,
Claudio Rossi
--
Leggi GRATIS le tue mail con il telefonino i-modeĀ di Wind
http://i-mode.wind.it/
---(end of broadcast)---
TIP 7: You can help support the Postg