mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
We usually don't change the name of structs between the struct name itself and the name of the typedef. Additionally, structs that are usually used via a typedef that hides being a pointer, are commonly suffixed Data. Change tupdesc code to follow those convention. This is triggered by a future patch that intends to forward declare TupleDescData in another header - keeping with the naming scheme makes that easier to understand. Author: Andres Freund Discussion: https://postgr.es/m/20190114000701.y4ttcb74jpskkcfb@alap3.anarazel.de
29 lines
865 B
C
29 lines
865 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* tupdesc_details.h
|
|
* POSTGRES tuple descriptor definitions we can't include everywhere
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/access/tupdesc_details.h
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
|
|
#ifndef TUPDESC_DETAILS_H
|
|
#define TUPDESC_DETAILS_H
|
|
|
|
/*
|
|
* Structure used to represent value to be used when the attribute is not
|
|
* present at all in a tuple, i.e. when the column was created after the tuple
|
|
*/
|
|
typedef struct AttrMissing
|
|
{
|
|
bool am_present; /* true if non-NULL missing value exists */
|
|
Datum am_value; /* value when attribute is missing */
|
|
} AttrMissing;
|
|
|
|
#endif /* TUPDESC_DETAILS_H */
|