mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Fix executor/spi.h to follow our usual conventions for include files, ie,
not include postgres.h nor anything else it doesn't directly need. Add #includes to calling files as needed to compensate. Per my proposal of yesterday. This should be noted as a source code change in the 8.4 release notes, since it's likely to require changes in add-on modules.
This commit is contained in:
@ -1,10 +1,13 @@
|
||||
/*
|
||||
* $PostgreSQL: pgsql/contrib/spi/autoinc.c,v 1.15 2008/05/17 01:28:22 adunstan Exp $
|
||||
* $PostgreSQL: pgsql/contrib/spi/autoinc.c,v 1.16 2009/01/07 13:44:36 tgl Exp $
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "executor/spi.h" /* this is what you need to work with SPI */
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
#include "commands/sequence.h" /* for nextval() */
|
||||
#include "catalog/pg_type.h"
|
||||
#include "commands/sequence.h"
|
||||
#include "commands/trigger.h"
|
||||
#include "executor/spi.h"
|
||||
#include "utils/builtins.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -1,15 +1,18 @@
|
||||
/*
|
||||
* insert_username.c
|
||||
* $Modified: Thu Oct 16 08:13:42 1997 by brook $
|
||||
* $PostgreSQL: pgsql/contrib/spi/insert_username.c,v 1.16 2008/03/25 22:42:42 tgl Exp $
|
||||
* $PostgreSQL: pgsql/contrib/spi/insert_username.c,v 1.17 2009/01/07 13:44:36 tgl Exp $
|
||||
*
|
||||
* insert user name in response to a trigger
|
||||
* usage: insert_username (column_name)
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "executor/spi.h" /* this is what you need to work with SPI */
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
#include "miscadmin.h" /* for GetUserName() */
|
||||
#include "catalog/pg_type.h"
|
||||
#include "commands/trigger.h"
|
||||
#include "executor/spi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "utils/builtins.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*
|
||||
moddatetime.c
|
||||
|
||||
$PostgreSQL: pgsql/contrib/spi/moddatetime.c,v 1.14 2007/02/01 19:10:23 momjian Exp $
|
||||
$PostgreSQL: pgsql/contrib/spi/moddatetime.c,v 1.15 2009/01/07 13:44:36 tgl Exp $
|
||||
|
||||
What is this?
|
||||
It is a function to be called from a trigger for the purpose of updating
|
||||
@ -13,9 +13,11 @@ not really know what I am doing. I also had help from
|
||||
Jan Wieck <jwieck@debis.com> who told me about the timestamp_in("now") function.
|
||||
OH, me, I'm Terry Mackintosh <terry@terrym.com>
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "executor/spi.h" /* this is what you need to work with SPI */
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
#include "catalog/pg_type.h"
|
||||
#include "executor/spi.h"
|
||||
#include "commands/trigger.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -1,16 +1,17 @@
|
||||
/*
|
||||
* $PostgreSQL: pgsql/contrib/spi/refint.c,v 1.33 2008/05/17 01:28:22 adunstan Exp $
|
||||
* $PostgreSQL: pgsql/contrib/spi/refint.c,v 1.34 2009/01/07 13:44:36 tgl Exp $
|
||||
*
|
||||
*
|
||||
* refint.c -- set of functions to define referential integrity
|
||||
* constraints using general triggers.
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
#include "executor/spi.h" /* this is what you need to work with SPI */
|
||||
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
#include <ctype.h>
|
||||
|
||||
#include "commands/trigger.h"
|
||||
#include "executor/spi.h"
|
||||
#include "utils/builtins.h"
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
|
@ -1,22 +1,23 @@
|
||||
/*
|
||||
* $PostgreSQL: pgsql/contrib/spi/timetravel.c,v 1.29 2008/05/17 01:28:22 adunstan Exp $
|
||||
* $PostgreSQL: pgsql/contrib/spi/timetravel.c,v 1.30 2009/01/07 13:44:36 tgl Exp $
|
||||
*
|
||||
*
|
||||
* timetravel.c -- function to get time travel feature
|
||||
* using general triggers.
|
||||
*
|
||||
* Modified by B<>JTHE Zolt<6C>n, Hungary, mailto:urdesobt@axelero.hu
|
||||
*/
|
||||
#include "postgres.h"
|
||||
|
||||
/* Modified by B<>JTHE Zolt<6C>n, Hungary, mailto:urdesobt@axelero.hu */
|
||||
#include <ctype.h>
|
||||
|
||||
#include "executor/spi.h" /* this is what you need to work with SPI */
|
||||
#include "commands/trigger.h" /* -"- and triggers */
|
||||
#include "miscadmin.h" /* for GetPgUserName() */
|
||||
#include "catalog/pg_type.h"
|
||||
#include "commands/trigger.h"
|
||||
#include "executor/spi.h"
|
||||
#include "miscadmin.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/nabstime.h"
|
||||
|
||||
#include <ctype.h> /* tolower () */
|
||||
|
||||
#define ABSTIMEOID 702 /* it should be in pg_type.h */
|
||||
|
||||
PG_MODULE_MAGIC;
|
||||
|
||||
/* AbsoluteTime currabstime(void); */
|
||||
|
Reference in New Issue
Block a user