Re: [HACKERS] Segfault using heap_form_tuple

2008-04-09 Thread Claudio Rossi
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

Re: [HACKERS] Segfault using heap_form_tuple

2008-04-09 Thread Claudio Rossi
> > 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

[HACKERS] Segfault using heap_form_tuple

2008-04-09 Thread Claudio Rossi
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

Re: [HACKERS] Truncate Triggers

2008-02-11 Thread Claudio Rossi
> 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

[HACKERS] GRANT ROLE and triggers

2007-07-04 Thread Claudio Rossi
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