[HACKERS] _penalty gist method invoked with one key NULL

2005-10-27 Thread Grzegorz Piotr Jaskiewicz
As in subject. What it does, it gets through picksplit, I return good values, valid unions, etc. Than (I guess) postgres is trying to insert another value in tree, hence penalty is called. Why one of the values penalty is called with is NULL, and I have no idea if that's valid. >From all the e

[HACKERS] gist problem

2005-10-26 Thread Grzegorz Piotr Jaskiewicz
Hi list I got memleak fixed, valgrind doesn't quite find problems there, I had to dig it manually. Anyway, to the point. Now that I've created gist index, I want to use it on table, here it goes: CREATE OPERATOR CLASS gist_enum2916_operators DEFAULT FOR TYPE enum2916 USING gist AS OPE

Re: [HACKERS] problem with custom Gist for custom type

2005-10-26 Thread Grzegorz Piotr Jaskiewicz
Ok, I got it, google is my friend ;) ... > Can I use valgrind to find out the root of problem. If so, how should I > invoke it with postgres. Postgres it self was configured with: ... -- GJ Binary system, you're either 1 or 0... dead or alive ;) ---(end of broadcast)

Re: [HACKERS] problem with custom Gist for custom type

2005-10-26 Thread Grzegorz Piotr Jaskiewicz
On Wednesday 26 October 2005 18:34, Oleg Bartunov wrote: > btw, if you could read russian, we have GiST programming tutorial > http://www.sai.msu.su/~megera/postgres/talks/gist_tutorial.html I did try, but last time I did Russian lessons was around 10 years ago, so ... babel fish could help btw, bu

Re: [HACKERS] problem with custom Gist for custom type

2005-10-26 Thread Grzegorz Piotr Jaskiewicz
On Wednesday 26 October 2005 17:48, Tom Lane wrote: > Looks like you're scribbling on memory that doesn't belong to you. > Check for miscomputed palloc request sizes, etc. Thanks very much for the tip. I thogut perhaps I am not filling out some parts of structures, or something. Can I use valgrind