Mon May 14 15:04:51 PDT 2007
- Previous message: [Slony1-commit] slony1-engine/tests/one-offs/updatefunctions test-update-functions.sh
- Next message: [Slony1-commit] slony1-engine/src/ducttape compare_pgbench_dumps test_1_pgbench.in test_2_pgbench.in
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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))
- Previous message: [Slony1-commit] slony1-engine/tests/one-offs/updatefunctions test-update-functions.sh
- Next message: [Slony1-commit] slony1-engine/src/ducttape compare_pgbench_dumps test_1_pgbench.in test_2_pgbench.in
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list