Sam Mason wrote:
On Wed, Nov 19, 2008 at 05:06:14PM -0600, Scara Maccai wrote:
I think I wrote it, but there's something I don't get from the docs: do
I have to call
get_call_result_type(fcinfo, NULL, &tupdesc)
I've always tried to stay away from C level extensions so far! How
many records are you expecting to aggregate across? If it's only a few
thousand a simple SQL language function may be ok:
It's going to be used in millions of records.
That's why I went straight to the C implementation. But your SQL
function is a lot easier to read.
Sorry I can't be of more help!
You helped me a lot, thank you.
Anyone can answer me?
Do I have to call
get_call_result_type
every time or I can just call it the first time? I don't think the docs
are very clear in case of a function returning 1 Composite Type.
--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general