Re: [GENERAL] A couple more PostgreSQL C questions

2006-11-07 Thread Tom Lane
Ron Peterson <[EMAIL PROTECTED]> writes: > Datum > y_somefunc ( PG_FUNCTION_ARGS ) > { >if( PG_ARGISNULL(0) || >PG_ARGISNULL(1) || >PG_ARGISNULL(2) ) >{ > PG_RETURN_NULL(); >} >text* rand_dev = PG_GETARG_TEXT_P(0); >... > Should I be concerned by this? Wh

Re: [GENERAL] A couple more PostgreSQL C questions

2006-11-07 Thread Ron Peterson
On Tue, Nov 07, 2006 at 07:50:52PM -0500, Ron Peterson wrote: > I have a couple of more PostgreSQL C questions, about the following two > compiler warnings: > > warning: ISO C90 forbids mixed declarations and code I'm thinking this is unavoidable, and unless my time machine starts working, irrele

[GENERAL] A couple more PostgreSQL C questions

2006-11-07 Thread Ron Peterson
I have a couple of more PostgreSQL C questions, about the following two compiler warnings: warning: ISO C90 forbids mixed declarations and code This appears to be caused by the following statement: text* rand_dev = PG_GETARG_TEXT_P(0); in