pg_rewrite.h
上传用户:blenddy
上传日期:2007-01-07
资源大小:6495k
文件大小:2k
源码类别:

数据库系统

开发平台:

Unix_Linux

  1. /*-------------------------------------------------------------------------
  2.  *
  3.  * pg_rewrite.h
  4.  *   definition of the system "rewrite-rule" relation (pg_rewrite)
  5.  *   along with the relation's initial contents.
  6.  *
  7.  *
  8.  * Copyright (c) 1994, Regents of the University of California
  9.  *
  10.  * $Id: pg_rewrite.h,v 1.7 1999/02/13 23:21:14 momjian Exp $
  11.  *
  12.  * NOTES
  13.  *   the genbki.sh script reads this file and generates .bki
  14.  *   information from the DATA() statements.
  15.  *
  16.  *-------------------------------------------------------------------------
  17.  */
  18. #ifndef PG_REWRITE_H
  19. #define PG_REWRITE_H
  20. /* ----------------
  21.  * postgres.h contains the system type definintions and the
  22.  * CATALOG(), BOOTSTRAP and DATA() sugar words so this file
  23.  * can be read by both genbki.sh and the C compiler.
  24.  * ----------------
  25.  */
  26. /* ----------------
  27.  * pg_rewrite definition. cpp turns this into
  28.  * typedef struct FormData_pg_rewrite
  29.  * ----------------
  30.  */
  31. CATALOG(pg_rewrite)
  32. {
  33. NameData rulename;
  34. char ev_type;
  35. Oid ev_class;
  36. int2 ev_attr;
  37. bool is_instead;
  38. text ev_qual; /* VARLENA */
  39. text ev_action; /* VARLENA */
  40. } FormData_pg_rewrite;
  41. /* ----------------
  42.  * Form_pg_rewrite corresponds to a pointer to a tuple with
  43.  * the format of pg_rewrite relation.
  44.  * ----------------
  45.  */
  46. typedef FormData_pg_rewrite *Form_pg_rewrite;
  47. /* ----------------
  48.  * compiler constants for pg_rewrite
  49.  * ----------------
  50.  */
  51. #define Natts_pg_rewrite 7
  52. #define Anum_pg_rewrite_rulename 1
  53. #define Anum_pg_rewrite_ev_type 2
  54. #define Anum_pg_rewrite_ev_class 3
  55. #define Anum_pg_rewrite_ev_attr 4
  56. #define Anum_pg_rewrite_is_instead 5
  57. #define Anum_pg_rewrite_ev_qual 6
  58. #define Anum_pg_rewrite_ev_action 7
  59. #endif  /* PG_REWRITE_H */