Re: gist DatumGetPointer returns pointer to corrupted data - Mailing list pgsql-hackers

From Marios Vodas
Subject Re: gist DatumGetPointer returns pointer to corrupted data
Date
Msg-id AANLkTimFF7BMwO103WB+Nj4uOp1XRdTRkcf+Dd4mz4Pn@mail.gmail.com
Whole thread Raw
In response to Re: gist DatumGetPointer returns pointer to corrupted data  (Teodor Sigaev <teodor@sigaev.ru>)
List pgsql-hackers
2010/10/22 Teodor Sigaev <teodor@sigaev.ru>
Type should have in/out function, at least dummy. If type is not present in pg_type table then postgres can not operate with even on disk.

Yes, you are right. I did some tests and I found that in order for it to work correctly the type we specify in STORAGE parameter in create operator class has to have internallength same or bigger than the sizeof() struct that is stored in nodes of the tree. I didn't specify storage parameter at all so that was the problem. Thank you for helping.

pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Simplifying replication
Next
From: Tom Lane
Date:
Subject: Re: Simplifying replication