summaryrefslogtreecommitdiff
path: root/contrib/rserv/rserv.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/rserv/rserv.c')
-rw-r--r--contrib/rserv/rserv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/rserv/rserv.c b/contrib/rserv/rserv.c
index 4a7d3aed350..02c71220d62 100644
--- a/contrib/rserv/rserv.c
+++ b/contrib/rserv/rserv.c
@@ -87,12 +87,14 @@ _rserv_log_()
if (TRIGGER_FIRED_BY_UPDATE(CurrentTriggerData->tg_event))
newtuple = CurrentTriggerData->tg_newtuple;
+#ifndef PG_FUNCTION_INFO_V1
/*
* Setting CurrentTriggerData to NULL prevents direct calls to trigger
* functions in queries. Normally, trigger functions have to be called
* by trigger manager code only.
*/
CurrentTriggerData = NULL;
+#endif
/* Connect to SPI manager */
if ((ret = SPI_connect()) < 0)