~ubuntu-branches/debian/sid/postgresql-9.3/sid

« back to all changes in this revision

Viewing changes to src/include/catalog/pg_foreign_data_wrapper.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 05:39:52 UTC
  • Revision ID: package-import@ubuntu.com-20130508053952-1j7uilp7mjtrvq8q
Tags: upstream-9.3~beta1
ImportĀ upstreamĀ versionĀ 9.3~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-------------------------------------------------------------------------
 
2
 *
 
3
 * pg_foreign_data_wrapper.h
 
4
 *        definition of the system "foreign-data wrapper" relation (pg_foreign_data_wrapper)
 
5
 *        along with the relation's initial contents.
 
6
 *
 
7
 *
 
8
 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group
 
9
 * Portions Copyright (c) 1994, Regents of the University of California
 
10
 *
 
11
 * src/include/catalog/pg_foreign_data_wrapper.h
 
12
 *
 
13
 * NOTES
 
14
 *        the genbki.pl script reads this file and generates .bki
 
15
 *        information from the DATA() statements.
 
16
 *
 
17
 *-------------------------------------------------------------------------
 
18
 */
 
19
#ifndef PG_FOREIGN_DATA_WRAPPER_H
 
20
#define PG_FOREIGN_DATA_WRAPPER_H
 
21
 
 
22
#include "catalog/genbki.h"
 
23
 
 
24
/* ----------------
 
25
 *              pg_foreign_data_wrapper definition.  cpp turns this into
 
26
 *              typedef struct FormData_pg_foreign_data_wrapper
 
27
 * ----------------
 
28
 */
 
29
#define ForeignDataWrapperRelationId    2328
 
30
 
 
31
CATALOG(pg_foreign_data_wrapper,2328)
 
32
{
 
33
        NameData        fdwname;                /* foreign-data wrapper name */
 
34
        Oid                     fdwowner;               /* FDW owner */
 
35
        Oid                     fdwhandler;             /* handler function, or 0 if none */
 
36
        Oid                     fdwvalidator;   /* option validation function, or 0 if none */
 
37
 
 
38
#ifdef CATALOG_VARLEN                   /* variable-length fields start here */
 
39
        aclitem         fdwacl[1];              /* access permissions */
 
40
        text            fdwoptions[1];  /* FDW options */
 
41
#endif
 
42
} FormData_pg_foreign_data_wrapper;
 
43
 
 
44
/* ----------------
 
45
 *              Form_pg_fdw corresponds to a pointer to a tuple with
 
46
 *              the format of pg_fdw relation.
 
47
 * ----------------
 
48
 */
 
49
typedef FormData_pg_foreign_data_wrapper *Form_pg_foreign_data_wrapper;
 
50
 
 
51
/* ----------------
 
52
 *              compiler constants for pg_fdw
 
53
 * ----------------
 
54
 */
 
55
 
 
56
#define Natts_pg_foreign_data_wrapper                           6
 
57
#define Anum_pg_foreign_data_wrapper_fdwname            1
 
58
#define Anum_pg_foreign_data_wrapper_fdwowner           2
 
59
#define Anum_pg_foreign_data_wrapper_fdwhandler         3
 
60
#define Anum_pg_foreign_data_wrapper_fdwvalidator       4
 
61
#define Anum_pg_foreign_data_wrapper_fdwacl                     5
 
62
#define Anum_pg_foreign_data_wrapper_fdwoptions         6
 
63
 
 
64
#endif   /* PG_FOREIGN_DATA_WRAPPER_H */