Jan Wieck wieck at lists.slony.info
Mon May 14 15:04:51 PDT 2007
Update of /home/cvsd/slony1/slony1-engine/src/xxid
In directory main.slony.info:/tmp/cvs-serv7071/xxid

Modified Files:
      Tag: REL_1_2_STABLE
	xxid.c 
Log Message:
Make the SET_VARSIZE macro definition in xxid.c identical to
what is used in slony1_funcs.c

Jan


Index: xxid.c
===================================================================
RCS file: /home/cvsd/slony1/slony1-engine/src/xxid/xxid.c,v
retrieving revision 1.12.2.2
retrieving revision 1.12.2.3
diff -C2 -d -r1.12.2.2 -r1.12.2.3
*** xxid.c	9 May 2007 17:43:10 -0000	1.12.2.2
--- xxid.c	14 May 2007 22:04:49 -0000	1.12.2.3
***************
*** 24,31 ****
  #endif
  
! #ifndef SET_VARSIZE
! #define SET_VARSIZE(PTR,len) (*((uint32 *)(PTR)) = (len) & 0x3FFFFFFF)
  #endif
  
  #ifndef PG_GETARG_TRANSACTIONID
  #define PG_GETARG_TRANSACTIONID(n)	DatumGetTransactionId(PG_GETARG_DATUM(n))
--- 24,33 ----
  #endif
  
! /* -- Change from PostgreSQL Ver 8.3 -- */
! #if !((PG_VERSION_MAJOR > 8) || ((PG_VERSION_MAJOR == 8) && (PG_VERSION_MINOR >= 3)))
! #define SET_VARSIZE(datum, size) (VARATT_SIZEP(datum)=(size))
  #endif
  
+ 
  #ifndef PG_GETARG_TRANSACTIONID
  #define PG_GETARG_TRANSACTIONID(n)	DatumGetTransactionId(PG_GETARG_DATUM(n))



More information about the Slony1-commit mailing list