1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
1999-02-14 00:22:53 +01:00
|
|
|
* pg_rewrite.h
|
1997-09-07 07:04:48 +02:00
|
|
|
* definition of the system "rewrite-rule" relation (pg_rewrite)
|
|
|
|
* along with the relation's initial contents.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1999-12-28 14:40:53 +01:00
|
|
|
* $Id: pg_rewrite.h,v 1.9 1999/12/28 13:40:50 wieck Exp $
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
* NOTES
|
1997-09-07 07:04:48 +02:00
|
|
|
* the genbki.sh script reads this file and generates .bki
|
|
|
|
* information from the DATA() statements.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
#ifndef PG_REWRITE_H
|
|
|
|
#define PG_REWRITE_H
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* postgres.h contains the system type definintions and the
|
|
|
|
* CATALOG(), BOOTSTRAP and DATA() sugar words so this file
|
|
|
|
* can be read by both genbki.sh and the C compiler.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* pg_rewrite definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_rewrite
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
*/
|
|
|
|
CATALOG(pg_rewrite)
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
NameData rulename;
|
|
|
|
char ev_type;
|
|
|
|
Oid ev_class;
|
|
|
|
int2 ev_attr;
|
|
|
|
bool is_instead;
|
1999-12-28 14:40:53 +01:00
|
|
|
text ev_qual;
|
|
|
|
text ev_action;
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_rewrite;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_rewrite corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_rewrite relation.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
|
|
|
typedef FormData_pg_rewrite *Form_pg_rewrite;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_rewrite
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Natts_pg_rewrite 7
|
|
|
|
#define Anum_pg_rewrite_rulename 1
|
|
|
|
#define Anum_pg_rewrite_ev_type 2
|
|
|
|
#define Anum_pg_rewrite_ev_class 3
|
|
|
|
#define Anum_pg_rewrite_ev_attr 4
|
|
|
|
#define Anum_pg_rewrite_is_instead 5
|
|
|
|
#define Anum_pg_rewrite_ev_qual 6
|
1997-10-25 07:25:10 +02:00
|
|
|
#define Anum_pg_rewrite_ev_action 7
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1998-09-01 06:40:42 +02:00
|
|
|
#endif /* PG_REWRITE_H */
|