00001 /*------------------------------------------------------------------------- 00002 * 00003 * attoptcache.h 00004 * Attribute options cache. 00005 * 00006 * Portions Copyright (c) 1996-2013, PostgreSQL Global Development Group 00007 * Portions Copyright (c) 1994, Regents of the University of California 00008 * 00009 * src/include/utils/attoptcache.h 00010 * 00011 *------------------------------------------------------------------------- 00012 */ 00013 #ifndef SPCCACHE_H 00014 #define SPCCACHE_H 00015 00016 /* 00017 * Attribute options. 00018 */ 00019 typedef struct AttributeOpts 00020 { 00021 int32 vl_len_; /* varlena header (do not touch directly!) */ 00022 float8 n_distinct; 00023 float8 n_distinct_inherited; 00024 } AttributeOpts; 00025 00026 AttributeOpts *get_attribute_options(Oid spcid, int attnum); 00027 00028 #endif /* SPCCACHE_H */