Re: [HACKERS] PG_RETURN_INT64 vs PointerGetDatum & ANALYZE

2006-07-15 Thread Tom Lane
"Sergey E. Koposov" <[EMAIL PROTECTED]> writes: > C function definition: > PG_FUNCTION_INFO_V1(pgq3c_ang2ipix); > Datum pgq3c_ang2ipix(PG_FUNCTION_ARGS) > { > static q3c_ipix_t ipix_buf; > ipix_buf ++; > elog(WARNING,"%lld",ipix_buf); > return PointerGetDatum((&ipix_buf)); > }

[HACKERS] PG_RETURN_INT64 vs PointerGetDatum & ANALYZE

2006-07-15 Thread Sergey E. Koposov
Hello, Hackers I recently discovered that some my tables with the functional indices have the wrong pg_stats records. wsdb=# \d q3c Table "public.q3c" Column | Type | Modifiers +--+--- ipix | bigint | ra | double precisio