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:
@ -3,6 +3,8 @@
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
#include "commands/sequence.h" /* for nextval() */
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
extern Datum autoinc(PG_FUNCTION_ARGS);
|
||||
|
||||
PG_FUNCTION_INFO_V1(autoinc);
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* insert_username.c
|
||||
* $Modified: Thu Oct 16 08:13:42 1997 by brook $
|
||||
* $PostgreSQL: pgsql/contrib/spi/insert_username.c,v 1.13 2006/03/11 04:38:30 momjian Exp $
|
||||
* $PostgreSQL: pgsql/contrib/spi/insert_username.c,v 1.14 2006/05/30 22:12:13 tgl Exp $
|
||||
*
|
||||
* insert user name in response to a trigger
|
||||
* usage: insert_username (column_name)
|
||||
@ -11,6 +11,8 @@
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
#include "miscadmin.h" /* for GetUserName() */
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
extern Datum insert_username(PG_FUNCTION_ARGS);
|
||||
|
||||
PG_FUNCTION_INFO_V1(insert_username);
|
||||
|
@ -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);
|
||||
|
@ -8,6 +8,8 @@
|
||||
#include <ctype.h>
|
||||
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
extern Datum check_primary_key(PG_FUNCTION_ARGS);
|
||||
extern Datum check_foreign_key(PG_FUNCTION_ARGS);
|
||||
|
||||
|
@ -14,6 +14,8 @@
|
||||
|
||||
#define ABSTIMEOID 702 /* it should be in pg_type.h */
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
/* AbsoluteTime currabstime(void); */
|
||||
Datum timetravel(PG_FUNCTION_ARGS);
|
||||
Datum set_timetravel(PG_FUNCTION_ARGS);
|
||||
|
Reference in New Issue
Block a user