- Stricter mapping between DBF and SQL integer and string attributes
- Changed M() and Z() functions to return NULL if requested
dimension is not available
+ - Initial support for postgresql 8.2
-PostGIS 1.0.5CVS
+PostGIS 1.0.6CVS
+ - Fixed palloc(0) call in collection deserializer (only gives
+ problem with --enable-cassert)
+
+PostGIS 1.0.5
2005/11/25
- New "Reporting Bugs" chapter in manual
- Segfault fix in shp2pgsql (utf8 encoding)
ifneq ($(findstring 8.0,$(VERSION)),)
USE_VERSION=80
else
- USE_VERSION=81
+ ifneq ($(findstring 8.1,$(VERSION)),)
+ USE_VERSION=81
+ else
+ USE_VERSION=82
+ endif
endif
endif
endif
#include "postgres.h"
#include "access/gist.h"
#include "access/itup.h"
-#include "access/rtree.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "utils/geo_decls.h"
#include "postgres.h"
#include "access/gist.h"
#include "access/itup.h"
-#include "access/rtree.h"
#include "fmgr.h"
#include "utils/elog.h"
*/
++nelems;
if ( nelems == 1 || ! array ) {
- nbytes = ARR_OVERHEAD(1)+INTALIGN(geom->size);
+ nbytes = ARR_OVERHEAD_NONULLS(1)+INTALIGN(geom->size);
#ifdef PGIS_DEBUG
elog(NOTICE, "geom_accum: adding %p (nelems=%d; nbytes=%d)",
geom, nelems, nbytes);
#if USE_VERSION > 72
result->elemtype = oid;
+#endif
+#if USE_VERSION > 81
+ result->dataoffset = 0;
#endif
memcpy(ARR_DIMS(result), &nelems, sizeof(int));
memcpy(ARR_LBOUND(result), &lbs, sizeof(int));
#ifdef PGIS_DEBUG
elog(NOTICE, " array is %d-bytes in size, %d w/out header",
- array->size, array->size-ARR_OVERHEAD(ARR_NDIM(array)));
+ array->size, array->size-ARR_OVERHEAD_NONULLS(ARR_NDIM(array)));
#endif
#include "access/gist.h"
#include "access/itup.h"
#if USE_VERSION > 80
-#include "access/rtree.h"
+#include "access/skey.h"
#endif
#include "fmgr.h"
#include "utils/elog.h"
#include "access/gist.h"
#include "access/itup.h"
-#include "access/rtree.h"
#include "fmgr.h"
#include "utils/elog.h"
#include "access/gist.h"
#include "access/itup.h"
-#include "access/rtree.h"
#include "fmgr.h"
#include "utils/elog.h"
#define PG_NARGS() (fcinfo->nargs)
#endif
+#if USE_VERSION < 82
+#define ARR_OVERHEAD_NONULLS(x) ARR_OVERHEAD((x))
+#endif
+
void *pg_alloc(size_t size);
void *pg_realloc(void *ptr, size_t size);
void pg_free(void *ptr);
#include "access/gist.h"
#include "access/itup.h"
-#include "access/rtree.h"
-
#include "fmgr.h"
#include "utils/elog.h"
-
#include "liblwgeom.h"
#include "lwgeom_pg.h"