From: | Philip Yarra <philip(at)utiba(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Olivier Thauvin <olivier(dot)thauvin(at)aerov(dot)jussieu(dot)fr> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SETOF function call |
Date: | 2005-04-19 02:16:07 |
Message-ID: | 200504191216.07640.philip@utiba.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
sizeof(Datum) == sizeof(long) - is that compatible with %d formatting (I'm
guessing something like vsprintf takes place in elog)? Wouldn't this need %ld
or %lu?
Sorry if this misses the point, I wasn't clear from original post if the
segfault was on elog or after it.
Regards, Philip.
On Tuesday 19 April 2005 11:53, Tom Lane wrote:
> Olivier Thauvin <olivier(dot)thauvin(at)aerov(dot)jussieu(dot)fr> writes:
> > Datum
> > header_querytxt(PG_FUNCTION_ARGS)
> > {
> > elog(NOTICE, "querytxt");
> > Datum tag;
> > /* converting TEXT value to integer one */
> > tag = DirectFunctionCall1(rpmtagvalue, PG_GETARG_TEXT_P(1));
> > elog(NOTICE, "querytxt %d", tag);
> > /* header_query = function accepting integer instead text)
> > PG_RETURN_POINTER(DirectFunctionCall2(header_query,
> > PG_GETARG_BYTEA_P_COPY(0), tag));
> > }
>
> If that's a cut-and-paste, then you seem to be short a */ on the second
> comment ...
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 9: the planner will ignore your desire to choose an index scan if your
> joining column's datatypes do not match
>
> -----------------
> Utiba Pty Ltd
> This message has been scanned for viruses and
> dangerous content by Utiba mail server and is
> believed to be clean.
>
>
-----------------
Utiba Pty Ltd
This message has been scanned for viruses and
dangerous content by Utiba mail server and is
believed to be clean.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2005-04-19 03:37:30 | Re: [HACKERS] Best practices: MERGE |
Previous Message | Bruce Momjian | 2005-04-19 01:53:38 | Re: [WIP] shared locks |