1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-27 12:41:57 +03:00

Magic blocks don't do us any good unless we use 'em ... so install one

in every shared library.
This commit is contained in:
Tom Lane
2006-05-30 22:12:16 +00:00
parent e95703eac3
commit a0ffab351e
58 changed files with 160 additions and 47 deletions

View File

@ -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);