Re: ambuild parameters

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: david(dot)hoksza(at)seznam(dot)cz
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ambuild parameters
Date: 2006-03-20 22:20:12
Message-ID: 8302.1142893212@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

david(dot)hoksza(at)seznam(dot)cz writes:
> Thanks for answering, it was a good guess, I really didn't mark it,
> but unfortunately it didn't solve my problem. It still falls down,
> when I try to access the argument.
> But it seems strange to me, that converting to Relation is OK:

> Relation index_rel = (Relation) PG_GETARG_POINTER(1);

> and also that comparing to NULL is OK:

> if (index_rel == NULL).

Neither of those prove a thing (except that you don't have a null
pointer). I'd still guess that you don't have the V1 parameter marking
correct, and so what the function thinks it's picking up is garbage
because the backend is not passing the parameters the way the function
expects.

You might try using gdb to see exactly what parameter values the
function thinks it's getting, or print them out to the log before you
use them.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-03-20 22:31:32 Re: Difference between "add column" and "add column" with default
Previous Message Tom Lane 2006-03-20 22:15:54 Re: db sever seems to be dropping connections