PostgreSQL Source Code  git master
pg_rewrite.h File Reference
#include "catalog/genbki.h"
#include "catalog/pg_rewrite_d.h"
Include dependency graph for pg_rewrite.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define RewriteOidIndexId   2692
 
#define RewriteRelRulenameIndexId   2693
 

Typedefs

typedef FormData_pg_rewriteForm_pg_rewrite
 

Functions

 CATALOG (pg_rewrite, 2618, RewriteRelationId)
 
 DECLARE_TOAST (pg_rewrite, 2838, 2839)
 
 DECLARE_UNIQUE_INDEX (pg_rewrite_oid_index, 2692, on pg_rewrite using btree(oid oid_ops))
 
 DECLARE_UNIQUE_INDEX (pg_rewrite_rel_rulename_index, 2693, on pg_rewrite using btree(ev_class oid_ops, rulename name_ops))
 

Variables

 FormData_pg_rewrite
 

Macro Definition Documentation

◆ RewriteOidIndexId

#define RewriteOidIndexId   2692

Definition at line 57 of file pg_rewrite.h.

Referenced by getObjectDescription(), InsertRule(), and RemoveRewriteRuleById().

◆ RewriteRelRulenameIndexId

#define RewriteRelRulenameIndexId   2693

Definition at line 59 of file pg_rewrite.h.

Referenced by RelationBuildRuleLock(), and RelationCacheInitializePhase3().

Typedef Documentation

◆ Form_pg_rewrite

Definition at line 52 of file pg_rewrite.h.

Function Documentation

◆ CATALOG()

CATALOG ( pg_rewrite  ,
2618  ,
RewriteRelationId   
)

Definition at line 32 of file pg_rewrite.h.

References BKI_FORCE_NOT_NULL.

33 {
34  Oid oid; /* oid */
35  NameData rulename;
36  Oid ev_class;
37  char ev_type;
38  char ev_enabled;
39  bool is_instead;
40 
41 #ifdef CATALOG_VARLEN /* variable-length fields start here */
42  pg_node_tree ev_qual BKI_FORCE_NOT_NULL;
43  pg_node_tree ev_action BKI_FORCE_NOT_NULL;
44 #endif
unsigned int Oid
Definition: postgres_ext.h:31
#define BKI_FORCE_NOT_NULL
Definition: genbki.h:33
Definition: c.h:671
FormData_pg_rewrite
Definition: pg_rewrite.h:45

◆ DECLARE_TOAST()

DECLARE_TOAST ( pg_rewrite  ,
2838  ,
2839   
)

◆ DECLARE_UNIQUE_INDEX() [1/2]

DECLARE_UNIQUE_INDEX ( pg_rewrite_oid_index  ,
2692  ,
on pg_rewrite using   btreeoid oid_ops 
)

◆ DECLARE_UNIQUE_INDEX() [2/2]

DECLARE_UNIQUE_INDEX ( pg_rewrite_rel_rulename_index  ,
2693  ,
on pg_rewrite using   btreeev_class oid_ops, rulename name_ops 
)

Variable Documentation

◆ FormData_pg_rewrite

FormData_pg_rewrite

Definition at line 45 of file pg_rewrite.h.