1996-08-28 03:59:28 +02:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* pg_statistic.h--
|
1997-09-07 07:04:48 +02:00
|
|
|
* definition of the system "statistic" relation (pg_statistic)
|
|
|
|
* along with the relation's initial contents.
|
1996-08-28 03:59:28 +02:00
|
|
|
*
|
|
|
|
*
|
|
|
|
* Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
1997-09-08 04:41:22 +02:00
|
|
|
* $Id: pg_statistic.h,v 1.4 1997/09/08 02:35:27 momjian 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_STATISTIC_H
|
|
|
|
#define PG_STATISTIC_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_statistic definition. cpp turns this into
|
|
|
|
* typedef struct FormData_pg_statistic
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
*/
|
|
|
|
CATALOG(pg_statistic)
|
|
|
|
{
|
1997-09-08 04:41:22 +02:00
|
|
|
Oid starelid;
|
|
|
|
int2 staattnum;
|
|
|
|
Oid staop;
|
|
|
|
text stalokey; /* VARIABLE LENGTH FIELD */
|
|
|
|
text stahikey; /* VARIABLE LENGTH FIELD */
|
1996-08-28 03:59:28 +02:00
|
|
|
} FormData_pg_statistic;
|
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* Form_pg_statistic corresponds to a pointer to a tuple with
|
|
|
|
* the format of pg_statistic relation.
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
typedef FormData_pg_statistic *Form_pg_statistic;
|
1996-08-28 03:59:28 +02:00
|
|
|
|
|
|
|
/* ----------------
|
1997-09-07 07:04:48 +02:00
|
|
|
* compiler constants for pg_statistic
|
1996-08-28 03:59:28 +02:00
|
|
|
* ----------------
|
|
|
|
*/
|
1997-09-07 07:04:48 +02:00
|
|
|
#define Natts_pg_statistic 5
|
|
|
|
#define Anum_pg_statistic_starelid 1
|
|
|
|
#define Anum_pg_statistic_staattnum 2
|
|
|
|
#define Anum_pg_statistic_staop 3
|
|
|
|
#define Anum_pg_statistic_stalokey 4
|
|
|
|
#define Anum_pg_statistic_stahikey 5
|
1996-08-28 03:59:28 +02:00
|
|
|
|
1997-09-07 07:04:48 +02:00
|
|
|
#endif /* PG_STATISTIC_H */
|