]> granicus.if.org Git - postgresql/blob - src/include/catalog/pg_statistic.h
Massive commit to run PGINDENT on all *.c and *.h files.
[postgresql] / src / include / catalog / pg_statistic.h
1 /*-------------------------------------------------------------------------
2  *
3  * pg_statistic.h--
4  *        definition of the system "statistic" relation (pg_statistic)
5  *        along with the relation's initial contents.
6  *
7  *
8  * Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: pg_statistic.h,v 1.3 1997/09/07 04:57:10 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_STATISTIC_H
19 #define PG_STATISTIC_H
20
21 /* ----------------
22  *              postgres.h contains the system type definintions and the
23  *              CATALOG(), BOOTSTRAP and DATA() sugar words so this file
24  *              can be read by both genbki.sh and the C compiler.
25  * ----------------
26  */
27
28 /* ----------------
29  *              pg_statistic definition.  cpp turns this into
30  *              typedef struct FormData_pg_statistic
31  * ----------------
32  */
33 CATALOG(pg_statistic)
34 {
35         Oid                             starelid;
36         int2                    staattnum;
37         Oid                             staop;
38         text                    stalokey;       /* VARIABLE LENGTH FIELD */
39         text                    stahikey;       /* VARIABLE LENGTH FIELD */
40 } FormData_pg_statistic;
41
42 /* ----------------
43  *              Form_pg_statistic corresponds to a pointer to a tuple with
44  *              the format of pg_statistic relation.
45  * ----------------
46  */
47 typedef FormData_pg_statistic *Form_pg_statistic;
48
49 /* ----------------
50  *              compiler constants for pg_statistic
51  * ----------------
52  */
53 #define Natts_pg_statistic                              5
54 #define Anum_pg_statistic_starelid              1
55 #define Anum_pg_statistic_staattnum             2
56 #define Anum_pg_statistic_staop                 3
57 #define Anum_pg_statistic_stalokey              4
58 #define Anum_pg_statistic_stahikey              5
59
60 #endif                                                  /* PG_STATISTIC_H */