Please apply attached patch to current CVS.
It fixes problem if query contains field (with GiST index) more than 1 time.
Corrensponding patch for 7.1.2 is available from
http://www.sai.msu.su/~megera/postgres/gist
Regards, Oleg
_____________________________________________________________
Oleg Bartunov, sci.researcher, hostmaster of AstroNet,
Sternberg Astronomical Institute, Moscow University (Russia)
Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/
phone: +007(095)939-16-83, +007(095)939-23-83