mirror of
https://github.com/postgres/postgres.git
synced 2025-05-14 00:03:46 -04:00
Move queryjumble.c code to src/backend/nodes/
This will ease a follow-up move that will generate automatically this code. The C file is renamed, for consistency with the node-related files whose code are generated by gen_node_support.pl: - queryjumble.c -> queryjumblefuncs.c - utils/queryjumble.h -> nodes/queryjumble.h Per a suggestion from Peter Eisentraut. Reviewed-by: Peter Eisentraut Discussion: https://postgr.es/m/Y5BHOUhX3zTH/ig6@paquier.xyz
This commit is contained in:
parent
557890920d
commit
8eba3e3f02
@ -55,6 +55,7 @@
|
|||||||
#include "jit/jit.h"
|
#include "jit/jit.h"
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
|
#include "nodes/queryjumble.h"
|
||||||
#include "optimizer/planner.h"
|
#include "optimizer/planner.h"
|
||||||
#include "parser/analyze.h"
|
#include "parser/analyze.h"
|
||||||
#include "parser/parsetree.h"
|
#include "parser/parsetree.h"
|
||||||
@ -69,7 +70,6 @@
|
|||||||
#include "tcop/utility.h"
|
#include "tcop/utility.h"
|
||||||
#include "utils/acl.h"
|
#include "utils/acl.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/queryjumble.h"
|
|
||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
#include "utils/timestamp.h"
|
#include "utils/timestamp.h"
|
||||||
|
|
||||||
|
@ -27,6 +27,7 @@ OBJS = \
|
|||||||
outfuncs.o \
|
outfuncs.o \
|
||||||
params.o \
|
params.o \
|
||||||
print.o \
|
print.o \
|
||||||
|
queryjumblefuncs.o \
|
||||||
read.o \
|
read.o \
|
||||||
readfuncs.o \
|
readfuncs.o \
|
||||||
tidbitmap.o \
|
tidbitmap.o \
|
||||||
|
@ -10,6 +10,7 @@ backend_sources += files(
|
|||||||
'nodes.c',
|
'nodes.c',
|
||||||
'params.c',
|
'params.c',
|
||||||
'print.c',
|
'print.c',
|
||||||
|
'queryjumblefuncs.c',
|
||||||
'read.c',
|
'read.c',
|
||||||
'tidbitmap.c',
|
'tidbitmap.c',
|
||||||
'value.c',
|
'value.c',
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/*-------------------------------------------------------------------------
|
/*-------------------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* queryjumble.c
|
* queryjumblefuncs.c
|
||||||
* Query normalization and fingerprinting.
|
* Query normalization and fingerprinting.
|
||||||
*
|
*
|
||||||
* Normalization is a process whereby similar queries, typically differing only
|
* Normalization is a process whereby similar queries, typically differing only
|
||||||
@ -26,7 +26,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* src/backend/utils/misc/queryjumble.c
|
* src/backend/nodes/queryjumblefuncs.c
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -34,8 +34,8 @@
|
|||||||
|
|
||||||
#include "common/hashfn.h"
|
#include "common/hashfn.h"
|
||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
|
#include "nodes/queryjumble.h"
|
||||||
#include "parser/scansup.h"
|
#include "parser/scansup.h"
|
||||||
#include "utils/queryjumble.h"
|
|
||||||
|
|
||||||
#define JUMBLE_SIZE 1024 /* query serialization buffer size */
|
#define JUMBLE_SIZE 1024 /* query serialization buffer size */
|
||||||
|
|
@ -30,6 +30,7 @@
|
|||||||
#include "miscadmin.h"
|
#include "miscadmin.h"
|
||||||
#include "nodes/makefuncs.h"
|
#include "nodes/makefuncs.h"
|
||||||
#include "nodes/nodeFuncs.h"
|
#include "nodes/nodeFuncs.h"
|
||||||
|
#include "nodes/queryjumble.h"
|
||||||
#include "optimizer/optimizer.h"
|
#include "optimizer/optimizer.h"
|
||||||
#include "parser/analyze.h"
|
#include "parser/analyze.h"
|
||||||
#include "parser/parse_agg.h"
|
#include "parser/parse_agg.h"
|
||||||
@ -50,7 +51,6 @@
|
|||||||
#include "utils/backend_status.h"
|
#include "utils/backend_status.h"
|
||||||
#include "utils/builtins.h"
|
#include "utils/builtins.h"
|
||||||
#include "utils/guc.h"
|
#include "utils/guc.h"
|
||||||
#include "utils/queryjumble.h"
|
|
||||||
#include "utils/rel.h"
|
#include "utils/rel.h"
|
||||||
#include "utils/syscache.h"
|
#include "utils/syscache.h"
|
||||||
|
|
||||||
|
@ -102,6 +102,7 @@
|
|||||||
#include "libpq/libpq.h"
|
#include "libpq/libpq.h"
|
||||||
#include "libpq/pqformat.h"
|
#include "libpq/pqformat.h"
|
||||||
#include "libpq/pqsignal.h"
|
#include "libpq/pqsignal.h"
|
||||||
|
#include "nodes/queryjumble.h"
|
||||||
#include "pg_getopt.h"
|
#include "pg_getopt.h"
|
||||||
#include "pgstat.h"
|
#include "pgstat.h"
|
||||||
#include "port/pg_bswap.h"
|
#include "port/pg_bswap.h"
|
||||||
@ -126,7 +127,6 @@
|
|||||||
#include "utils/memutils.h"
|
#include "utils/memutils.h"
|
||||||
#include "utils/pidfile.h"
|
#include "utils/pidfile.h"
|
||||||
#include "utils/ps_status.h"
|
#include "utils/ps_status.h"
|
||||||
#include "utils/queryjumble.h"
|
|
||||||
#include "utils/timeout.h"
|
#include "utils/timeout.h"
|
||||||
#include "utils/timestamp.h"
|
#include "utils/timestamp.h"
|
||||||
#include "utils/varlena.h"
|
#include "utils/varlena.h"
|
||||||
|
@ -26,7 +26,6 @@ OBJS = \
|
|||||||
pg_rusage.o \
|
pg_rusage.o \
|
||||||
ps_status.o \
|
ps_status.o \
|
||||||
queryenvironment.o \
|
queryenvironment.o \
|
||||||
queryjumble.o \
|
|
||||||
rls.o \
|
rls.o \
|
||||||
sampling.o \
|
sampling.o \
|
||||||
superuser.o \
|
superuser.o \
|
||||||
|
@ -43,6 +43,7 @@
|
|||||||
#include "jit/jit.h"
|
#include "jit/jit.h"
|
||||||
#include "libpq/auth.h"
|
#include "libpq/auth.h"
|
||||||
#include "libpq/libpq.h"
|
#include "libpq/libpq.h"
|
||||||
|
#include "nodes/queryjumble.h"
|
||||||
#include "optimizer/cost.h"
|
#include "optimizer/cost.h"
|
||||||
#include "optimizer/geqo.h"
|
#include "optimizer/geqo.h"
|
||||||
#include "optimizer/optimizer.h"
|
#include "optimizer/optimizer.h"
|
||||||
@ -77,7 +78,6 @@
|
|||||||
#include "utils/pg_locale.h"
|
#include "utils/pg_locale.h"
|
||||||
#include "utils/portal.h"
|
#include "utils/portal.h"
|
||||||
#include "utils/ps_status.h"
|
#include "utils/ps_status.h"
|
||||||
#include "utils/queryjumble.h"
|
|
||||||
#include "utils/inval.h"
|
#include "utils/inval.h"
|
||||||
#include "utils/xml.h"
|
#include "utils/xml.h"
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ backend_sources += files(
|
|||||||
'pg_rusage.c',
|
'pg_rusage.c',
|
||||||
'ps_status.c',
|
'ps_status.c',
|
||||||
'queryenvironment.c',
|
'queryenvironment.c',
|
||||||
'queryjumble.c',
|
|
||||||
'rls.c',
|
'rls.c',
|
||||||
'sampling.c',
|
'sampling.c',
|
||||||
'superuser.c',
|
'superuser.c',
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
* Portions Copyright (c) 1994, Regents of the University of California
|
* Portions Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* src/include/utils/queryjumble.h
|
* src/include/nodes/queryjumble.h
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
@ -15,8 +15,8 @@
|
|||||||
#define ANALYZE_H
|
#define ANALYZE_H
|
||||||
|
|
||||||
#include "nodes/params.h"
|
#include "nodes/params.h"
|
||||||
|
#include "nodes/queryjumble.h"
|
||||||
#include "parser/parse_node.h"
|
#include "parser/parse_node.h"
|
||||||
#include "utils/queryjumble.h"
|
|
||||||
|
|
||||||
/* Hook for plugins to get control at end of parse analysis */
|
/* Hook for plugins to get control at end of parse analysis */
|
||||||
typedef void (*post_parse_analyze_hook_type) (ParseState *pstate,
|
typedef void (*post_parse_analyze_hook_type) (ParseState *pstate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user