[postgis-devel] Recent changes in PostgreSQL 8.2devel
Michael Fuhr
mike at fuhr.org
Sun Jul 2 16:22:34 PDT 2006
On Sun, Jul 02, 2006 at 11:33:58PM +0200, strk at refractions.net wrote:
> Micheal, thanks a lot for this info.
> Is there a chance you can provide a patch ?
Here's a patch for the gistentryinit() problem; it builds and passes
regression tests under 8.1 and 8.2devel. I'll submit a separate
patch to deal with escape_string_warning.
--
Michael Fuhr
-------------- next part --------------
Index: lwgeom/lwgeom_gist.c
===================================================================
RCS file: /home/cvs/postgis/postgis/lwgeom/lwgeom_gist.c,v
retrieving revision 1.27
diff -c -r1.27 lwgeom_gist.c
*** lwgeom/lwgeom_gist.c 30 Dec 2005 17:40:37 -0000 1.27
--- lwgeom/lwgeom_gist.c 2 Jul 2006 23:06:19 -0000
***************
*** 544,550 ****
--- 544,554 ----
gistentryinit(*retval, PointerGetDatum(rr),
entry->rel, entry->page,
+ #if USE_VERSION >= 82
+ entry->offset,
+ #else
entry->offset, sizeof(BOX2DFLOAT4),
+ #endif
FALSE);
}
***************
*** 554,560 ****
--- 558,568 ----
elog(NOTICE,"GIST: LWGEOM_gist_compress got a NULL key");
#endif
gistentryinit(*retval, (Datum) 0, entry->rel,
+ #if USE_VERSION >= 82
+ entry->page, entry->offset, FALSE);
+ #else
entry->page, entry->offset, 0, FALSE);
+ #endif
}
}
More information about the postgis-devel
mailing list