Fri Apr 22 16:33:12 PDT 2005
- Previous message: [Slony1-commit] By wieck: LogTrigger should never be called in anything other than a
- Next message: [Slony1-commit] By xfade: Fix GCC-4.0 compile warning.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message:
-----------
LogTrigger should never be called in anything other than a
client transaction on the origin. It's not defined on subscribers
and slon should never UPDATE an origin.
Jan
Modified Files:
--------------
slony1-engine/src/backend:
slony1_funcs.c (r1.29 -> r1.30)
-------------- next part --------------
Index: slony1_funcs.c
===================================================================
RCS file: /usr/local/cvsroot/slony1/slony1-engine/src/backend/slony1_funcs.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -Lsrc/backend/slony1_funcs.c -Lsrc/backend/slony1_funcs.c -u -w -r1.29 -r1.30
--- src/backend/slony1_funcs.c
+++ src/backend/slony1_funcs.c
@@ -443,9 +443,8 @@
case SLON_ROLE_NORMAL: /* Normal, that's good */
break;
- case SLON_ROLE_SLON: /* Replication session, nothing to do here */
- SPI_finish();
- return PointerGetDatum(NULL);
+ case SLON_ROLE_SLON: /* non-client session ??? */
+ elog(ERROR, "Slony-I: logTrigger() called in non-client session");
}
/*
- Previous message: [Slony1-commit] By wieck: LogTrigger should never be called in anything other than a
- Next message: [Slony1-commit] By xfade: Fix GCC-4.0 compile warning.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list