]> granicus.if.org Git - postgresql/blob - src/include/utils/attoptcache.h
017bcbd91ec91a43c62abf1e1f432b3ee852352b
[postgresql] / src / include / utils / attoptcache.h
1 /*-------------------------------------------------------------------------
2  *
3  * attoptcache.h
4  *        Attribute options cache.
5  *
6  * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group
7  * Portions Copyright (c) 1994, Regents of the University of California
8  *
9  * $PostgreSQL: pgsql/src/include/utils/attoptcache.h,v 1.1 2010/01/22 16:42:31 rhaas Exp $
10  *
11  *-------------------------------------------------------------------------
12  */
13 #ifndef SPCCACHE_H
14 #define SPCCACHE_H
15
16 /*
17  * Attribute options.
18  */
19 typedef struct AttributeOpts
20 {
21         int32           vl_len_;                /* varlena header (do not touch directly!) */
22         float8          n_distinct;
23         float8          n_distinct_inherited;
24 } AttributeOpts;
25
26 AttributeOpts *get_attribute_options(Oid spcid, int attnum);
27
28 #endif   /* SPCCACHE_H */