diff options
| author | Tom Lane | 2006-05-30 22:12:16 +0000 |
|---|---|---|
| committer | Tom Lane | 2006-05-30 22:12:16 +0000 |
| commit | a0ffab351e2dca12200e95c45f6edf5ddebe78b0 (patch) | |
| tree | 905fee345f116de536f72d8ff8507d093646d717 /contrib/spi | |
| parent | e95703eac3199a389cfeace07545ee10430193a8 (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')
| -rw-r--r-- | contrib/spi/autoinc.c | 2 | ||||
| -rw-r--r-- | contrib/spi/insert_username.c | 4 | ||||
| -rw-r--r-- | contrib/spi/moddatetime.c | 4 | ||||
| -rw-r--r-- | contrib/spi/refint.c | 2 | ||||
| -rw-r--r-- | contrib/spi/timetravel.c | 2 |
5 files changed, 12 insertions, 2 deletions
diff --git a/contrib/spi/autoinc.c b/contrib/spi/autoinc.c index bad7c527354..5904f1f4312 100644 --- a/contrib/spi/autoinc.c +++ b/contrib/spi/autoinc.c @@ -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); diff --git a/contrib/spi/insert_username.c b/contrib/spi/insert_username.c index 06de9632bd7..73ed17cc1c8 100644 --- a/contrib/spi/insert_username.c +++ b/contrib/spi/insert_username.c @@ -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); diff --git a/contrib/spi/moddatetime.c b/contrib/spi/moddatetime.c index 43ad810793a..ca4e6c0f33e 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); diff --git a/contrib/spi/refint.c b/contrib/spi/refint.c index 8163f8ebaf4..a060f9effa2 100644 --- a/contrib/spi/refint.c +++ b/contrib/spi/refint.c @@ -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); diff --git a/contrib/spi/timetravel.c b/contrib/spi/timetravel.c index 84a11538540..026e4ac8133 100644 --- a/contrib/spi/timetravel.c +++ b/contrib/spi/timetravel.c @@ -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); |
