mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-11 10:37:38 +08:00
Make sure that function declarations use names that exactly match the corresponding names from function definitions in optimizer, parser, utility, libpq, and "commands" code, as well as in remaining library code. Do the same for all code related to frontend programs (with the exception of pg_dump/pg_dumpall related code). Like other recent commits that cleaned up function parameter names, this commit was written with help from clang-tidy. Later commits will handle ecpg and pg_dump/pg_dumpall. Author: Peter Geoghegan <pg@bowt.ie> Reviewed-By: David Rowley <dgrowleyml@gmail.com> Discussion: https://postgr.es/m/CAH2-WznJt9CMM9KJTMjJh_zbL5hD9oX44qdJ4aqZtjFi-zA3Tg@mail.gmail.com
29 lines
739 B
C
29 lines
739 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* attoptcache.h
|
|
* Attribute options cache.
|
|
*
|
|
* Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/utils/attoptcache.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef ATTOPTCACHE_H
|
|
#define ATTOPTCACHE_H
|
|
|
|
/*
|
|
* Attribute options.
|
|
*/
|
|
typedef struct AttributeOpts
|
|
{
|
|
int32 vl_len_; /* varlena header (do not touch directly!) */
|
|
float8 n_distinct;
|
|
float8 n_distinct_inherited;
|
|
} AttributeOpts;
|
|
|
|
extern AttributeOpts *get_attribute_options(Oid attrelid, int attnum);
|
|
|
|
#endif /* ATTOPTCACHE_H */
|