This commit is contained in:
The__Flash
2023-04-17 11:05:52 +00:00
parent 39e17556f9
commit 6c1635e237
24 changed files with 1183687 additions and 1 deletions

BIN
src/bin/gs_loader/gs_loader Executable file

Binary file not shown.

View File

@ -102,7 +102,7 @@ else
@$(missing) flex $< $@
endif
hint_gram.o keywords.o parser.o: hint_gram.hpp kwlist_d.h
hint_gram.o keywords.o parser.0: hint_gram.hpp kwlist_d.h
# gram.cpp, gram.hpp, and scan.inc are in the distribution tarball, so they
# are not cleaned here.

View File

@ -0,0 +1,118 @@
/*-------------------------------------------------------------------------
*
* c_kwlist_d.h
* List of keywords represented as a ScanKeywordList.
*
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* NOTES
* ******************************
* *** DO NOT EDIT THIS FILE! ***
* ******************************
*
* It has been GENERATED by src/tools/gen_keywordlist.pl
*
*-------------------------------------------------------------------------
*/
#ifndef C_KWLIST_D_H
#define C_KWLIST_D_H
#include "parser/kwlookup.h"
static const char ScanCKeywords_kw_string[] =
"VARCHAR\0"
"auto\0"
"bool\0"
"char\0"
"const\0"
"enum\0"
"extern\0"
"float\0"
"hour\0"
"int\0"
"long\0"
"minute\0"
"month\0"
"register\0"
"second\0"
"short\0"
"signed\0"
"static\0"
"struct\0"
"to\0"
"typedef\0"
"union\0"
"unsigned\0"
"varchar\0"
"volatile\0"
"year";
static const uint16 ScanCKeywords_kw_offsets[] = {
0,
8,
13,
18,
23,
29,
34,
41,
47,
52,
56,
61,
68,
74,
83,
90,
96,
103,
110,
117,
120,
128,
134,
143,
151,
160,
};
#define SCANCKEYWORDS_NUM_KEYWORDS 26
static int
ScanCKeywords_hash_func(const void *key, size_t keylen)
{
static const int8 h[53] = {
-5, 0, 127, -9, 0, 127, 127, 3,
127, 15, 127, 127, 127, 127, 11, 16,
1, 0, 6, 16, 9, 5, 127, 0,
127, 20, 24, -5, 5, 18, 5, 18,
2, 127, 127, 127, 20, 127, -17, 0,
127, 2, 127, 6, 127, -10, 12, 19,
0, 0, 0, 127, 0
};
const unsigned char *k = (const unsigned char *) key;
uint32 a = 0;
uint32 b = 0;
while (keylen--)
{
unsigned char c = *k++;
a = a * 257 + c;
b = b * 17 + c;
}
return h[a % 53] + h[b % 53];
}
static const ScanKeywordList ScanCKeywords = {
ScanCKeywords_kw_string,
ScanCKeywords_kw_offsets,
ScanCKeywords_hash_func,
SCANCKEYWORDS_NUM_KEYWORDS,
8
};
#endif /* C_KWLIST_D_H */

Binary file not shown.

View File

@ -0,0 +1,152 @@
/*-------------------------------------------------------------------------
*
* ecpg_kwlist_d.h
* List of keywords represented as a ScanKeywordList.
*
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* NOTES
* ******************************
* *** DO NOT EDIT THIS FILE! ***
* ******************************
*
* It has been GENERATED by src/tools/gen_keywordlist.pl
*
*-------------------------------------------------------------------------
*/
#ifndef ECPG_KWLIST_D_H
#define ECPG_KWLIST_D_H
#include "parser/kwlookup.h"
static const char ScanECPGKeywords_kw_string[] =
"allocate\0"
"autocommit\0"
"bool\0"
"break\0"
"call\0"
"cardinality\0"
"count\0"
"datetime_interval_code\0"
"datetime_interval_precision\0"
"describe\0"
"descriptor\0"
"found\0"
"free\0"
"get\0"
"go\0"
"goto\0"
"identified\0"
"indicator\0"
"key_member\0"
"length\0"
"long\0"
"nullable\0"
"octet_length\0"
"open\0"
"output\0"
"reference\0"
"returned_length\0"
"returned_octet_length\0"
"scale\0"
"section\0"
"short\0"
"signed\0"
"sql\0"
"sqlerror\0"
"sqlprint\0"
"sqlwarning\0"
"stop\0"
"struct\0"
"unsigned\0"
"var\0"
"whenever";
static const uint16 ScanECPGKeywords_kw_offsets[] = {
0,
9,
20,
25,
31,
36,
48,
54,
77,
105,
114,
125,
131,
136,
140,
143,
148,
159,
169,
180,
187,
192,
201,
214,
219,
226,
236,
252,
274,
280,
288,
294,
301,
305,
314,
323,
334,
339,
346,
355,
359,
};
#define SCANECPGKEYWORDS_NUM_KEYWORDS 41
static int
ScanECPGKeywords_hash_func(const void *key, size_t keylen)
{
static const int8 h[83] = {
12, 17, 127, 26, 31, 12, 54, 0,
127, -14, -30, 127, -31, 30, 127, 0,
127, 34, 0, 127, 127, 5, 14, 127,
127, 38, 127, -28, 127, 10, 21, -20,
34, 0, 39, 127, 127, -24, 127, 127,
-19, 0, 22, 127, 127, 127, 37, 127,
0, 7, 44, 6, 127, 55, 20, 0,
127, 7, 127, 39, 127, 127, 127, -16,
127, 127, 0, 0, 0, 0, 16, 127,
26, 127, 4, 11, 127, 24, 0, 32,
18, 127, 127
};
const unsigned char *k = (const unsigned char *) key;
uint32 a = 0;
uint32 b = 0;
while (keylen--)
{
unsigned char c = *k++ | 0x20;
a = a * 257 + c;
b = b * 127 + c;
}
return h[a % 83] + h[b % 83];
}
static const ScanKeywordList ScanECPGKeywords = {
ScanECPGKeywords_kw_string,
ScanECPGKeywords_kw_offsets,
ScanECPGKeywords_hash_func,
SCANECPGKEYWORDS_NUM_KEYWORDS,
27
};
#endif /* ECPG_KWLIST_D_H */

View File

@ -0,0 +1 @@
../../../../../src/common/backend/parser/kwlookup.cpp

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,886 @@
/* A Bison parser, made by GNU Bison 3.0.4. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
/* As a special exception, you may create a larger work that contains
part or all of the Bison parser skeleton and distribute that work
under terms of your choice, so long as that work isn't itself a
parser generator using the skeleton or a modified version thereof
as a parser skeleton. Alternatively, if you modify or redistribute
the parser skeleton itself, you may (at your option) remove this
special exception, which will cause the skeleton and the resulting
Bison output files to be licensed under the GNU General Public
License without this special exception.
This special exception was added by the Free Software Foundation in
version 2.2 of Bison. */
#ifndef YY_BASE_YY_PREPROC_HPP_INCLUDED
# define YY_BASE_YY_PREPROC_HPP_INCLUDED
/* Debug traces. */
#ifndef YYDEBUG
# define YYDEBUG 1
#endif
#if YYDEBUG
extern int base_yydebug;
#endif
/* Token type. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
SQL_ALLOCATE = 258,
SQL_AUTOCOMMIT = 259,
SQL_BOOL = 260,
SQL_BREAK = 261,
SQL_CALL = 262,
SQL_CARDINALITY = 263,
SQL_COUNT = 264,
SQL_DATETIME_INTERVAL_CODE = 265,
SQL_DATETIME_INTERVAL_PRECISION = 266,
SQL_DESCRIBE = 267,
SQL_DESCRIPTOR = 268,
SQL_FOUND = 269,
SQL_FREE = 270,
SQL_GET = 271,
SQL_GO = 272,
SQL_GOTO = 273,
SQL_IDENTIFIED = 274,
SQL_INDICATOR = 275,
SQL_KEY_MEMBER = 276,
SQL_LENGTH = 277,
SQL_LONG = 278,
SQL_NULLABLE = 279,
SQL_OCTET_LENGTH = 280,
SQL_OPEN = 281,
SQL_OUTPUT = 282,
SQL_REFERENCE = 283,
SQL_RETURNED_LENGTH = 284,
SQL_RETURNED_OCTET_LENGTH = 285,
SQL_SCALE = 286,
SQL_SECTION = 287,
SQL_SHORT = 288,
SQL_SIGNED = 289,
SQL_SQL = 290,
SQL_SQLERROR = 291,
SQL_SQLPRINT = 292,
SQL_SQLWARNING = 293,
SQL_START = 294,
SQL_STOP = 295,
SQL_STRUCT = 296,
SQL_UNSIGNED = 297,
SQL_VAR = 298,
SQL_WHENEVER = 299,
S_ADD = 300,
S_AND = 301,
S_ANYTHING = 302,
S_AUTO = 303,
S_CONST = 304,
S_DEC = 305,
S_DIV = 306,
S_DOTPOINT = 307,
S_EQUAL = 308,
S_EXTERN = 309,
S_INC = 310,
S_LSHIFT = 311,
S_MEMPOINT = 312,
S_MEMBER = 313,
S_MOD = 314,
S_MUL = 315,
S_NEQUAL = 316,
S_OR = 317,
S_REGISTER = 318,
S_RSHIFT = 319,
S_STATIC = 320,
S_SUB = 321,
S_VOLATILE = 322,
S_TYPEDEF = 323,
CSTRING = 324,
CVARIABLE = 325,
CPP_LINE = 326,
SQL_IP = 327,
DOLCONST = 328,
ECONST = 329,
NCONST = 330,
UCONST = 331,
UIDENT = 332,
IDENT = 333,
FCONST = 334,
SCONST = 335,
BCONST = 336,
VCONST = 337,
XCONST = 338,
Op = 339,
CmpOp = 340,
CmpNullOp = 341,
COMMENTSTRING = 342,
SET_USER_IDENT = 343,
SET_IDENT = 344,
ICONST = 345,
PARAM = 346,
TYPECAST = 347,
ORA_JOINOP = 348,
DOT_DOT = 349,
COLON_EQUALS = 350,
PARA_EQUALS = 351,
SET_IDENT_SESSION = 352,
SET_IDENT_GLOBAL = 353,
ABORT_P = 354,
ABSOLUTE_P = 355,
ACCESS = 356,
ACCOUNT = 357,
ACTION = 358,
ADD_P = 359,
ADMIN = 360,
AFTER = 361,
AGGREGATE = 362,
ALGORITHM = 363,
ALL = 364,
ALSO = 365,
ALTER = 366,
ALWAYS = 367,
ANALYSE = 368,
ANALYZE = 369,
AND = 370,
ANY = 371,
APP = 372,
APPEND = 373,
ARCHIVE = 374,
ARRAY = 375,
AS = 376,
ASC = 377,
ASSERTION = 378,
ASSIGNMENT = 379,
ASYMMETRIC = 380,
AT = 381,
ATTRIBUTE = 382,
AUDIT = 383,
AUTHID = 384,
AUTHORIZATION = 385,
AUTOEXTEND = 386,
AUTOMAPPED = 387,
AUTO_INCREMENT = 388,
BACKWARD = 389,
BARRIER = 390,
BEFORE = 391,
BEGIN_NON_ANOYBLOCK = 392,
BEGIN_P = 393,
BETWEEN = 394,
BIGINT = 395,
BINARY = 396,
BINARY_DOUBLE = 397,
BINARY_INTEGER = 398,
BIT = 399,
BLANKS = 400,
BLOB_P = 401,
BLOCKCHAIN = 402,
BODY_P = 403,
BOGUS = 404,
BOOLEAN_P = 405,
BOTH = 406,
BUCKETCNT = 407,
BUCKETS = 408,
BY = 409,
BYTEAWITHOUTORDER = 410,
BYTEAWITHOUTORDERWITHEQUAL = 411,
CACHE = 412,
CALL = 413,
CALLED = 414,
CANCELABLE = 415,
CASCADE = 416,
CASCADED = 417,
CASE = 418,
CAST = 419,
CATALOG_P = 420,
CHAIN = 421,
CHANGE = 422,
CHAR_P = 423,
CHARACTER = 424,
CHARACTERISTICS = 425,
CHARACTERSET = 426,
CHARSET = 427,
CHECK = 428,
CHECKPOINT = 429,
CLASS = 430,
CLEAN = 431,
CLIENT = 432,
CLIENT_MASTER_KEY = 433,
CLIENT_MASTER_KEYS = 434,
CLOB = 435,
CLOSE = 436,
CLUSTER = 437,
COALESCE = 438,
COLLATE = 439,
COLLATION = 440,
COLUMN = 441,
COLUMN_ENCRYPTION_KEY = 442,
COLUMN_ENCRYPTION_KEYS = 443,
COLUMNS = 444,
COMMENT = 445,
COMMENTS = 446,
COMMIT = 447,
COMMITTED = 448,
COMPACT = 449,
COMPATIBLE_ILLEGAL_CHARS = 450,
COMPLETE = 451,
COMPLETION = 452,
COMPRESS = 453,
CONCURRENTLY = 454,
CONDITION = 455,
CONFIGURATION = 456,
CONNECTION = 457,
CONSTANT = 458,
CONSTRAINT = 459,
CONSTRAINTS = 460,
CONTENT_P = 461,
CONTINUE_P = 462,
CONTVIEW = 463,
CONVERSION_P = 464,
CONVERT_P = 465,
CONNECT = 466,
COORDINATOR = 467,
COORDINATORS = 468,
COPY = 469,
COST = 470,
CREATE = 471,
CROSS = 472,
CSN = 473,
CSV = 474,
CUBE = 475,
CURRENT_P = 476,
CURRENT_CATALOG = 477,
CURRENT_DATE = 478,
CURRENT_ROLE = 479,
CURRENT_SCHEMA = 480,
CURRENT_TIME = 481,
CURRENT_TIMESTAMP = 482,
CURRENT_USER = 483,
CURSOR = 484,
CYCLE = 485,
SHRINK = 486,
USE_P = 487,
DATA_P = 488,
DATABASE = 489,
DATAFILE = 490,
DATANODE = 491,
DATANODES = 492,
DATATYPE_CL = 493,
DATE_P = 494,
DATE_FORMAT_P = 495,
DAY_P = 496,
DBCOMPATIBILITY_P = 497,
DEALLOCATE = 498,
DEC = 499,
DECIMAL_P = 500,
DECLARE = 501,
DECODE = 502,
DEFAULT = 503,
DEFAULTS = 504,
DEFERRABLE = 505,
DEFERRED = 506,
DEFINER = 507,
DELETE_P = 508,
DELIMITER = 509,
DELIMITERS = 510,
DELTA = 511,
DELTAMERGE = 512,
DESC = 513,
DETERMINISTIC = 514,
DICTIONARY = 515,
DIRECT = 516,
DIRECTORY = 517,
DISABLE_P = 518,
DISCARD = 519,
DISTINCT = 520,
DISTRIBUTE = 521,
DISTRIBUTION = 522,
DO = 523,
DOCUMENT_P = 524,
DOMAIN_P = 525,
DOUBLE_P = 526,
DROP = 527,
DUPLICATE = 528,
DISCONNECT = 529,
DUMPFILE = 530,
EACH = 531,
ELASTIC = 532,
ELSE = 533,
ENABLE_P = 534,
ENCLOSED = 535,
ENCODING = 536,
ENCRYPTED = 537,
ENCRYPTED_VALUE = 538,
ENCRYPTION = 539,
ENCRYPTION_TYPE = 540,
END_P = 541,
ENDS = 542,
ENFORCED = 543,
ENUM_P = 544,
ERRORS = 545,
ESCAPE = 546,
EOL = 547,
ESCAPING = 548,
EVENT = 549,
EVENTS = 550,
EVERY = 551,
EXCEPT = 552,
EXCHANGE = 553,
EXCLUDE = 554,
EXCLUDED = 555,
EXCLUDING = 556,
EXCLUSIVE = 557,
EXECUTE = 558,
EXISTS = 559,
EXPIRED_P = 560,
EXPLAIN = 561,
EXTENSION = 562,
EXTERNAL = 563,
EXTRACT = 564,
ESCAPED = 565,
FALSE_P = 566,
FAMILY = 567,
FAST = 568,
FENCED = 569,
FETCH = 570,
FIELDS = 571,
FILEHEADER_P = 572,
FILL_MISSING_FIELDS = 573,
FILLER = 574,
FILTER = 575,
FIRST_P = 576,
FIXED_P = 577,
FLOAT_P = 578,
FOLLOWING = 579,
FOLLOWS_P = 580,
FOR = 581,
FORCE = 582,
FOREIGN = 583,
FORMATTER = 584,
FORWARD = 585,
FEATURES = 586,
FREEZE = 587,
FROM = 588,
FULL = 589,
FUNCTION = 590,
FUNCTIONS = 591,
GENERATED = 592,
GLOBAL = 593,
GRANT = 594,
GRANTED = 595,
GREATEST = 596,
GROUP_P = 597,
GROUPING_P = 598,
GROUPPARENT = 599,
HANDLER = 600,
HAVING = 601,
HDFSDIRECTORY = 602,
HEADER_P = 603,
HOLD = 604,
HOUR_P = 605,
IDENTIFIED = 606,
IDENTITY_P = 607,
IF_P = 608,
IGNORE = 609,
IGNORE_EXTRA_DATA = 610,
ILIKE = 611,
IMMEDIATE = 612,
IMMUTABLE = 613,
IMPLICIT_P = 614,
IN_P = 615,
INCLUDE = 616,
INCLUDING = 617,
INCREMENT = 618,
INCREMENTAL = 619,
INDEX = 620,
INDEXES = 621,
INFILE = 622,
INHERIT = 623,
INHERITS = 624,
INITIAL_P = 625,
INITIALLY = 626,
INITRANS = 627,
INLINE_P = 628,
INNER_P = 629,
INOUT = 630,
INPUT_P = 631,
INSENSITIVE = 632,
INSERT = 633,
INSTEAD = 634,
INT_P = 635,
INTEGER = 636,
INTERNAL = 637,
INTERSECT = 638,
INTERVAL = 639,
INTO = 640,
INVISIBLE = 641,
INVOKER = 642,
IP = 643,
IS = 644,
ISNULL = 645,
ISOLATION = 646,
JOIN = 647,
KEY = 648,
KILL = 649,
KEY_PATH = 650,
KEY_STORE = 651,
LABEL = 652,
LANGUAGE = 653,
LARGE_P = 654,
LAST_P = 655,
LC_COLLATE_P = 656,
LC_CTYPE_P = 657,
LEADING = 658,
LEAKPROOF = 659,
LINES = 660,
LEAST = 661,
LESS = 662,
LEFT = 663,
LEVEL = 664,
LIKE = 665,
LIMIT = 666,
LIST = 667,
LISTEN = 668,
LOAD = 669,
LOCAL = 670,
LOCALTIME = 671,
LOCALTIMESTAMP = 672,
LOCATION = 673,
LOCK_P = 674,
LOCKED = 675,
LOG_P = 676,
LOGGING = 677,
LOGIN_ANY = 678,
LOGIN_FAILURE = 679,
LOGIN_SUCCESS = 680,
LOGOUT = 681,
LOOP = 682,
MAPPING = 683,
MASKING = 684,
MASTER = 685,
MATCH = 686,
MATERIALIZED = 687,
MATCHED = 688,
MAXEXTENTS = 689,
MAXSIZE = 690,
MAXTRANS = 691,
MAXVALUE = 692,
MERGE = 693,
MINUS_P = 694,
MINUTE_P = 695,
MINVALUE = 696,
MINEXTENTS = 697,
MODE = 698,
MODIFY_P = 699,
MONTH_P = 700,
MOVE = 701,
MOVEMENT = 702,
MODEL = 703,
NAME_P = 704,
NAMES = 705,
NATIONAL = 706,
NATURAL = 707,
NCHAR = 708,
NEXT = 709,
NO = 710,
NOCOMPRESS = 711,
NOCYCLE = 712,
NODE = 713,
NOLOGGING = 714,
NOMAXVALUE = 715,
NOMINVALUE = 716,
NONE = 717,
NOT = 718,
NOTHING = 719,
NOTIFY = 720,
NOTNULL = 721,
NOWAIT = 722,
NULL_P = 723,
NULLCOLS = 724,
NULLIF = 725,
NULLS_P = 726,
NUMBER_P = 727,
NUMERIC = 728,
NUMSTR = 729,
NVARCHAR = 730,
NVARCHAR2 = 731,
NVL = 732,
OBJECT_P = 733,
OF = 734,
OFF = 735,
OFFSET = 736,
OIDS = 737,
ON = 738,
ONLY = 739,
OPERATOR = 740,
OPTIMIZATION = 741,
OPTION = 742,
OPTIONALLY = 743,
OPTIONS = 744,
OR = 745,
ORDER = 746,
OUT_P = 747,
OUTER_P = 748,
OVER = 749,
OVERLAPS = 750,
OVERLAY = 751,
OWNED = 752,
OWNER = 753,
OUTFILE = 754,
PACKAGE = 755,
PACKAGES = 756,
PARSER = 757,
PARTIAL = 758,
PARTITION = 759,
PARTITIONS = 760,
PASSING = 761,
PASSWORD = 762,
PCTFREE = 763,
PER_P = 764,
PERCENT = 765,
PERFORMANCE = 766,
PERM = 767,
PLACING = 768,
PLAN = 769,
PLANS = 770,
POLICY = 771,
POSITION = 772,
POOL = 773,
PRECEDING = 774,
PRECISION = 775,
PREDICT = 776,
PREFERRED = 777,
PREFIX = 778,
PRESERVE = 779,
PREPARE = 780,
PREPARED = 781,
PRIMARY = 782,
PRECEDES_P = 783,
PRIVATE = 784,
PRIOR = 785,
PRIORER = 786,
PRIVILEGES = 787,
PRIVILEGE = 788,
PROCEDURAL = 789,
PROCEDURE = 790,
PROFILE = 791,
PUBLICATION = 792,
PUBLISH = 793,
PURGE = 794,
QUERY = 795,
QUOTE = 796,
RANDOMIZED = 797,
RANGE = 798,
RATIO = 799,
RAW = 800,
READ = 801,
REAL = 802,
REASSIGN = 803,
REBUILD = 804,
RECHECK = 805,
RECURSIVE = 806,
RECYCLEBIN = 807,
REDISANYVALUE = 808,
REF = 809,
REFERENCES = 810,
REFRESH = 811,
REINDEX = 812,
REJECT_P = 813,
RELATIVE_P = 814,
RELEASE = 815,
RELOPTIONS = 816,
REMOTE_P = 817,
REMOVE = 818,
RENAME = 819,
REPEAT = 820,
REPEATABLE = 821,
REPLACE = 822,
REPLICA = 823,
RESET = 824,
RESIZE = 825,
RESOURCE = 826,
RESTART = 827,
RESTRICT = 828,
RETURN = 829,
RETURNING = 830,
RETURNS = 831,
REUSE = 832,
REVOKE = 833,
RIGHT = 834,
ROLE = 835,
ROLES = 836,
ROLLBACK = 837,
ROLLUP = 838,
ROTATION = 839,
ROW = 840,
ROWNUM = 841,
ROWS = 842,
ROWTYPE_P = 843,
RULE = 844,
SAMPLE = 845,
SAVEPOINT = 846,
SCHEDULE = 847,
SCHEMA = 848,
SCROLL = 849,
SEARCH = 850,
SECOND_P = 851,
SECURITY = 852,
SELECT = 853,
SEPARATOR_P = 854,
SEQUENCE = 855,
SEQUENCES = 856,
SERIALIZABLE = 857,
SERVER = 858,
SESSION = 859,
SESSION_USER = 860,
SET = 861,
SETS = 862,
SETOF = 863,
SHARE = 864,
SHIPPABLE = 865,
SHOW = 866,
SHUTDOWN = 867,
SIBLINGS = 868,
SIMILAR = 869,
SIMPLE = 870,
SIZE = 871,
SKIP = 872,
SLAVE = 873,
SLICE = 874,
SMALLDATETIME = 875,
SMALLDATETIME_FORMAT_P = 876,
SMALLINT = 877,
SNAPSHOT = 878,
SOME = 879,
SOURCE_P = 880,
SPACE = 881,
SPILL = 882,
SPLIT = 883,
STABLE = 884,
STANDALONE_P = 885,
START = 886,
STARTS = 887,
STARTWITH = 888,
STATEMENT = 889,
STATEMENT_ID = 890,
STATISTICS = 891,
STDIN = 892,
STDOUT = 893,
STORAGE = 894,
STORE_P = 895,
STORED = 896,
STRATIFY = 897,
STREAM = 898,
STRICT_P = 899,
STRIP_P = 900,
SUBPARTITION = 901,
SUBPARTITIONS = 902,
SUBSCRIPTION = 903,
SUBSTRING = 904,
SYMMETRIC = 905,
SYNONYM = 906,
SYSDATE = 907,
SYSID = 908,
SYSTEM_P = 909,
SYS_REFCURSOR = 910,
STARTING = 911,
TABLE = 912,
TABLES = 913,
TABLESAMPLE = 914,
TABLESPACE = 915,
TARGET = 916,
TEMP = 917,
TEMPLATE = 918,
TEMPORARY = 919,
TERMINATED = 920,
TEXT_P = 921,
THAN = 922,
THEN = 923,
TIME = 924,
TIME_FORMAT_P = 925,
TIMECAPSULE = 926,
TIMESTAMP = 927,
TIMESTAMP_FORMAT_P = 928,
TIMESTAMPDIFF = 929,
TINYINT = 930,
TO = 931,
TRAILING = 932,
TRANSACTION = 933,
TRANSFORM = 934,
TREAT = 935,
TRIGGER = 936,
TRIM = 937,
TRUE_P = 938,
TRUNCATE = 939,
TRUSTED = 940,
TSFIELD = 941,
TSTAG = 942,
TSTIME = 943,
TYPE_P = 944,
TYPES_P = 945,
UNBOUNDED = 946,
UNCOMMITTED = 947,
UNENCRYPTED = 948,
UNION = 949,
UNIQUE = 950,
UNKNOWN = 951,
UNLIMITED = 952,
UNLISTEN = 953,
UNLOCK = 954,
UNLOGGED = 955,
UNTIL = 956,
UNUSABLE = 957,
UPDATE = 958,
USEEOF = 959,
USER = 960,
USING = 961,
VACUUM = 962,
VALID = 963,
VALIDATE = 964,
VALIDATION = 965,
VALIDATOR = 966,
VALUE_P = 967,
VALUES = 968,
VARCHAR = 969,
VARCHAR2 = 970,
VARIABLES = 971,
VARIADIC = 972,
VARRAY = 973,
VARYING = 974,
VCGROUP = 975,
VERBOSE = 976,
VERIFY = 977,
VERSION_P = 978,
VIEW = 979,
VISIBLE = 980,
VOLATILE = 981,
WAIT = 982,
WARNINGS = 983,
WEAK = 984,
WHEN = 985,
WHERE = 986,
WHILE_P = 987,
WHITESPACE_P = 988,
WINDOW = 989,
WITH = 990,
WITHIN = 991,
WITHOUT = 992,
WORK = 993,
WORKLOAD = 994,
WRAPPER = 995,
WRITE = 996,
XML_P = 997,
XMLATTRIBUTES = 998,
XMLCONCAT = 999,
XMLELEMENT = 1000,
XMLEXISTS = 1001,
XMLFOREST = 1002,
XMLPARSE = 1003,
XMLPI = 1004,
XMLROOT = 1005,
XMLSERIALIZE = 1006,
YEAR_P = 1007,
YES_P = 1008,
ZONE = 1009,
NULLS_FIRST = 1010,
NULLS_LAST = 1011,
WITH_TIME = 1012,
INCLUDING_ALL = 1013,
RENAME_PARTITION = 1014,
PARTITION_FOR = 1015,
SUBPARTITION_FOR = 1016,
ADD_PARTITION = 1017,
DROP_PARTITION = 1018,
REBUILD_PARTITION = 1019,
MODIFY_PARTITION = 1020,
ADD_SUBPARTITION = 1021,
DROP_SUBPARTITION = 1022,
NOT_ENFORCED = 1023,
VALID_BEGIN = 1024,
DECLARE_CURSOR = 1025,
ON_UPDATE_TIME = 1026,
START_WITH = 1027,
CONNECT_BY = 1028,
SHOW_ERRORS = 1029,
END_OF_INPUT = 1030,
END_OF_INPUT_COLON = 1031,
END_OF_PROC = 1032,
EVENT_TRIGGER = 1033,
NOT_IN = 1034,
NOT_BETWEEN = 1035,
NOT_LIKE = 1036,
NOT_ILIKE = 1037,
NOT_SIMILAR = 1038,
FORCE_INDEX = 1039,
USE_INDEX = 1040,
PARTIAL_EMPTY_PREC = 1041,
POSTFIXOP = 1042,
lower_than_index = 1043,
UMINUS = 1044,
EMPTY_FROM_CLAUSE = 1045
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 564 "preproc.y" /* yacc.c:1909 */
double dval;
char *str;
int ival;
struct when action;
struct index index;
int tagname;
struct this_type type;
enum ECPGttype type_enum;
enum ECPGdtype dtype_enum;
struct fetch_desc descriptor;
struct su_symbol struct_union;
struct prep prep;
#line 860 "preproc.hpp" /* yacc.c:1909 */
};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif
/* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
};
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
extern YYSTYPE base_yylval;
extern YYLTYPE base_yylloc;
int base_yyparse (void);
#endif /* !YY_BASE_YY_PREPROC_HPP_INCLUDED */

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,172 @@
/*-------------------------------------------------------------------------
*
* pl_reserved_kwlist_d.h
* List of keywords represented as a ScanKeywordList.
*
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* NOTES
* ******************************
* *** DO NOT EDIT THIS FILE! ***
* ******************************
*
* It has been GENERATED by src/tools/gen_keywordlist.pl
*
*-------------------------------------------------------------------------
*/
#ifndef PL_RESERVED_KWLIST_D_H
#define PL_RESERVED_KWLIST_D_H
#include "parser/kwlookup.h"
static const char ReservedPLKeywords_kw_string[] =
"all\0"
"begin\0"
"by\0"
"case\0"
"close\0"
"collate\0"
"declare\0"
"default\0"
"delete\0"
"diagnostics\0"
"else\0"
"elseif\0"
"elsif\0"
"end\0"
"exception\0"
"execute\0"
"exit\0"
"fetch\0"
"for\0"
"forall\0"
"foreach\0"
"from\0"
"function\0"
"get\0"
"goto\0"
"if\0"
"in\0"
"insert\0"
"into\0"
"limit\0"
"loop\0"
"move\0"
"not\0"
"null\0"
"of\0"
"open\0"
"or\0"
"out\0"
"procedure\0"
"raise\0"
"ref\0"
"return\0"
"select\0"
"strict\0"
"then\0"
"to\0"
"update\0"
"using\0"
"when\0"
"while";
static const uint16 ReservedPLKeywords_kw_offsets[] = {
0,
4,
10,
13,
18,
24,
32,
40,
48,
55,
67,
72,
79,
85,
89,
99,
107,
112,
118,
122,
129,
137,
142,
151,
155,
160,
163,
166,
173,
178,
184,
189,
194,
198,
203,
206,
211,
214,
218,
228,
234,
238,
245,
252,
259,
264,
267,
274,
280,
285,
};
#define RESERVEDPLKEYWORDS_NUM_KEYWORDS 50
static int
ReservedPLKeywords_hash_func(const void *key, size_t keylen)
{
static const int16 h[101] = {
42, 32767, 25, 32767, 18, 23, -8, 32767,
-44, 12, 44, -2, 23, 32767, 11, -10,
21, 21, 32767, 7, 22, 9, 32767, 32767,
32767, 39, 5, 3, -2, 32767, 32767, 0,
35, -6, 21, 85, 32767, 15, 32767, -69,
0, 32767, 32767, 86, 42, 47, 12, 0,
32767, 32767, 32767, 0, 43, 18, 0, 32767,
32767, -84, 36, 22, 0, -35, 32767, 16,
32767, -12, 32767, 0, 32767, 0, 32767, 0,
14, 32767, 32767, 32767, -12, 32767, 1, 32767,
0, 27, 32767, 38, 0, 0, 8, 32767,
32767, 0, 13, 32767, 0, 32767, 30, 32767,
-3, 42, 0, 31, 32767
};
const unsigned char *k = (const unsigned char *) key;
uint32 a = 0;
uint32 b = 0;
while (keylen--)
{
unsigned char c = *k++ | 0x20;
a = a * 257 + c;
b = b * 127 + c;
}
return h[a % 101] + h[b % 101];
}
static const ScanKeywordList ReservedPLKeywords = {
ReservedPLKeywords_kw_string,
ReservedPLKeywords_kw_offsets,
ReservedPLKeywords_hash_func,
RESERVEDPLKEYWORDS_NUM_KEYWORDS,
11
};
#endif /* PL_RESERVED_KWLIST_D_H */

View File

@ -0,0 +1,255 @@
/*-------------------------------------------------------------------------
*
* pl_unreserved_kwlist_d.h
* List of keywords represented as a ScanKeywordList.
*
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* NOTES
* ******************************
* *** DO NOT EDIT THIS FILE! ***
* ******************************
*
* It has been GENERATED by src/tools/gen_keywordlist.pl
*
*-------------------------------------------------------------------------
*/
#ifndef PL_UNRESERVED_KWLIST_D_H
#define PL_UNRESERVED_KWLIST_D_H
#include "parser/kwlookup.h"
static const char UnreservedPLKeywords_kw_string[] =
"absolute\0"
"alias\0"
"alter\0"
"array\0"
"as\0"
"backward\0"
"bulk\0"
"call\0"
"collect\0"
"commit\0"
"condition\0"
"constant\0"
"continue\0"
"current\0"
"cursor\0"
"debug\0"
"detail\0"
"distinct\0"
"do\0"
"dump\0"
"errcode\0"
"error\0"
"except\0"
"exceptions\0"
"first\0"
"forward\0"
"found\0"
"function\0"
"handler\0"
"hint\0"
"immediate\0"
"index\0"
"info\0"
"instantiation\0"
"intersect\0"
"is\0"
"iterate\0"
"last\0"
"leave\0"
"log\0"
"merge\0"
"message\0"
"message_text\0"
"multiset\0"
"next\0"
"no\0"
"notice\0"
"option\0"
"package\0"
"perform\0"
"pg_exception_context\0"
"pg_exception_detail\0"
"pg_exception_hint\0"
"pragma\0"
"prior\0"
"procedure\0"
"query\0"
"record\0"
"relative\0"
"release\0"
"repeat\0"
"replace\0"
"result_oid\0"
"returned_sqlstate\0"
"reverse\0"
"rollback\0"
"row_count\0"
"rowtype\0"
"save\0"
"savepoint\0"
"scroll\0"
"slice\0"
"sqlexception\0"
"sqlstate\0"
"sqlwarning\0"
"stacked\0"
"sys_refcursor\0"
"table\0"
"type\0"
"union\0"
"until\0"
"use_column\0"
"use_variable\0"
"variable_conflict\0"
"varray\0"
"warning\0"
"with";
static const uint16 UnreservedPLKeywords_kw_offsets[] = {
0,
9,
15,
21,
27,
30,
39,
44,
49,
57,
64,
74,
83,
92,
100,
107,
113,
120,
129,
132,
137,
145,
151,
158,
169,
175,
183,
189,
198,
206,
211,
221,
227,
232,
246,
256,
259,
267,
272,
278,
282,
288,
296,
309,
318,
323,
326,
333,
340,
348,
356,
377,
397,
415,
422,
428,
438,
444,
451,
460,
468,
475,
483,
494,
512,
520,
529,
539,
547,
552,
562,
569,
575,
588,
597,
608,
616,
630,
636,
641,
647,
653,
664,
677,
695,
702,
710,
};
#define UNRESERVEDPLKEYWORDS_NUM_KEYWORDS 87
static int
UnreservedPLKeywords_hash_func(const void *key, size_t keylen)
{
static const int16 h[175] = {
0, 32767, 32767, 49, 63, 66, 26, 60,
27, -23, 32767, 32767, 32767, 0, 32767, 32767,
32767, -52, 32767, 15, 31, 32767, 0, 26,
68, 32767, 26, 21, 0, 32767, 32767, 45,
73, 32767, 32767, 32767, 13, 79, 32767, -30,
-72, 111, -22, 8, -22, 0, 0, 32,
32767, 32767, 32767, 43, 32767, 0, 0, 21,
32767, 32767, 32767, 32767, 12, 32767, 32767, -47,
86, 82, 32767, 32767, 37, 101, 0, 20,
70, 66, -14, 42, 32767, 78, 32767, -70,
32767, -12, 0, 32767, 32767, 32767, 18, 74,
42, -89, 32767, -50, 0, 32767, 32767, 32767,
38, 32767, 32767, 25, 0, 32767, 32767, 0,
-82, 77, -25, 32767, -49, 0, 32767, 32767,
74, 32767, 32767, 32767, -1, 32767, 32767, 30,
67, 32767, 67, 32767, 32767, 3, 32767, 3,
-11, 40, 32, 32767, 51, 0, 9, 6,
-44, 32767, 32767, 70, 7, -17, 0, 77,
26, 32767, 32767, 1, 119, 56, 124, 0,
32767, 34, 52, 51, 22, -65, 32767, -71,
0, 32767, 58, 32767, 32767, -21, 50, 32767,
63, 32767, 0, 0, 32767, 32767, 7
};
const unsigned char *k = (const unsigned char *) key;
uint32 a = 0;
uint32 b = 1;
while (keylen--)
{
unsigned char c = *k++ | 0x20;
a = a * 257 + c;
b = b * 17 + c;
}
return h[a % 175] + h[b % 175];
}
static const ScanKeywordList UnreservedPLKeywords = {
UnreservedPLKeywords_kw_string,
UnreservedPLKeywords_kw_offsets,
UnreservedPLKeywords_hash_func,
UNRESERVEDPLKEYWORDS_NUM_KEYWORDS,
20
};
#endif /* PL_UNRESERVED_KWLIST_D_H */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
../../../src/lib/cm_common/cm_errcodes.h

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,25 @@
/* autogenerated from src/backend/utils/cm_errcodes.txt, do not edit */
/* there is deliberately not an #ifndef ERRCODES_H here */
/* Class c0 - Connection Exception */
#define ERRCODE_CONNECTION_EXCEPTION MAKE_SQLSTATE('c','0','0','0','0')
#define ERRCODE_CONNECTION_DOES_NOT_EXIST MAKE_SQLSTATE('c','0','0','0','1')
#define ERRCODE_CONNECTION_FAILURE MAKE_SQLSTATE('c','0','0','0','2')
/* Class c1 - Environment Exception */
#define ERRCODE_OUT_OF_MEMORY MAKE_SQLSTATE('c','1','0','0','0')
/* Class c2 - File Exception */
#define ERRCODE_OPEN_FILE_FAILURE MAKE_SQLSTATE('c','3','0','0','0')
#define ERRCODE_READ_FILE_FAILURE MAKE_SQLSTATE('c','3','0','0','1')
#define ERRCODE_CONFIG_FILE_FAILURE MAKE_SQLSTATE('c','3','0','0','2')
/* Class c3 - Parameter Exception */
#define ERRCODE_PARAMETER_FAILURE MAKE_SQLSTATE('c','3','0','0','0')
#define ERRCODE_ENVIRONMENT_VARIABLE_FAILURE MAKE_SQLSTATE('c','3','0','0','1')
/* Class c4 - Etcd Exception */
#define ERRCODE_ETCD_OPEN_FAILURE MAKE_SQLSTATE('c','4','0','0','0')
/* Class c5 - Internal Exception */
#define ERRCODE_INTERNAL_ERROR MAKE_SQLSTATE('c','5','0','0','0')

View File

@ -0,0 +1 @@
../../../src/gausskernel/storage/smgr/cfs/cfs_tools.cpp

View File

@ -0,0 +1 @@
../../../src/gausskernel/storage/page/checksum_impl.cpp

View File

@ -0,0 +1 @@
../../../src/common/backend/utils/adt/pg_lzcompress.cpp

View File

@ -0,0 +1 @@
../../../src/include/utils/pg_lzcompress.h

View File

@ -0,0 +1 @@
../../../src/common/port/pgsleep.cpp

View File

@ -0,0 +1 @@
#define NUM_INDIVIDUAL_LWLOCKS 0

View File

@ -0,0 +1 @@