2010-01-22 17:42:31 +01:00
|
|
|
/*-------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* attoptcache.h
|
|
|
|
* Attribute options cache.
|
|
|
|
*
|
2015-01-06 17:43:47 +01:00
|
|
|
* Portions Copyright (c) 1996-2015, PostgreSQL Global Development Group
|
2010-01-22 17:42:31 +01:00
|
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
|
|
*
|
2010-09-20 22:08:53 +02:00
|
|
|
* src/include/utils/attoptcache.h
|
2010-01-22 17:42:31 +01:00
|
|
|
*
|
|
|
|
*-------------------------------------------------------------------------
|
|
|
|
*/
|
2013-07-07 13:36:20 +02:00
|
|
|
#ifndef ATTOPTCACHE_H
|
|
|
|
#define ATTOPTCACHE_H
|
2010-01-22 17:42:31 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Attribute options.
|
|
|
|
*/
|
|
|
|
typedef struct AttributeOpts
|
|
|
|
{
|
|
|
|
int32 vl_len_; /* varlena header (do not touch directly!) */
|
|
|
|
float8 n_distinct;
|
|
|
|
float8 n_distinct_inherited;
|
|
|
|
} AttributeOpts;
|
|
|
|
|
|
|
|
AttributeOpts *get_attribute_options(Oid spcid, int attnum);
|
|
|
|
|
2013-07-07 13:36:20 +02:00
|
|
|
#endif /* ATTOPTCACHE_H */
|