mirror of
https://github.com/postgres/postgres.git
synced 2025-12-22 17:42:17 +03:00
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
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "utils/ascii.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "varatt.h"
|
||||
|
||||
static void pg_to_ascii(unsigned char *src, unsigned char *src_end,
|
||||
unsigned char *dest, int enc);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "libpq/pqformat.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "varatt.h"
|
||||
|
||||
#define ISOCTAL(c) (((c) >= '0') && ((c) <= '7'))
|
||||
#define TOOCTAL(c) ((c) + '0')
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "common/md5.h"
|
||||
#include "common/sha2.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "mb/pg_wchar.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -88,6 +88,7 @@
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/numeric.h"
|
||||
#include "utils/pg_locale.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
/* ----------
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#include "utils/float.h"
|
||||
#include "utils/fmgrprotos.h"
|
||||
#include "utils/geo_decls.h"
|
||||
#include "varatt.h"
|
||||
|
||||
/*
|
||||
* * Type constructors have this form:
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "miscadmin.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/pg_locale.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
#define LIKE_TRUE 1
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
#include "access/stratnum.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/inet.h"
|
||||
#include "varatt.h"
|
||||
|
||||
/*
|
||||
* Operator strategy numbers used in the GiST inet_ops opclass
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#include "catalog/pg_type.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/inet.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
static int inet_spg_node_number(const inet *val, int commonbits);
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/formatting.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
static text *dotrim(const char *string, int stringlen,
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "postgres.h"
|
||||
|
||||
#include "utils/builtins.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -42,6 +42,7 @@
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/rangetypes.h"
|
||||
#include "utils/timestamp.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
/* fn_extra cache entry for one of the range I/O functions */
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include "utils/lsyscache.h"
|
||||
#include "utils/rangetypes.h"
|
||||
#include "utils/multirangetypes.h"
|
||||
#include "varatt.h"
|
||||
|
||||
static int float8_qsort_cmp(const void *a1, const void *a2, void *arg);
|
||||
static int range_bound_qsort_cmp(const void *a1, const void *a2, void *arg);
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "tsearch/ts_type.h"
|
||||
#include "tsearch/ts_utils.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
Datum
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/pg_crc.h"
|
||||
#include "varatt.h"
|
||||
|
||||
/* FTS operator priorities, see ts_type.h */
|
||||
const int tsearch_op_priority[OP_COUNT] =
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
|
||||
#include "miscadmin.h"
|
||||
#include "tsearch/ts_utils.h"
|
||||
#include "varatt.h"
|
||||
|
||||
typedef struct NODE
|
||||
{
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "lib/qunique.h"
|
||||
#include "tsearch/ts_utils.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "varatt.h"
|
||||
|
||||
Datum
|
||||
tsquery_numnode(PG_FUNCTION_ARGS)
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
|
||||
#include "miscadmin.h"
|
||||
#include "tsearch/ts_utils.h"
|
||||
#include "varatt.h"
|
||||
|
||||
/*
|
||||
* Build QTNode tree for a tsquery given in QueryItem array format.
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#include "tsearch/ts_utils.h"
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "varatt.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
1
src/backend/utils/cache/attoptcache.c
vendored
1
src/backend/utils/cache/attoptcache.c
vendored
@@ -22,6 +22,7 @@
|
||||
#include "utils/hsearch.h"
|
||||
#include "utils/inval.h"
|
||||
#include "utils/syscache.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
/* Hash table for information about each attribute's options */
|
||||
|
||||
1
src/backend/utils/cache/spccache.c
vendored
1
src/backend/utils/cache/spccache.c
vendored
@@ -29,6 +29,7 @@
|
||||
#include "utils/inval.h"
|
||||
#include "utils/spccache.h"
|
||||
#include "utils/syscache.h"
|
||||
#include "varatt.h"
|
||||
|
||||
|
||||
/* Hash table for information about each tablespace */
|
||||
|
||||
@@ -40,6 +40,7 @@
|
||||
#include "utils/builtins.h"
|
||||
#include "utils/memutils.h"
|
||||
#include "utils/syscache.h"
|
||||
#include "varatt.h"
|
||||
|
||||
/*
|
||||
* We maintain a simple linked list caching the fmgr lookup info for the
|
||||
|
||||
Reference in New Issue
Block a user