Re: ambuild parameters

From: david(dot)hoksza(at)seznam(dot)cz
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ambuild parameters
Date: 2006-03-20 07:02:15
Message-ID: 133318512.20060320080215@seznam.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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).

Obviously the problem comes, when touching inside the structure in
RelationGetNumberOfBlocks.

I'm running it on Windows XP, but i guess that should be no problem in
this case?
Don't you have possibly any other ideas? I'm implementing a framework
for indexing into PG as my diploma work, so it's quite importatnt to
me...

Thanks,
David Hoksza

________________________________
19. března 2006, 22:43:48, napsal jste:

TL> david(dot)hoksza(at)seznam(dot)cz writes:
>> Hi, I'm trying to implement my own access method. Now I've implemented
>> and compiled it but I've problems when I try to use it.

TL> Wild guess: did you mark all your functions as V1 call convention?
TL> The internal functions don't need to be marked, but dynamically loaded
TL> ones do.

TL> regards, tom lane

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rushabh Doshi 2006-03-20 07:40:25 Re: db sever seems to be dropping connections
Previous Message Ang Chin Han 2006-03-20 06:29:31 Re: OpenSuse10.0 and postgresql