summaryrefslogtreecommitdiff
path: root/contrib/spi/moddatetime.c
diff options
context:
space:
mode:
authorTom Lane2006-05-30 22:12:16 +0000
committerTom Lane2006-05-30 22:12:16 +0000
commita0ffab351e2dca12200e95c45f6edf5ddebe78b0 (patch)
tree905fee345f116de536f72d8ff8507d093646d717 /contrib/spi/moddatetime.c
parente95703eac3199a389cfeace07545ee10430193a8 (diff)
Magic blocks don't do us any good unless we use 'em ... so install one
in every shared library.
Diffstat (limited to 'contrib/spi/moddatetime.c')
-rw-r--r--contrib/spi/moddatetime.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/spi/moddatetime.c b/contrib/spi/moddatetime.c
index 43ad810793..ca4e6c0f33 100644
--- a/contrib/spi/moddatetime.c
+++ b/contrib/spi/moddatetime.c
@@ -1,7 +1,7 @@
/*
moddatetime.c
-$PostgreSQL: pgsql/contrib/spi/moddatetime.c,v 1.12 2006/03/11 04:38:30 momjian Exp $
+$PostgreSQL: pgsql/contrib/spi/moddatetime.c,v 1.13 2006/05/30 22:12:13 tgl Exp $
What is this?
It is a function to be called from a trigger for the purpose of updating
@@ -17,6 +17,8 @@ OH, me, I'm Terry Mackintosh <terry@terrym.com>
#include "executor/spi.h" /* this is what you need to work with SPI */
#include "commands/trigger.h" /* -"- and triggers */
+PG_MODULE_MAGIC;
+
extern Datum moddatetime(PG_FUNCTION_ARGS);
PG_FUNCTION_INFO_V1(moddatetime);