Skip to content

Commit d952373

Browse files
committed
New header varatt.h split off from postgres.h
This new header contains all the variable-length data types support (TOAST support) from postgres.h, which isn't needed by large parts of the backend code. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/ddcce239-0f29-6e62-4b47-1f8ca742addf%40enterprisedb.com
1 parent cd06ccd commit d952373

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+412
-353
lines changed

contrib/citext/citext.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "utils/builtins.h"
99
#include "utils/formatting.h"
1010
#include "utils/varlena.h"
11+
#include "varatt.h"
1112

1213
PG_MODULE_MAGIC;
1314

contrib/cube/cubeparse.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "cubedata.h"
1010
#include "nodes/miscnodes.h"
1111
#include "utils/float.h"
12+
#include "varatt.h"
1213

1314
/* All grammar constructs return strings */
1415
#define YYSTYPE char *

contrib/fuzzystrmatch/fuzzystrmatch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#include "mb/pg_wchar.h"
4444
#include "utils/builtins.h"
4545
#include "utils/varlena.h"
46+
#include "varatt.h"
4647

4748
PG_MODULE_MAGIC;
4849

contrib/ltree/ltree_io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "libpq/pqformat.h"
1212
#include "ltree.h"
1313
#include "utils/memutils.h"
14+
#include "varatt.h"
1415

1516

1617
typedef struct

contrib/ltree/ltxtquery_io.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include "ltree.h"
1313
#include "miscadmin.h"
1414
#include "nodes/miscnodes.h"
15+
#include "varatt.h"
1516

1617

1718
/* parser's states */

contrib/pg_trgm/trgm_gin.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include "access/stratnum.h"
88
#include "fmgr.h"
99
#include "trgm.h"
10+
#include "varatt.h"
1011

1112
PG_FUNCTION_INFO_V1(gin_extract_trgm);
1213
PG_FUNCTION_INFO_V1(gin_extract_value_trgm);

contrib/pg_trgm/trgm_gist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "fmgr.h"
99
#include "port/pg_bitutils.h"
1010
#include "trgm.h"
11+
#include "varatt.h"
1112

1213
/* gist_trgm_ops opclass options */
1314
typedef struct

contrib/pg_trgm/trgm_regexp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@
196196
#include "tsearch/ts_locale.h"
197197
#include "utils/hsearch.h"
198198
#include "utils/memutils.h"
199+
#include "varatt.h"
199200

200201
/*
201202
* Uncomment (or use -DTRGM_REGEXP_DEBUG) to print debug info,

contrib/pgcrypto/pgcrypto.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
#include "px.h"
4040
#include "utils/builtins.h"
4141
#include "utils/uuid.h"
42+
#include "varatt.h"
4243

4344
PG_MODULE_MAGIC;
4445

contrib/uuid-ossp/uuid-ossp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "port/pg_bswap.h"
2020
#include "utils/builtins.h"
2121
#include "utils/uuid.h"
22+
#include "varatt.h"
2223

2324
/*
2425
* It's possible that there's more than one uuid.h header file present.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy