pg_query 2.0.3 → 5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +165 -0
- data/README.md +67 -29
- data/Rakefile +8 -23
- data/ext/pg_query/extconf.rb +21 -3
- data/ext/pg_query/include/pg_query.h +29 -4
- data/ext/pg_query/include/pg_query_enum_defs.c +551 -272
- data/ext/pg_query/include/pg_query_fingerprint_conds.c +563 -470
- data/ext/pg_query/include/pg_query_fingerprint_defs.c +5403 -3945
- data/ext/pg_query/include/pg_query_outfuncs_conds.c +402 -330
- data/ext/pg_query/include/pg_query_outfuncs_defs.c +1319 -1059
- data/ext/pg_query/include/pg_query_readfuncs_conds.c +141 -118
- data/ext/pg_query/include/pg_query_readfuncs_defs.c +1685 -1379
- data/ext/pg_query/include/{access → postgres/access}/amapi.h +47 -1
- data/ext/pg_query/include/{access → postgres/access}/attmap.h +5 -3
- data/ext/pg_query/include/{access → postgres/access}/attnum.h +2 -2
- data/ext/pg_query/include/{access → postgres/access}/clog.h +4 -2
- data/ext/pg_query/include/{access → postgres/access}/commit_ts.h +6 -9
- data/ext/pg_query/include/{access → postgres/access}/detoast.h +1 -11
- data/ext/pg_query/include/{access → postgres/access}/genam.h +21 -16
- data/ext/pg_query/include/{access → postgres/access}/gin.h +17 -4
- data/ext/pg_query/include/{access → postgres/access}/htup.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/htup_details.h +80 -88
- data/ext/pg_query/include/{access → postgres/access}/itup.h +61 -52
- data/ext/pg_query/include/{access → postgres/access}/parallel.h +2 -2
- data/ext/pg_query/include/{access → postgres/access}/printtup.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/relation.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/relscan.h +17 -2
- data/ext/pg_query/include/postgres/access/rmgr.h +62 -0
- data/ext/pg_query/include/{access → postgres/access}/rmgrlist.h +24 -24
- data/ext/pg_query/include/{access → postgres/access}/sdir.h +12 -3
- data/ext/pg_query/include/{access → postgres/access}/skey.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/stratnum.h +4 -2
- data/ext/pg_query/include/{access → postgres/access}/sysattr.h +1 -1
- data/ext/pg_query/include/{access → postgres/access}/table.h +2 -1
- data/ext/pg_query/include/{access → postgres/access}/tableam.h +337 -62
- data/ext/pg_query/include/postgres/access/toast_compression.h +73 -0
- data/ext/pg_query/include/{access → postgres/access}/transam.h +123 -13
- data/ext/pg_query/include/postgres/access/tsmapi.h +82 -0
- data/ext/pg_query/include/{access → postgres/access}/tupconvert.h +5 -2
- data/ext/pg_query/include/{access → postgres/access}/tupdesc.h +2 -2
- data/ext/pg_query/include/{access → postgres/access}/tupmacs.h +60 -100
- data/ext/pg_query/include/{access → postgres/access}/twophase.h +5 -1
- data/ext/pg_query/include/{access → postgres/access}/xact.h +99 -32
- data/ext/pg_query/include/{access → postgres/access}/xlog.h +69 -165
- data/ext/pg_query/include/{access → postgres/access}/xlog_internal.h +147 -73
- data/ext/pg_query/include/postgres/access/xlogbackup.h +41 -0
- data/ext/pg_query/include/{access → postgres/access}/xlogdefs.h +13 -40
- data/ext/pg_query/include/postgres/access/xlogprefetcher.h +55 -0
- data/ext/pg_query/include/{access → postgres/access}/xlogreader.h +154 -37
- data/ext/pg_query/include/{access → postgres/access}/xlogrecord.h +34 -13
- data/ext/pg_query/include/postgres/access/xlogrecovery.h +158 -0
- data/ext/pg_query/include/postgres/archive/archive_module.h +59 -0
- data/ext/pg_query/include/{c.h → postgres/c.h} +245 -188
- data/ext/pg_query/include/{catalog → postgres/catalog}/catalog.h +6 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/catversion.h +6 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/dependency.h +14 -19
- data/ext/pg_query/include/postgres/catalog/genbki.h +143 -0
- data/ext/pg_query/include/{catalog → postgres/catalog}/index.h +20 -5
- data/ext/pg_query/include/postgres/catalog/indexing.h +54 -0
- data/ext/pg_query/include/{catalog → postgres/catalog}/namespace.h +5 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/objectaccess.h +73 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/objectaddress.h +12 -7
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_aggregate.h +14 -10
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_aggregate_d.h +2 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_am.h +4 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_am_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_attribute.h +45 -26
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_attribute_d.h +19 -16
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_authid.h +7 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_authid_d.h +19 -9
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_class.h +45 -15
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_class_d.h +31 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_collation.h +35 -8
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_collation_d.h +21 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_constraint.h +39 -13
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_constraint_d.h +10 -4
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_control.h +13 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_conversion.h +8 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_conversion_d.h +4 -1
- data/ext/pg_query/include/postgres/catalog/pg_database.h +124 -0
- data/ext/pg_query/include/postgres/catalog/pg_database_d.h +52 -0
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_depend.h +11 -7
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_depend_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_event_trigger.h +9 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_event_trigger_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_index.h +17 -7
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_index_d.h +20 -17
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_language.h +10 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_language_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_namespace.h +7 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_namespace_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_opclass.h +8 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_opclass_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_operator.h +21 -16
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_operator_d.h +37 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_opfamily.h +8 -4
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_opfamily_d.h +6 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_partitioned_table.h +20 -9
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_partitioned_table_d.h +2 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_proc.h +20 -11
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_proc_d.h +10 -8
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_publication.h +49 -6
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_publication_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_replication_origin.h +6 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_replication_origin_d.h +5 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_statistic.h +19 -12
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_statistic_d.h +2 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_statistic_ext.h +19 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_statistic_ext_d.h +7 -2
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_transform.h +8 -5
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_transform_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_trigger.h +24 -8
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_trigger_d.h +4 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_config.h +6 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_config_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_dict.h +8 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_dict_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_parser.h +6 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_parser_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_template.h +6 -3
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_ts_template_d.h +3 -1
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_type.h +56 -24
- data/ext/pg_query/include/{catalog → postgres/catalog}/pg_type_d.h +70 -31
- data/ext/pg_query/include/{catalog → postgres/catalog}/storage.h +9 -7
- data/ext/pg_query/include/{commands → postgres/commands}/async.h +4 -5
- data/ext/pg_query/include/{commands → postgres/commands}/dbcommands.h +3 -1
- data/ext/pg_query/include/{commands → postgres/commands}/defrem.h +12 -24
- data/ext/pg_query/include/{commands → postgres/commands}/event_trigger.h +2 -2
- data/ext/pg_query/include/{commands → postgres/commands}/explain.h +3 -1
- data/ext/pg_query/include/{commands → postgres/commands}/prepare.h +1 -1
- data/ext/pg_query/include/{commands → postgres/commands}/tablespace.h +6 -4
- data/ext/pg_query/include/{commands → postgres/commands}/trigger.h +36 -25
- data/ext/pg_query/include/{commands → postgres/commands}/user.h +10 -4
- data/ext/pg_query/include/{commands → postgres/commands}/vacuum.h +140 -47
- data/ext/pg_query/include/postgres/common/cryptohash.h +39 -0
- data/ext/pg_query/include/{common → postgres/common}/file_perm.h +4 -4
- data/ext/pg_query/include/{common → postgres/common}/hashfn.h +1 -1
- data/ext/pg_query/include/postgres/common/int.h +437 -0
- data/ext/pg_query/include/{common → postgres/common}/keywords.h +2 -6
- data/ext/pg_query/include/{common → postgres/common}/kwlookup.h +2 -2
- data/ext/pg_query/include/postgres/common/pg_prng.h +61 -0
- data/ext/pg_query/include/{common → postgres/common}/relpath.h +21 -14
- data/ext/pg_query/include/postgres/common/scram-common.h +70 -0
- data/ext/pg_query/include/postgres/common/sha2.h +32 -0
- data/ext/pg_query/include/postgres/common/string.h +44 -0
- data/ext/pg_query/include/postgres/common/unicode_east_asian_fw_table.h +125 -0
- data/ext/pg_query/include/{common/unicode_combining_table.h → postgres/common/unicode_nonspacing_table.h} +138 -8
- data/ext/pg_query/include/postgres/copyfuncs.funcs.c +5013 -0
- data/ext/pg_query/include/postgres/copyfuncs.switch.c +938 -0
- data/ext/pg_query/include/{datatype → postgres/datatype}/timestamp.h +50 -4
- data/ext/pg_query/include/postgres/equalfuncs.funcs.c +3097 -0
- data/ext/pg_query/include/postgres/equalfuncs.switch.c +785 -0
- data/ext/pg_query/include/{executor → postgres/executor}/execdesc.h +1 -1
- data/ext/pg_query/include/{executor → postgres/executor}/executor.h +98 -32
- data/ext/pg_query/include/{executor → postgres/executor}/functions.h +17 -3
- data/ext/pg_query/include/{executor → postgres/executor}/instrument.h +33 -16
- data/ext/pg_query/include/{executor → postgres/executor}/spi.h +42 -4
- data/ext/pg_query/include/{executor → postgres/executor}/tablefunc.h +1 -1
- data/ext/pg_query/include/{executor → postgres/executor}/tuptable.h +18 -11
- data/ext/pg_query/include/{fmgr.h → postgres/fmgr.h} +33 -8
- data/ext/pg_query/include/postgres/foreign/fdwapi.h +294 -0
- data/ext/pg_query/include/{funcapi.h → postgres/funcapi.h} +22 -10
- data/ext/pg_query/include/postgres/gram.h +1127 -0
- data/ext/pg_query/include/{parser → postgres}/gramparse.h +4 -4
- data/ext/pg_query/include/{jit → postgres/jit}/jit.h +12 -12
- data/ext/pg_query/include/postgres/kwlist_d.h +1119 -0
- data/ext/pg_query/include/postgres/lib/dshash.h +115 -0
- data/ext/pg_query/include/{lib → postgres/lib}/ilist.h +454 -22
- data/ext/pg_query/include/{lib → postgres/lib}/pairingheap.h +1 -1
- data/ext/pg_query/include/{lib → postgres/lib}/simplehash.h +158 -33
- data/ext/pg_query/include/postgres/lib/sort_template.h +432 -0
- data/ext/pg_query/include/{lib → postgres/lib}/stringinfo.h +3 -3
- data/ext/pg_query/include/{libpq → postgres/libpq}/auth.h +12 -4
- data/ext/pg_query/include/{libpq → postgres/libpq}/crypt.h +5 -4
- data/ext/pg_query/include/{libpq → postgres/libpq}/hba.h +54 -8
- data/ext/pg_query/include/{libpq → postgres/libpq}/libpq-be.h +45 -17
- data/ext/pg_query/include/{libpq → postgres/libpq}/libpq.h +31 -20
- data/ext/pg_query/include/{libpq → postgres/libpq}/pqcomm.h +26 -71
- data/ext/pg_query/include/{libpq → postgres/libpq}/pqformat.h +2 -2
- data/ext/pg_query/include/{libpq → postgres/libpq}/pqsignal.h +25 -13
- data/ext/pg_query/include/postgres/libpq/sasl.h +136 -0
- data/ext/pg_query/include/postgres/libpq/scram.h +37 -0
- data/ext/pg_query/include/{mb → postgres/mb}/pg_wchar.h +125 -25
- data/ext/pg_query/include/{mb → postgres/mb}/stringinfo_mb.h +1 -1
- data/ext/pg_query/include/{miscadmin.h → postgres/miscadmin.h} +96 -65
- data/ext/pg_query/include/{nodes → postgres/nodes}/bitmapset.h +11 -7
- data/ext/pg_query/include/{nodes → postgres/nodes}/execnodes.h +351 -103
- data/ext/pg_query/include/{nodes → postgres/nodes}/extensible.h +8 -4
- data/ext/pg_query/include/{nodes → postgres/nodes}/lockoptions.h +1 -1
- data/ext/pg_query/include/{nodes → postgres/nodes}/makefuncs.h +19 -6
- data/ext/pg_query/include/{nodes → postgres/nodes}/memnodes.h +11 -6
- data/ext/pg_query/include/postgres/nodes/miscnodes.h +56 -0
- data/ext/pg_query/include/{nodes → postgres/nodes}/nodeFuncs.h +89 -29
- data/ext/pg_query/include/{nodes → postgres/nodes}/nodes.h +100 -496
- data/ext/pg_query/include/postgres/nodes/nodetags.h +471 -0
- data/ext/pg_query/include/{nodes → postgres/nodes}/params.h +3 -3
- data/ext/pg_query/include/{nodes → postgres/nodes}/parsenodes.h +678 -207
- data/ext/pg_query/include/{nodes → postgres/nodes}/pathnodes.h +1282 -454
- data/ext/pg_query/include/{nodes → postgres/nodes}/pg_list.h +103 -73
- data/ext/pg_query/include/{nodes → postgres/nodes}/plannodes.h +474 -133
- data/ext/pg_query/include/{nodes → postgres/nodes}/primnodes.h +754 -254
- data/ext/pg_query/include/{nodes → postgres/nodes}/print.h +1 -1
- data/ext/pg_query/include/postgres/nodes/queryjumble.h +86 -0
- data/ext/pg_query/include/postgres/nodes/replnodes.h +111 -0
- data/ext/pg_query/include/postgres/nodes/supportnodes.h +346 -0
- data/ext/pg_query/include/{nodes → postgres/nodes}/tidbitmap.h +1 -1
- data/ext/pg_query/include/postgres/nodes/value.h +90 -0
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/cost.h +14 -5
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/geqo.h +9 -7
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/geqo_gene.h +1 -1
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/optimizer.h +31 -28
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/paths.h +29 -12
- data/ext/pg_query/include/{optimizer → postgres/optimizer}/planmain.h +15 -17
- data/ext/pg_query/include/{parser → postgres/parser}/analyze.h +20 -5
- data/ext/pg_query/include/postgres/parser/kwlist.h +498 -0
- data/ext/pg_query/include/{parser → postgres/parser}/parse_agg.h +5 -8
- data/ext/pg_query/include/{parser → postgres/parser}/parse_coerce.h +6 -1
- data/ext/pg_query/include/{parser → postgres/parser}/parse_expr.h +2 -3
- data/ext/pg_query/include/{parser → postgres/parser}/parse_func.h +2 -1
- data/ext/pg_query/include/{parser → postgres/parser}/parse_node.h +41 -11
- data/ext/pg_query/include/{parser → postgres/parser}/parse_oper.h +3 -5
- data/ext/pg_query/include/{parser → postgres/parser}/parse_relation.h +11 -5
- data/ext/pg_query/include/{parser → postgres/parser}/parse_type.h +4 -3
- data/ext/pg_query/include/postgres/parser/parser.h +68 -0
- data/ext/pg_query/include/{parser → postgres/parser}/parsetree.h +1 -1
- data/ext/pg_query/include/{parser → postgres/parser}/scanner.h +2 -2
- data/ext/pg_query/include/{parser → postgres/parser}/scansup.h +2 -5
- data/ext/pg_query/include/{partitioning → postgres/partitioning}/partdefs.h +1 -1
- data/ext/pg_query/include/{pg_config.h → postgres/pg_config.h} +216 -228
- data/ext/pg_query/include/{pg_config_manual.h → postgres/pg_config_manual.h} +80 -58
- data/ext/pg_query/include/postgres/pg_config_os.h +8 -0
- data/ext/pg_query/include/{pg_getopt.h → postgres/pg_getopt.h} +6 -6
- data/ext/pg_query/include/{pg_trace.h → postgres/pg_trace.h} +1 -1
- data/ext/pg_query/include/postgres/pgstat.h +778 -0
- data/ext/pg_query/include/{pgtime.h → postgres/pgtime.h} +16 -6
- data/ext/pg_query/include/{pl_gram.h → postgres/pl_gram.h} +116 -116
- data/ext/pg_query/include/{pl_reserved_kwlist.h → postgres/pl_reserved_kwlist.h} +1 -1
- data/ext/pg_query/include/{pl_reserved_kwlist_d.h → postgres/pl_reserved_kwlist_d.h} +10 -10
- data/ext/pg_query/include/{pl_unreserved_kwlist.h → postgres/pl_unreserved_kwlist.h} +3 -3
- data/ext/pg_query/include/{pl_unreserved_kwlist_d.h → postgres/pl_unreserved_kwlist_d.h} +60 -60
- data/ext/pg_query/include/{plerrcodes.h → postgres/plerrcodes.h} +9 -1
- data/ext/pg_query/include/{plpgsql.h → postgres/plpgsql.h} +79 -86
- data/ext/pg_query/include/{port → postgres/port}/atomics/arch-arm.h +9 -3
- data/ext/pg_query/include/postgres/port/atomics/arch-hppa.h +17 -0
- data/ext/pg_query/include/{port → postgres/port}/atomics/arch-ppc.h +21 -21
- data/ext/pg_query/include/{port → postgres/port}/atomics/arch-x86.h +2 -2
- data/ext/pg_query/include/{port → postgres/port}/atomics/fallback.h +3 -3
- data/ext/pg_query/include/{port → postgres/port}/atomics/generic-gcc.h +3 -3
- data/ext/pg_query/include/postgres/port/atomics/generic-msvc.h +101 -0
- data/ext/pg_query/include/postgres/port/atomics/generic-sunpro.h +106 -0
- data/ext/pg_query/include/{port → postgres/port}/atomics/generic.h +1 -1
- data/ext/pg_query/include/{port → postgres/port}/atomics.h +2 -7
- data/ext/pg_query/include/{port → postgres/port}/pg_bitutils.h +129 -16
- data/ext/pg_query/include/{port → postgres/port}/pg_bswap.h +1 -1
- data/ext/pg_query/include/{port → postgres/port}/pg_crc32c.h +1 -1
- data/ext/pg_query/include/postgres/port/simd.h +375 -0
- data/ext/pg_query/include/postgres/port/win32/arpa/inet.h +3 -0
- data/ext/pg_query/include/postgres/port/win32/dlfcn.h +1 -0
- data/ext/pg_query/include/postgres/port/win32/grp.h +1 -0
- data/ext/pg_query/include/postgres/port/win32/netdb.h +7 -0
- data/ext/pg_query/include/postgres/port/win32/netinet/in.h +3 -0
- data/ext/pg_query/include/postgres/port/win32/netinet/tcp.h +7 -0
- data/ext/pg_query/include/postgres/port/win32/pwd.h +3 -0
- data/ext/pg_query/include/postgres/port/win32/sys/resource.h +20 -0
- data/ext/pg_query/include/postgres/port/win32/sys/select.h +3 -0
- data/ext/pg_query/include/postgres/port/win32/sys/socket.h +26 -0
- data/ext/pg_query/include/postgres/port/win32/sys/un.h +17 -0
- data/ext/pg_query/include/postgres/port/win32/sys/wait.h +3 -0
- data/ext/pg_query/include/postgres/port/win32.h +59 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/dirent.h +34 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/sys/file.h +1 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/sys/param.h +1 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/sys/time.h +1 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/unistd.h +9 -0
- data/ext/pg_query/include/postgres/port/win32_msvc/utime.h +3 -0
- data/ext/pg_query/include/postgres/port/win32_port.h +594 -0
- data/ext/pg_query/include/{port.h → postgres/port.h} +107 -111
- data/ext/pg_query/include/postgres/portability/instr_time.h +197 -0
- data/ext/pg_query/include/postgres/postgres.h +579 -0
- data/ext/pg_query/include/{postgres_ext.h → postgres/postgres_ext.h} +0 -1
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/autovacuum.h +17 -20
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/bgworker.h +3 -2
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/bgworker_internals.h +2 -2
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/bgwriter.h +6 -6
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/interrupt.h +1 -1
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/pgarch.h +7 -10
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/postmaster.h +21 -17
- data/ext/pg_query/include/postgres/postmaster/startup.h +41 -0
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/syslogger.h +16 -11
- data/ext/pg_query/include/{postmaster → postgres/postmaster}/walwriter.h +5 -3
- data/ext/pg_query/include/{regex → postgres/regex}/regex.h +27 -22
- data/ext/pg_query/include/{replication → postgres/replication}/logicallauncher.h +8 -5
- data/ext/pg_query/include/postgres/replication/logicalproto.h +274 -0
- data/ext/pg_query/include/postgres/replication/logicalworker.h +32 -0
- data/ext/pg_query/include/{replication → postgres/replication}/origin.h +8 -8
- data/ext/pg_query/include/postgres/replication/reorderbuffer.h +753 -0
- data/ext/pg_query/include/{replication → postgres/replication}/slot.h +42 -12
- data/ext/pg_query/include/{replication → postgres/replication}/syncrep.h +6 -12
- data/ext/pg_query/include/{replication → postgres/replication}/walreceiver.h +158 -20
- data/ext/pg_query/include/{replication → postgres/replication}/walsender.h +20 -20
- data/ext/pg_query/include/{rewrite → postgres/rewrite}/prs2lock.h +1 -1
- data/ext/pg_query/include/{rewrite → postgres/rewrite}/rewriteHandler.h +1 -6
- data/ext/pg_query/include/{rewrite → postgres/rewrite}/rewriteManip.h +11 -2
- data/ext/pg_query/include/{rewrite → postgres/rewrite}/rewriteSupport.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/backendid.h +3 -3
- data/ext/pg_query/include/{storage → postgres/storage}/block.h +24 -37
- data/ext/pg_query/include/{storage → postgres/storage}/buf.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/bufmgr.h +196 -95
- data/ext/pg_query/include/{storage → postgres/storage}/bufpage.h +152 -101
- data/ext/pg_query/include/{storage → postgres/storage}/condition_variable.h +14 -3
- data/ext/pg_query/include/{storage → postgres/storage}/dsm.h +6 -6
- data/ext/pg_query/include/{storage → postgres/storage}/dsm_impl.h +6 -2
- data/ext/pg_query/include/{storage → postgres/storage}/fd.h +48 -14
- data/ext/pg_query/include/postgres/storage/fileset.h +40 -0
- data/ext/pg_query/include/{storage → postgres/storage}/ipc.h +5 -2
- data/ext/pg_query/include/{storage → postgres/storage}/item.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/itemid.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/itemptr.h +96 -57
- data/ext/pg_query/include/{storage → postgres/storage}/large_object.h +2 -2
- data/ext/pg_query/include/{storage → postgres/storage}/latch.h +17 -13
- data/ext/pg_query/include/{storage → postgres/storage}/lmgr.h +7 -1
- data/ext/pg_query/include/{storage → postgres/storage}/lock.h +37 -25
- data/ext/pg_query/include/{storage → postgres/storage}/lockdefs.h +4 -4
- data/ext/pg_query/include/{storage → postgres/storage}/lwlock.h +21 -33
- data/ext/pg_query/include/{storage → postgres/storage}/lwlocknames.h +0 -1
- data/ext/pg_query/include/{storage → postgres/storage}/off.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/pg_sema.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/pg_shmem.h +9 -7
- data/ext/pg_query/include/{storage → postgres/storage}/pmsignal.h +15 -4
- data/ext/pg_query/include/{storage → postgres/storage}/predicate.h +5 -5
- data/ext/pg_query/include/{storage → postgres/storage}/proc.h +200 -67
- data/ext/pg_query/include/postgres/storage/procarray.h +99 -0
- data/ext/pg_query/include/{storage → postgres/storage}/proclist_types.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/procsignal.h +5 -7
- data/ext/pg_query/include/postgres/storage/relfilelocator.h +99 -0
- data/ext/pg_query/include/{storage → postgres/storage}/s_lock.h +118 -298
- data/ext/pg_query/include/{storage → postgres/storage}/sharedfileset.h +3 -11
- data/ext/pg_query/include/{storage → postgres/storage}/shm_mq.h +5 -4
- data/ext/pg_query/include/{storage → postgres/storage}/shm_toc.h +1 -1
- data/ext/pg_query/include/{storage → postgres/storage}/shmem.h +1 -23
- data/ext/pg_query/include/{storage → postgres/storage}/sinval.h +5 -5
- data/ext/pg_query/include/{storage → postgres/storage}/sinvaladt.h +4 -2
- data/ext/pg_query/include/{storage → postgres/storage}/smgr.h +21 -17
- data/ext/pg_query/include/{storage → postgres/storage}/spin.h +2 -2
- data/ext/pg_query/include/{storage → postgres/storage}/standby.h +17 -9
- data/ext/pg_query/include/{storage → postgres/storage}/standbydefs.h +2 -2
- data/ext/pg_query/include/{storage → postgres/storage}/sync.h +9 -5
- data/ext/pg_query/include/{tcop → postgres/tcop}/cmdtag.h +7 -2
- data/ext/pg_query/include/{tcop → postgres/tcop}/cmdtaglist.h +3 -2
- data/ext/pg_query/include/{tcop → postgres/tcop}/deparse_utility.h +1 -1
- data/ext/pg_query/include/{tcop → postgres/tcop}/dest.h +1 -3
- data/ext/pg_query/include/{tcop → postgres/tcop}/fastpath.h +1 -2
- data/ext/pg_query/include/{tcop → postgres/tcop}/pquery.h +7 -1
- data/ext/pg_query/include/{tcop → postgres/tcop}/tcopprot.h +19 -14
- data/ext/pg_query/include/{tcop → postgres/tcop}/utility.h +7 -3
- data/ext/pg_query/include/{tsearch → postgres/tsearch}/ts_cache.h +3 -5
- data/ext/pg_query/include/{utils → postgres/utils}/acl.h +37 -71
- data/ext/pg_query/include/{utils → postgres/utils}/aclchk_internal.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/array.h +26 -2
- data/ext/pg_query/include/postgres/utils/backend_progress.h +45 -0
- data/ext/pg_query/include/postgres/utils/backend_status.h +342 -0
- data/ext/pg_query/include/{utils → postgres/utils}/builtins.h +20 -11
- data/ext/pg_query/include/{utils → postgres/utils}/bytea.h +3 -2
- data/ext/pg_query/include/{utils → postgres/utils}/catcache.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/date.h +37 -9
- data/ext/pg_query/include/{utils → postgres/utils}/datetime.h +48 -27
- data/ext/pg_query/include/{utils → postgres/utils}/datum.h +9 -1
- data/ext/pg_query/include/{utils → postgres/utils}/dsa.h +5 -1
- data/ext/pg_query/include/{utils → postgres/utils}/elog.h +154 -48
- data/ext/pg_query/include/{utils → postgres/utils}/errcodes.h +2 -0
- data/ext/pg_query/include/{utils → postgres/utils}/expandeddatum.h +14 -3
- data/ext/pg_query/include/{utils → postgres/utils}/expandedrecord.h +14 -4
- data/ext/pg_query/include/{utils → postgres/utils}/float.h +13 -12
- data/ext/pg_query/include/{utils → postgres/utils}/fmgroids.h +1353 -696
- data/ext/pg_query/include/{utils → postgres/utils}/fmgrprotos.h +243 -18
- data/ext/pg_query/include/{utils → postgres/utils}/fmgrtab.h +6 -5
- data/ext/pg_query/include/{utils → postgres/utils}/guc.h +120 -121
- data/ext/pg_query/include/postgres/utils/guc_hooks.h +163 -0
- data/ext/pg_query/include/{utils → postgres/utils}/guc_tables.h +71 -21
- data/ext/pg_query/include/{utils → postgres/utils}/hsearch.h +15 -11
- data/ext/pg_query/include/{utils → postgres/utils}/inval.h +7 -3
- data/ext/pg_query/include/postgres/utils/logtape.h +77 -0
- data/ext/pg_query/include/{utils → postgres/utils}/lsyscache.h +16 -1
- data/ext/pg_query/include/{utils → postgres/utils}/memdebug.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/memutils.h +14 -53
- data/ext/pg_query/include/postgres/utils/memutils_internal.h +136 -0
- data/ext/pg_query/include/postgres/utils/memutils_memorychunk.h +237 -0
- data/ext/pg_query/include/{utils → postgres/utils}/numeric.h +38 -9
- data/ext/pg_query/include/{utils → postgres/utils}/palloc.h +33 -4
- data/ext/pg_query/include/{utils → postgres/utils}/partcache.h +3 -2
- data/ext/pg_query/include/{utils → postgres/utils}/pg_locale.h +37 -21
- data/ext/pg_query/include/postgres/utils/pgstat_internal.h +814 -0
- data/ext/pg_query/include/{utils → postgres/utils}/plancache.h +6 -5
- data/ext/pg_query/include/{utils → postgres/utils}/portal.h +12 -1
- data/ext/pg_query/include/{utils → postgres/utils}/probes.h +59 -59
- data/ext/pg_query/include/postgres/utils/ps_status.h +47 -0
- data/ext/pg_query/include/{utils → postgres/utils}/queryenvironment.h +1 -1
- data/ext/pg_query/include/postgres/utils/regproc.h +39 -0
- data/ext/pg_query/include/{utils → postgres/utils}/rel.h +129 -61
- data/ext/pg_query/include/{utils → postgres/utils}/relcache.h +21 -14
- data/ext/pg_query/include/{utils → postgres/utils}/reltrigger.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/resowner.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/ruleutils.h +9 -1
- data/ext/pg_query/include/{utils → postgres/utils}/sharedtuplestore.h +1 -1
- data/ext/pg_query/include/{utils → postgres/utils}/snapmgr.h +38 -15
- data/ext/pg_query/include/{utils → postgres/utils}/snapshot.h +14 -1
- data/ext/pg_query/include/{utils → postgres/utils}/sortsupport.h +117 -2
- data/ext/pg_query/include/{utils → postgres/utils}/syscache.h +9 -1
- data/ext/pg_query/include/{utils → postgres/utils}/timeout.h +11 -4
- data/ext/pg_query/include/{utils → postgres/utils}/timestamp.h +46 -15
- data/ext/pg_query/include/{utils → postgres/utils}/tuplesort.h +209 -41
- data/ext/pg_query/include/{utils → postgres/utils}/tuplestore.h +2 -2
- data/ext/pg_query/include/{utils → postgres/utils}/typcache.h +24 -17
- data/ext/pg_query/include/{utils → postgres/utils}/varlena.h +17 -3
- data/ext/pg_query/include/postgres/utils/wait_event.h +294 -0
- data/ext/pg_query/include/{utils → postgres/utils}/xml.h +18 -8
- data/ext/pg_query/include/{postgres.h → postgres/varatt.h} +65 -471
- data/ext/pg_query/include/protobuf/pg_query.pb-c.h +7494 -6382
- data/ext/pg_query/include/protobuf/pg_query.pb.h +116922 -84792
- data/ext/pg_query/include/protobuf-c/protobuf-c.h +7 -3
- data/ext/pg_query/include/protobuf-c.h +7 -3
- data/ext/pg_query/pg_query.c +10 -1
- data/ext/pg_query/pg_query.pb-c.c +21026 -17002
- data/ext/pg_query/pg_query_deparse.c +1 -9896
- data/ext/pg_query/pg_query_fingerprint.c +162 -50
- data/ext/pg_query/pg_query_fingerprint.h +3 -1
- data/ext/pg_query/pg_query_internal.h +1 -1
- data/ext/pg_query/pg_query_json_plpgsql.c +56 -12
- data/ext/pg_query/pg_query_normalize.c +259 -64
- data/ext/pg_query/pg_query_outfuncs.h +1 -0
- data/ext/pg_query/pg_query_outfuncs_json.c +71 -16
- data/ext/pg_query/pg_query_outfuncs_protobuf.c +73 -12
- data/ext/pg_query/pg_query_parse.c +47 -5
- data/ext/pg_query/pg_query_parse_plpgsql.c +86 -21
- data/ext/pg_query/pg_query_readfuncs_protobuf.c +43 -8
- data/ext/pg_query/pg_query_ruby.c +6 -1
- data/ext/pg_query/pg_query_ruby_freebsd.sym +2 -0
- data/ext/pg_query/pg_query_scan.c +3 -2
- data/ext/pg_query/pg_query_split.c +6 -5
- data/ext/pg_query/postgres_deparse.c +11067 -0
- data/ext/pg_query/postgres_deparse.h +9 -0
- data/ext/pg_query/protobuf-c.c +34 -27
- data/ext/pg_query/src_backend_catalog_namespace.c +27 -10
- data/ext/pg_query/src_backend_catalog_pg_proc.c +4 -1
- data/ext/pg_query/src_backend_commands_define.c +11 -1
- data/ext/pg_query/src_backend_nodes_bitmapset.c +13 -70
- data/ext/pg_query/src_backend_nodes_copyfuncs.c +103 -5894
- data/ext/pg_query/src_backend_nodes_equalfuncs.c +102 -3830
- data/ext/pg_query/src_backend_nodes_extensible.c +6 -29
- data/ext/pg_query/src_backend_nodes_list.c +99 -12
- data/ext/pg_query/src_backend_nodes_makefuncs.c +99 -4
- data/ext/pg_query/src_backend_nodes_nodeFuncs.c +325 -131
- data/ext/pg_query/src_backend_nodes_nodes.c +38 -0
- data/ext/pg_query/src_backend_nodes_value.c +28 -19
- data/ext/pg_query/src_backend_parser_gram.c +36104 -32074
- data/ext/pg_query/src_backend_parser_parser.c +53 -8
- data/ext/pg_query/src_backend_parser_scan.c +4893 -3701
- data/ext/pg_query/src_backend_parser_scansup.c +4 -28
- data/ext/pg_query/src_backend_storage_ipc_ipc.c +13 -4
- data/ext/pg_query/src_backend_tcop_postgres.c +133 -105
- data/ext/pg_query/src_backend_utils_activity_pgstat_database.c +140 -0
- data/ext/pg_query/src_backend_utils_adt_datum.c +17 -7
- data/ext/pg_query/src_backend_utils_adt_expandeddatum.c +1 -1
- data/ext/pg_query/src_backend_utils_adt_format_type.c +6 -2
- data/ext/pg_query/src_backend_utils_adt_numutils.c +489 -0
- data/ext/pg_query/src_backend_utils_adt_ruleutils.c +187 -19
- data/ext/pg_query/src_backend_utils_error_assert.c +17 -18
- data/ext/pg_query/src_backend_utils_error_elog.c +513 -318
- data/ext/pg_query/src_backend_utils_fmgr_fmgr.c +44 -17
- data/ext/pg_query/src_backend_utils_init_globals.c +9 -6
- data/ext/pg_query/src_backend_utils_mb_mbutils.c +74 -131
- data/ext/pg_query/src_backend_utils_misc_guc_tables.c +492 -0
- data/ext/pg_query/src_backend_utils_mmgr_alignedalloc.c +163 -0
- data/ext/pg_query/src_backend_utils_mmgr_aset.c +453 -314
- data/ext/pg_query/src_backend_utils_mmgr_generation.c +1039 -0
- data/ext/pg_query/src_backend_utils_mmgr_mcxt.c +549 -76
- data/ext/pg_query/src_backend_utils_mmgr_slab.c +1021 -0
- data/ext/pg_query/src_common_encnames.c +4 -1
- data/ext/pg_query/src_common_hashfn.c +420 -0
- data/ext/pg_query/src_common_keywords.c +15 -2
- data/ext/pg_query/src_common_kwlist_d.h +545 -498
- data/ext/pg_query/src_common_kwlookup.c +1 -1
- data/ext/pg_query/src_common_psprintf.c +1 -1
- data/ext/pg_query/src_common_stringinfo.c +4 -4
- data/ext/pg_query/src_common_wchar.c +717 -113
- data/ext/pg_query/src_pl_plpgsql_src_pl_comp.c +49 -22
- data/ext/pg_query/src_pl_plpgsql_src_pl_funcs.c +3 -18
- data/ext/pg_query/src_pl_plpgsql_src_pl_gram.c +1136 -1195
- data/ext/pg_query/src_pl_plpgsql_src_pl_handler.c +1 -1
- data/ext/pg_query/src_pl_plpgsql_src_pl_reserved_kwlist_d.h +10 -10
- data/ext/pg_query/src_pl_plpgsql_src_pl_scanner.c +2 -2
- data/ext/pg_query/src_pl_plpgsql_src_pl_unreserved_kwlist_d.h +60 -60
- data/ext/pg_query/src_port_pg_bitutils.c +103 -40
- data/ext/pg_query/src_port_pgstrcasecmp.c +29 -1
- data/ext/pg_query/src_port_qsort.c +12 -224
- data/ext/pg_query/src_port_snprintf.c +51 -29
- data/ext/pg_query/src_port_strerror.c +9 -19
- data/ext/pg_query/src_port_strlcpy.c +79 -0
- data/lib/pg_query/deparse.rb +7 -1
- data/lib/pg_query/filter_columns.rb +7 -5
- data/lib/pg_query/fingerprint.rb +21 -9
- data/lib/pg_query/node.rb +18 -13
- data/lib/pg_query/param_refs.rb +1 -1
- data/lib/pg_query/parse.rb +141 -50
- data/lib/pg_query/pg_query_pb.rb +175 -3031
- data/lib/pg_query/treewalker.rb +26 -2
- data/lib/pg_query/truncate.rb +54 -8
- data/lib/pg_query/version.rb +1 -1
- data/lib/pg_query.rb +0 -1
- metadata +443 -380
- data/ext/pg_query/guc-file.c +0 -0
- data/ext/pg_query/include/access/rmgr.h +0 -35
- data/ext/pg_query/include/access/xloginsert.h +0 -64
- data/ext/pg_query/include/bootstrap/bootstrap.h +0 -62
- data/ext/pg_query/include/catalog/genbki.h +0 -64
- data/ext/pg_query/include/catalog/indexing.h +0 -366
- data/ext/pg_query/include/commands/variable.h +0 -38
- data/ext/pg_query/include/common/ip.h +0 -37
- data/ext/pg_query/include/common/string.h +0 -19
- data/ext/pg_query/include/getaddrinfo.h +0 -162
- data/ext/pg_query/include/kwlist_d.h +0 -1072
- data/ext/pg_query/include/nodes/value.h +0 -61
- data/ext/pg_query/include/parser/gram.h +0 -1067
- data/ext/pg_query/include/parser/kwlist.h +0 -477
- data/ext/pg_query/include/parser/parse_clause.h +0 -54
- data/ext/pg_query/include/parser/parse_collate.h +0 -27
- data/ext/pg_query/include/parser/parse_target.h +0 -46
- data/ext/pg_query/include/parser/parser.h +0 -41
- data/ext/pg_query/include/pg_config_os.h +0 -8
- data/ext/pg_query/include/pgstat.h +0 -1487
- data/ext/pg_query/include/portability/instr_time.h +0 -256
- data/ext/pg_query/include/postmaster/fork_process.h +0 -17
- data/ext/pg_query/include/replication/logicalproto.h +0 -110
- data/ext/pg_query/include/replication/logicalworker.h +0 -19
- data/ext/pg_query/include/replication/reorderbuffer.h +0 -467
- data/ext/pg_query/include/storage/relfilenode.h +0 -99
- data/ext/pg_query/include/utils/dynahash.h +0 -19
- data/ext/pg_query/include/utils/pg_lsn.h +0 -29
- data/ext/pg_query/include/utils/pidfile.h +0 -56
- data/ext/pg_query/include/utils/ps_status.h +0 -25
- data/ext/pg_query/include/utils/regproc.h +0 -28
- data/ext/pg_query/include/utils/rls.h +0 -50
- data/ext/pg_query/include/utils/tzparser.h +0 -39
- data/ext/pg_query/src_backend_libpq_pqcomm.c +0 -651
- data/ext/pg_query/src_backend_parser_parse_expr.c +0 -313
- data/ext/pg_query/src_backend_postmaster_postmaster.c +0 -2230
- data/ext/pg_query/src_backend_storage_lmgr_s_lock.c +0 -370
- data/ext/pg_query/src_backend_utils_hash_dynahash.c +0 -1086
- data/ext/pg_query/src_backend_utils_misc_guc.c +0 -1831
- data/ext/pg_query/src_common_string.c +0 -86
- data/ext/pg_query/src_port_erand48.c +0 -127
- data/ext/pg_query/src_port_pgsleep.c +0 -69
- data/ext/pg_query/src_port_random.c +0 -31
- data/ext/pg_query/src_port_strnlen.c +0 -39
- data/lib/pg_query/json_field_names.rb +0 -1402
- /data/ext/pg_query/include/{pg_config_ext.h → postgres/pg_config_ext.h} +0 -0
data/ext/pg_query/guc-file.c
DELETED
File without changes
|
@@ -1,35 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* rmgr.h
|
3
|
-
*
|
4
|
-
* Resource managers definition
|
5
|
-
*
|
6
|
-
* src/include/access/rmgr.h
|
7
|
-
*/
|
8
|
-
#ifndef RMGR_H
|
9
|
-
#define RMGR_H
|
10
|
-
|
11
|
-
typedef uint8 RmgrId;
|
12
|
-
|
13
|
-
/*
|
14
|
-
* Built-in resource managers
|
15
|
-
*
|
16
|
-
* The actual numerical values for each rmgr ID are defined by the order
|
17
|
-
* of entries in rmgrlist.h.
|
18
|
-
*
|
19
|
-
* Note: RM_MAX_ID must fit in RmgrId; widening that type will affect the XLOG
|
20
|
-
* file format.
|
21
|
-
*/
|
22
|
-
#define PG_RMGR(symname,name,redo,desc,identify,startup,cleanup,mask) \
|
23
|
-
symname,
|
24
|
-
|
25
|
-
typedef enum RmgrIds
|
26
|
-
{
|
27
|
-
#include "access/rmgrlist.h"
|
28
|
-
RM_NEXT_ID
|
29
|
-
} RmgrIds;
|
30
|
-
|
31
|
-
#undef PG_RMGR
|
32
|
-
|
33
|
-
#define RM_MAX_ID (RM_NEXT_ID - 1)
|
34
|
-
|
35
|
-
#endif /* RMGR_H */
|
@@ -1,64 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* xloginsert.h
|
3
|
-
*
|
4
|
-
* Functions for generating WAL records
|
5
|
-
*
|
6
|
-
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
7
|
-
* Portions Copyright (c) 1994, Regents of the University of California
|
8
|
-
*
|
9
|
-
* src/include/access/xloginsert.h
|
10
|
-
*/
|
11
|
-
#ifndef XLOGINSERT_H
|
12
|
-
#define XLOGINSERT_H
|
13
|
-
|
14
|
-
#include "access/rmgr.h"
|
15
|
-
#include "access/xlogdefs.h"
|
16
|
-
#include "storage/block.h"
|
17
|
-
#include "storage/buf.h"
|
18
|
-
#include "storage/relfilenode.h"
|
19
|
-
#include "utils/relcache.h"
|
20
|
-
|
21
|
-
/*
|
22
|
-
* The minimum size of the WAL construction working area. If you need to
|
23
|
-
* register more than XLR_NORMAL_MAX_BLOCK_ID block references or have more
|
24
|
-
* than XLR_NORMAL_RDATAS data chunks in a single WAL record, you must call
|
25
|
-
* XLogEnsureRecordSpace() first to allocate more working memory.
|
26
|
-
*/
|
27
|
-
#define XLR_NORMAL_MAX_BLOCK_ID 4
|
28
|
-
#define XLR_NORMAL_RDATAS 20
|
29
|
-
|
30
|
-
/* flags for XLogRegisterBuffer */
|
31
|
-
#define REGBUF_FORCE_IMAGE 0x01 /* force a full-page image */
|
32
|
-
#define REGBUF_NO_IMAGE 0x02 /* don't take a full-page image */
|
33
|
-
#define REGBUF_WILL_INIT (0x04 | 0x02) /* page will be re-initialized at
|
34
|
-
* replay (implies NO_IMAGE) */
|
35
|
-
#define REGBUF_STANDARD 0x08 /* page follows "standard" page layout,
|
36
|
-
* (data between pd_lower and pd_upper
|
37
|
-
* will be skipped) */
|
38
|
-
#define REGBUF_KEEP_DATA 0x10 /* include data even if a full-page image
|
39
|
-
* is taken */
|
40
|
-
|
41
|
-
/* prototypes for public functions in xloginsert.c: */
|
42
|
-
extern void XLogBeginInsert(void);
|
43
|
-
extern void XLogSetRecordFlags(uint8 flags);
|
44
|
-
extern XLogRecPtr XLogInsert(RmgrId rmid, uint8 info);
|
45
|
-
extern void XLogEnsureRecordSpace(int max_block_id, int ndatas);
|
46
|
-
extern void XLogRegisterData(char *data, int len);
|
47
|
-
extern void XLogRegisterBuffer(uint8 block_id, Buffer buffer, uint8 flags);
|
48
|
-
extern void XLogRegisterBlock(uint8 block_id, RelFileNode *rnode,
|
49
|
-
ForkNumber forknum, BlockNumber blknum, char *page,
|
50
|
-
uint8 flags);
|
51
|
-
extern void XLogRegisterBufData(uint8 block_id, char *data, int len);
|
52
|
-
extern void XLogResetInsertion(void);
|
53
|
-
extern bool XLogCheckBufferNeedsBackup(Buffer buffer);
|
54
|
-
|
55
|
-
extern XLogRecPtr log_newpage(RelFileNode *rnode, ForkNumber forkNum,
|
56
|
-
BlockNumber blk, char *page, bool page_std);
|
57
|
-
extern XLogRecPtr log_newpage_buffer(Buffer buffer, bool page_std);
|
58
|
-
extern void log_newpage_range(Relation rel, ForkNumber forkNum,
|
59
|
-
BlockNumber startblk, BlockNumber endblk, bool page_std);
|
60
|
-
extern XLogRecPtr XLogSaveBufferForHint(Buffer buffer, bool buffer_std);
|
61
|
-
|
62
|
-
extern void InitXLogInsert(void);
|
63
|
-
|
64
|
-
#endif /* XLOGINSERT_H */
|
@@ -1,62 +0,0 @@
|
|
1
|
-
/*-------------------------------------------------------------------------
|
2
|
-
*
|
3
|
-
* bootstrap.h
|
4
|
-
* include file for the bootstrapping code
|
5
|
-
*
|
6
|
-
*
|
7
|
-
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
8
|
-
* Portions Copyright (c) 1994, Regents of the University of California
|
9
|
-
*
|
10
|
-
* src/include/bootstrap/bootstrap.h
|
11
|
-
*
|
12
|
-
*-------------------------------------------------------------------------
|
13
|
-
*/
|
14
|
-
#ifndef BOOTSTRAP_H
|
15
|
-
#define BOOTSTRAP_H
|
16
|
-
|
17
|
-
#include "nodes/execnodes.h"
|
18
|
-
|
19
|
-
|
20
|
-
/*
|
21
|
-
* MAXATTR is the maximum number of attributes in a relation supported
|
22
|
-
* at bootstrap time (i.e., the max possible in a system table).
|
23
|
-
*/
|
24
|
-
#define MAXATTR 40
|
25
|
-
|
26
|
-
#define BOOTCOL_NULL_AUTO 1
|
27
|
-
#define BOOTCOL_NULL_FORCE_NULL 2
|
28
|
-
#define BOOTCOL_NULL_FORCE_NOT_NULL 3
|
29
|
-
|
30
|
-
extern Relation boot_reldesc;
|
31
|
-
extern Form_pg_attribute attrtypes[MAXATTR];
|
32
|
-
extern int numattr;
|
33
|
-
|
34
|
-
|
35
|
-
extern void AuxiliaryProcessMain(int argc, char *argv[]) pg_attribute_noreturn();
|
36
|
-
|
37
|
-
extern void closerel(char *name);
|
38
|
-
extern void boot_openrel(char *name);
|
39
|
-
|
40
|
-
extern void DefineAttr(char *name, char *type, int attnum, int nullness);
|
41
|
-
extern void InsertOneTuple(void);
|
42
|
-
extern void InsertOneValue(char *value, int i);
|
43
|
-
extern void InsertOneNull(int i);
|
44
|
-
|
45
|
-
extern void index_register(Oid heap, Oid ind, IndexInfo *indexInfo);
|
46
|
-
extern void build_indices(void);
|
47
|
-
|
48
|
-
extern void boot_get_type_io_data(Oid typid,
|
49
|
-
int16 *typlen,
|
50
|
-
bool *typbyval,
|
51
|
-
char *typalign,
|
52
|
-
char *typdelim,
|
53
|
-
Oid *typioparam,
|
54
|
-
Oid *typinput,
|
55
|
-
Oid *typoutput);
|
56
|
-
|
57
|
-
extern int boot_yyparse(void);
|
58
|
-
|
59
|
-
extern int boot_yylex(void);
|
60
|
-
extern void boot_yyerror(const char *str) pg_attribute_noreturn();
|
61
|
-
|
62
|
-
#endif /* BOOTSTRAP_H */
|
@@ -1,64 +0,0 @@
|
|
1
|
-
/*-------------------------------------------------------------------------
|
2
|
-
*
|
3
|
-
* genbki.h
|
4
|
-
* Required include file for all POSTGRES catalog header files
|
5
|
-
*
|
6
|
-
* genbki.h defines CATALOG(), BKI_BOOTSTRAP and related macros
|
7
|
-
* so that the catalog header files can be read by the C compiler.
|
8
|
-
* (These same words are recognized by genbki.pl to build the BKI
|
9
|
-
* bootstrap file from these header files.)
|
10
|
-
*
|
11
|
-
*
|
12
|
-
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
13
|
-
* Portions Copyright (c) 1994, Regents of the University of California
|
14
|
-
*
|
15
|
-
* src/include/catalog/genbki.h
|
16
|
-
*
|
17
|
-
*-------------------------------------------------------------------------
|
18
|
-
*/
|
19
|
-
#ifndef GENBKI_H
|
20
|
-
#define GENBKI_H
|
21
|
-
|
22
|
-
/* Introduces a catalog's structure definition */
|
23
|
-
#define CATALOG(name,oid,oidmacro) typedef struct CppConcat(FormData_,name)
|
24
|
-
|
25
|
-
/* Options that may appear after CATALOG (on the same line) */
|
26
|
-
#define BKI_BOOTSTRAP
|
27
|
-
#define BKI_SHARED_RELATION
|
28
|
-
#define BKI_ROWTYPE_OID(oid,oidmacro)
|
29
|
-
#define BKI_SCHEMA_MACRO
|
30
|
-
|
31
|
-
/* Options that may appear after an attribute (on the same line) */
|
32
|
-
#define BKI_FORCE_NULL
|
33
|
-
#define BKI_FORCE_NOT_NULL
|
34
|
-
/* Specifies a default value for a catalog field */
|
35
|
-
#define BKI_DEFAULT(value)
|
36
|
-
/* Specifies a default value for auto-generated array types */
|
37
|
-
#define BKI_ARRAY_DEFAULT(value)
|
38
|
-
/*
|
39
|
-
* Indicates how to perform name lookups, typically for an OID or
|
40
|
-
* OID-array field
|
41
|
-
*/
|
42
|
-
#define BKI_LOOKUP(catalog)
|
43
|
-
|
44
|
-
/* The following are never defined; they are here only for documentation. */
|
45
|
-
|
46
|
-
/*
|
47
|
-
* Variable-length catalog fields (except possibly the first not nullable one)
|
48
|
-
* should not be visible in C structures, so they are made invisible by #ifdefs
|
49
|
-
* of an undefined symbol. See also MARKNOTNULL in bootstrap.c for how this is
|
50
|
-
* handled.
|
51
|
-
*/
|
52
|
-
#undef CATALOG_VARLEN
|
53
|
-
|
54
|
-
/*
|
55
|
-
* There is code in some catalog headers that needs to be visible to clients,
|
56
|
-
* but we don't want clients to include the full header because of safety
|
57
|
-
* issues with other code in the header. To handle that, surround code that
|
58
|
-
* should be visible to clients with "#ifdef EXPOSE_TO_CLIENT_CODE". That
|
59
|
-
* instructs genbki.pl to copy the section when generating the corresponding
|
60
|
-
* "_d" header, which can be included by both client and backend code.
|
61
|
-
*/
|
62
|
-
#undef EXPOSE_TO_CLIENT_CODE
|
63
|
-
|
64
|
-
#endif /* GENBKI_H */
|
@@ -1,366 +0,0 @@
|
|
1
|
-
/*-------------------------------------------------------------------------
|
2
|
-
*
|
3
|
-
* indexing.h
|
4
|
-
* This file provides some definitions to support indexing
|
5
|
-
* on system catalogs
|
6
|
-
*
|
7
|
-
* Caution: all #define's with numeric values in this file had better be
|
8
|
-
* object OIDs, else renumber_oids.pl might change them inappropriately.
|
9
|
-
*
|
10
|
-
*
|
11
|
-
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
12
|
-
* Portions Copyright (c) 1994, Regents of the University of California
|
13
|
-
*
|
14
|
-
* src/include/catalog/indexing.h
|
15
|
-
*
|
16
|
-
*-------------------------------------------------------------------------
|
17
|
-
*/
|
18
|
-
#ifndef INDEXING_H
|
19
|
-
#define INDEXING_H
|
20
|
-
|
21
|
-
#include "access/htup.h"
|
22
|
-
#include "utils/relcache.h"
|
23
|
-
|
24
|
-
/*
|
25
|
-
* The state object used by CatalogOpenIndexes and friends is actually the
|
26
|
-
* same as the executor's ResultRelInfo, but we give it another type name
|
27
|
-
* to decouple callers from that fact.
|
28
|
-
*/
|
29
|
-
typedef struct ResultRelInfo *CatalogIndexState;
|
30
|
-
|
31
|
-
/*
|
32
|
-
* indexing.c prototypes
|
33
|
-
*/
|
34
|
-
extern CatalogIndexState CatalogOpenIndexes(Relation heapRel);
|
35
|
-
extern void CatalogCloseIndexes(CatalogIndexState indstate);
|
36
|
-
extern void CatalogTupleInsert(Relation heapRel, HeapTuple tup);
|
37
|
-
extern void CatalogTupleInsertWithInfo(Relation heapRel, HeapTuple tup,
|
38
|
-
CatalogIndexState indstate);
|
39
|
-
extern void CatalogTupleUpdate(Relation heapRel, ItemPointer otid,
|
40
|
-
HeapTuple tup);
|
41
|
-
extern void CatalogTupleUpdateWithInfo(Relation heapRel,
|
42
|
-
ItemPointer otid, HeapTuple tup,
|
43
|
-
CatalogIndexState indstate);
|
44
|
-
extern void CatalogTupleDelete(Relation heapRel, ItemPointer tid);
|
45
|
-
|
46
|
-
|
47
|
-
/*
|
48
|
-
* These macros are just to keep the C compiler from spitting up on the
|
49
|
-
* upcoming commands for Catalog.pm.
|
50
|
-
*/
|
51
|
-
#define DECLARE_INDEX(name,oid,decl) extern int no_such_variable
|
52
|
-
#define DECLARE_UNIQUE_INDEX(name,oid,decl) extern int no_such_variable
|
53
|
-
|
54
|
-
|
55
|
-
/*
|
56
|
-
* What follows are lines processed by genbki.pl to create the statements
|
57
|
-
* the bootstrap parser will turn into DefineIndex calls.
|
58
|
-
*
|
59
|
-
* The keyword is DECLARE_INDEX or DECLARE_UNIQUE_INDEX. The first two
|
60
|
-
* arguments are the index name and OID, the rest is much like a standard
|
61
|
-
* 'create index' SQL command.
|
62
|
-
*
|
63
|
-
* For each index, we also provide a #define for its OID. References to
|
64
|
-
* the index in the C code should always use these #defines, not the actual
|
65
|
-
* index name (much less the numeric OID).
|
66
|
-
*/
|
67
|
-
|
68
|
-
DECLARE_UNIQUE_INDEX(pg_aggregate_fnoid_index, 2650, on pg_aggregate using btree(aggfnoid oid_ops));
|
69
|
-
#define AggregateFnoidIndexId 2650
|
70
|
-
|
71
|
-
DECLARE_UNIQUE_INDEX(pg_am_name_index, 2651, on pg_am using btree(amname name_ops));
|
72
|
-
#define AmNameIndexId 2651
|
73
|
-
DECLARE_UNIQUE_INDEX(pg_am_oid_index, 2652, on pg_am using btree(oid oid_ops));
|
74
|
-
#define AmOidIndexId 2652
|
75
|
-
|
76
|
-
DECLARE_UNIQUE_INDEX(pg_amop_fam_strat_index, 2653, on pg_amop using btree(amopfamily oid_ops, amoplefttype oid_ops, amoprighttype oid_ops, amopstrategy int2_ops));
|
77
|
-
#define AccessMethodStrategyIndexId 2653
|
78
|
-
DECLARE_UNIQUE_INDEX(pg_amop_opr_fam_index, 2654, on pg_amop using btree(amopopr oid_ops, amoppurpose char_ops, amopfamily oid_ops));
|
79
|
-
#define AccessMethodOperatorIndexId 2654
|
80
|
-
DECLARE_UNIQUE_INDEX(pg_amop_oid_index, 2756, on pg_amop using btree(oid oid_ops));
|
81
|
-
#define AccessMethodOperatorOidIndexId 2756
|
82
|
-
|
83
|
-
DECLARE_UNIQUE_INDEX(pg_amproc_fam_proc_index, 2655, on pg_amproc using btree(amprocfamily oid_ops, amproclefttype oid_ops, amprocrighttype oid_ops, amprocnum int2_ops));
|
84
|
-
#define AccessMethodProcedureIndexId 2655
|
85
|
-
DECLARE_UNIQUE_INDEX(pg_amproc_oid_index, 2757, on pg_amproc using btree(oid oid_ops));
|
86
|
-
#define AccessMethodProcedureOidIndexId 2757
|
87
|
-
|
88
|
-
DECLARE_UNIQUE_INDEX(pg_attrdef_adrelid_adnum_index, 2656, on pg_attrdef using btree(adrelid oid_ops, adnum int2_ops));
|
89
|
-
#define AttrDefaultIndexId 2656
|
90
|
-
DECLARE_UNIQUE_INDEX(pg_attrdef_oid_index, 2657, on pg_attrdef using btree(oid oid_ops));
|
91
|
-
#define AttrDefaultOidIndexId 2657
|
92
|
-
|
93
|
-
DECLARE_UNIQUE_INDEX(pg_attribute_relid_attnam_index, 2658, on pg_attribute using btree(attrelid oid_ops, attname name_ops));
|
94
|
-
#define AttributeRelidNameIndexId 2658
|
95
|
-
DECLARE_UNIQUE_INDEX(pg_attribute_relid_attnum_index, 2659, on pg_attribute using btree(attrelid oid_ops, attnum int2_ops));
|
96
|
-
#define AttributeRelidNumIndexId 2659
|
97
|
-
|
98
|
-
DECLARE_UNIQUE_INDEX(pg_authid_rolname_index, 2676, on pg_authid using btree(rolname name_ops));
|
99
|
-
#define AuthIdRolnameIndexId 2676
|
100
|
-
DECLARE_UNIQUE_INDEX(pg_authid_oid_index, 2677, on pg_authid using btree(oid oid_ops));
|
101
|
-
#define AuthIdOidIndexId 2677
|
102
|
-
|
103
|
-
DECLARE_UNIQUE_INDEX(pg_auth_members_role_member_index, 2694, on pg_auth_members using btree(roleid oid_ops, member oid_ops));
|
104
|
-
#define AuthMemRoleMemIndexId 2694
|
105
|
-
DECLARE_UNIQUE_INDEX(pg_auth_members_member_role_index, 2695, on pg_auth_members using btree(member oid_ops, roleid oid_ops));
|
106
|
-
#define AuthMemMemRoleIndexId 2695
|
107
|
-
|
108
|
-
DECLARE_UNIQUE_INDEX(pg_cast_oid_index, 2660, on pg_cast using btree(oid oid_ops));
|
109
|
-
#define CastOidIndexId 2660
|
110
|
-
DECLARE_UNIQUE_INDEX(pg_cast_source_target_index, 2661, on pg_cast using btree(castsource oid_ops, casttarget oid_ops));
|
111
|
-
#define CastSourceTargetIndexId 2661
|
112
|
-
|
113
|
-
DECLARE_UNIQUE_INDEX(pg_class_oid_index, 2662, on pg_class using btree(oid oid_ops));
|
114
|
-
#define ClassOidIndexId 2662
|
115
|
-
DECLARE_UNIQUE_INDEX(pg_class_relname_nsp_index, 2663, on pg_class using btree(relname name_ops, relnamespace oid_ops));
|
116
|
-
#define ClassNameNspIndexId 2663
|
117
|
-
DECLARE_INDEX(pg_class_tblspc_relfilenode_index, 3455, on pg_class using btree(reltablespace oid_ops, relfilenode oid_ops));
|
118
|
-
#define ClassTblspcRelfilenodeIndexId 3455
|
119
|
-
|
120
|
-
DECLARE_UNIQUE_INDEX(pg_collation_name_enc_nsp_index, 3164, on pg_collation using btree(collname name_ops, collencoding int4_ops, collnamespace oid_ops));
|
121
|
-
#define CollationNameEncNspIndexId 3164
|
122
|
-
DECLARE_UNIQUE_INDEX(pg_collation_oid_index, 3085, on pg_collation using btree(oid oid_ops));
|
123
|
-
#define CollationOidIndexId 3085
|
124
|
-
|
125
|
-
DECLARE_INDEX(pg_constraint_conname_nsp_index, 2664, on pg_constraint using btree(conname name_ops, connamespace oid_ops));
|
126
|
-
#define ConstraintNameNspIndexId 2664
|
127
|
-
DECLARE_UNIQUE_INDEX(pg_constraint_conrelid_contypid_conname_index, 2665, on pg_constraint using btree(conrelid oid_ops, contypid oid_ops, conname name_ops));
|
128
|
-
#define ConstraintRelidTypidNameIndexId 2665
|
129
|
-
DECLARE_INDEX(pg_constraint_contypid_index, 2666, on pg_constraint using btree(contypid oid_ops));
|
130
|
-
#define ConstraintTypidIndexId 2666
|
131
|
-
DECLARE_UNIQUE_INDEX(pg_constraint_oid_index, 2667, on pg_constraint using btree(oid oid_ops));
|
132
|
-
#define ConstraintOidIndexId 2667
|
133
|
-
DECLARE_INDEX(pg_constraint_conparentid_index, 2579, on pg_constraint using btree(conparentid oid_ops));
|
134
|
-
#define ConstraintParentIndexId 2579
|
135
|
-
|
136
|
-
DECLARE_UNIQUE_INDEX(pg_conversion_default_index, 2668, on pg_conversion using btree(connamespace oid_ops, conforencoding int4_ops, contoencoding int4_ops, oid oid_ops));
|
137
|
-
#define ConversionDefaultIndexId 2668
|
138
|
-
DECLARE_UNIQUE_INDEX(pg_conversion_name_nsp_index, 2669, on pg_conversion using btree(conname name_ops, connamespace oid_ops));
|
139
|
-
#define ConversionNameNspIndexId 2669
|
140
|
-
DECLARE_UNIQUE_INDEX(pg_conversion_oid_index, 2670, on pg_conversion using btree(oid oid_ops));
|
141
|
-
#define ConversionOidIndexId 2670
|
142
|
-
|
143
|
-
DECLARE_UNIQUE_INDEX(pg_database_datname_index, 2671, on pg_database using btree(datname name_ops));
|
144
|
-
#define DatabaseNameIndexId 2671
|
145
|
-
DECLARE_UNIQUE_INDEX(pg_database_oid_index, 2672, on pg_database using btree(oid oid_ops));
|
146
|
-
#define DatabaseOidIndexId 2672
|
147
|
-
|
148
|
-
DECLARE_INDEX(pg_depend_depender_index, 2673, on pg_depend using btree(classid oid_ops, objid oid_ops, objsubid int4_ops));
|
149
|
-
#define DependDependerIndexId 2673
|
150
|
-
DECLARE_INDEX(pg_depend_reference_index, 2674, on pg_depend using btree(refclassid oid_ops, refobjid oid_ops, refobjsubid int4_ops));
|
151
|
-
#define DependReferenceIndexId 2674
|
152
|
-
|
153
|
-
DECLARE_UNIQUE_INDEX(pg_description_o_c_o_index, 2675, on pg_description using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops));
|
154
|
-
#define DescriptionObjIndexId 2675
|
155
|
-
DECLARE_UNIQUE_INDEX(pg_shdescription_o_c_index, 2397, on pg_shdescription using btree(objoid oid_ops, classoid oid_ops));
|
156
|
-
#define SharedDescriptionObjIndexId 2397
|
157
|
-
|
158
|
-
DECLARE_UNIQUE_INDEX(pg_enum_oid_index, 3502, on pg_enum using btree(oid oid_ops));
|
159
|
-
#define EnumOidIndexId 3502
|
160
|
-
DECLARE_UNIQUE_INDEX(pg_enum_typid_label_index, 3503, on pg_enum using btree(enumtypid oid_ops, enumlabel name_ops));
|
161
|
-
#define EnumTypIdLabelIndexId 3503
|
162
|
-
DECLARE_UNIQUE_INDEX(pg_enum_typid_sortorder_index, 3534, on pg_enum using btree(enumtypid oid_ops, enumsortorder float4_ops));
|
163
|
-
#define EnumTypIdSortOrderIndexId 3534
|
164
|
-
|
165
|
-
DECLARE_INDEX(pg_index_indrelid_index, 2678, on pg_index using btree(indrelid oid_ops));
|
166
|
-
#define IndexIndrelidIndexId 2678
|
167
|
-
DECLARE_UNIQUE_INDEX(pg_index_indexrelid_index, 2679, on pg_index using btree(indexrelid oid_ops));
|
168
|
-
#define IndexRelidIndexId 2679
|
169
|
-
|
170
|
-
DECLARE_UNIQUE_INDEX(pg_inherits_relid_seqno_index, 2680, on pg_inherits using btree(inhrelid oid_ops, inhseqno int4_ops));
|
171
|
-
#define InheritsRelidSeqnoIndexId 2680
|
172
|
-
DECLARE_INDEX(pg_inherits_parent_index, 2187, on pg_inherits using btree(inhparent oid_ops));
|
173
|
-
#define InheritsParentIndexId 2187
|
174
|
-
|
175
|
-
DECLARE_UNIQUE_INDEX(pg_init_privs_o_c_o_index, 3395, on pg_init_privs using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops));
|
176
|
-
#define InitPrivsObjIndexId 3395
|
177
|
-
|
178
|
-
DECLARE_UNIQUE_INDEX(pg_language_name_index, 2681, on pg_language using btree(lanname name_ops));
|
179
|
-
#define LanguageNameIndexId 2681
|
180
|
-
DECLARE_UNIQUE_INDEX(pg_language_oid_index, 2682, on pg_language using btree(oid oid_ops));
|
181
|
-
#define LanguageOidIndexId 2682
|
182
|
-
|
183
|
-
DECLARE_UNIQUE_INDEX(pg_largeobject_loid_pn_index, 2683, on pg_largeobject using btree(loid oid_ops, pageno int4_ops));
|
184
|
-
#define LargeObjectLOidPNIndexId 2683
|
185
|
-
|
186
|
-
DECLARE_UNIQUE_INDEX(pg_largeobject_metadata_oid_index, 2996, on pg_largeobject_metadata using btree(oid oid_ops));
|
187
|
-
#define LargeObjectMetadataOidIndexId 2996
|
188
|
-
|
189
|
-
DECLARE_UNIQUE_INDEX(pg_namespace_nspname_index, 2684, on pg_namespace using btree(nspname name_ops));
|
190
|
-
#define NamespaceNameIndexId 2684
|
191
|
-
DECLARE_UNIQUE_INDEX(pg_namespace_oid_index, 2685, on pg_namespace using btree(oid oid_ops));
|
192
|
-
#define NamespaceOidIndexId 2685
|
193
|
-
|
194
|
-
DECLARE_UNIQUE_INDEX(pg_opclass_am_name_nsp_index, 2686, on pg_opclass using btree(opcmethod oid_ops, opcname name_ops, opcnamespace oid_ops));
|
195
|
-
#define OpclassAmNameNspIndexId 2686
|
196
|
-
DECLARE_UNIQUE_INDEX(pg_opclass_oid_index, 2687, on pg_opclass using btree(oid oid_ops));
|
197
|
-
#define OpclassOidIndexId 2687
|
198
|
-
|
199
|
-
DECLARE_UNIQUE_INDEX(pg_operator_oid_index, 2688, on pg_operator using btree(oid oid_ops));
|
200
|
-
#define OperatorOidIndexId 2688
|
201
|
-
DECLARE_UNIQUE_INDEX(pg_operator_oprname_l_r_n_index, 2689, on pg_operator using btree(oprname name_ops, oprleft oid_ops, oprright oid_ops, oprnamespace oid_ops));
|
202
|
-
#define OperatorNameNspIndexId 2689
|
203
|
-
|
204
|
-
DECLARE_UNIQUE_INDEX(pg_opfamily_am_name_nsp_index, 2754, on pg_opfamily using btree(opfmethod oid_ops, opfname name_ops, opfnamespace oid_ops));
|
205
|
-
#define OpfamilyAmNameNspIndexId 2754
|
206
|
-
DECLARE_UNIQUE_INDEX(pg_opfamily_oid_index, 2755, on pg_opfamily using btree(oid oid_ops));
|
207
|
-
#define OpfamilyOidIndexId 2755
|
208
|
-
|
209
|
-
DECLARE_UNIQUE_INDEX(pg_proc_oid_index, 2690, on pg_proc using btree(oid oid_ops));
|
210
|
-
#define ProcedureOidIndexId 2690
|
211
|
-
DECLARE_UNIQUE_INDEX(pg_proc_proname_args_nsp_index, 2691, on pg_proc using btree(proname name_ops, proargtypes oidvector_ops, pronamespace oid_ops));
|
212
|
-
#define ProcedureNameArgsNspIndexId 2691
|
213
|
-
|
214
|
-
DECLARE_UNIQUE_INDEX(pg_rewrite_oid_index, 2692, on pg_rewrite using btree(oid oid_ops));
|
215
|
-
#define RewriteOidIndexId 2692
|
216
|
-
DECLARE_UNIQUE_INDEX(pg_rewrite_rel_rulename_index, 2693, on pg_rewrite using btree(ev_class oid_ops, rulename name_ops));
|
217
|
-
#define RewriteRelRulenameIndexId 2693
|
218
|
-
|
219
|
-
DECLARE_UNIQUE_INDEX(pg_sequence_seqrelid_index, 5002, on pg_sequence using btree(seqrelid oid_ops));
|
220
|
-
#define SequenceRelidIndexId 5002
|
221
|
-
|
222
|
-
DECLARE_INDEX(pg_shdepend_depender_index, 1232, on pg_shdepend using btree(dbid oid_ops, classid oid_ops, objid oid_ops, objsubid int4_ops));
|
223
|
-
#define SharedDependDependerIndexId 1232
|
224
|
-
DECLARE_INDEX(pg_shdepend_reference_index, 1233, on pg_shdepend using btree(refclassid oid_ops, refobjid oid_ops));
|
225
|
-
#define SharedDependReferenceIndexId 1233
|
226
|
-
|
227
|
-
DECLARE_UNIQUE_INDEX(pg_statistic_relid_att_inh_index, 2696, on pg_statistic using btree(starelid oid_ops, staattnum int2_ops, stainherit bool_ops));
|
228
|
-
#define StatisticRelidAttnumInhIndexId 2696
|
229
|
-
|
230
|
-
DECLARE_UNIQUE_INDEX(pg_statistic_ext_oid_index, 3380, on pg_statistic_ext using btree(oid oid_ops));
|
231
|
-
#define StatisticExtOidIndexId 3380
|
232
|
-
DECLARE_UNIQUE_INDEX(pg_statistic_ext_name_index, 3997, on pg_statistic_ext using btree(stxname name_ops, stxnamespace oid_ops));
|
233
|
-
#define StatisticExtNameIndexId 3997
|
234
|
-
DECLARE_INDEX(pg_statistic_ext_relid_index, 3379, on pg_statistic_ext using btree(stxrelid oid_ops));
|
235
|
-
#define StatisticExtRelidIndexId 3379
|
236
|
-
|
237
|
-
DECLARE_UNIQUE_INDEX(pg_statistic_ext_data_stxoid_index, 3433, on pg_statistic_ext_data using btree(stxoid oid_ops));
|
238
|
-
#define StatisticExtDataStxoidIndexId 3433
|
239
|
-
|
240
|
-
DECLARE_UNIQUE_INDEX(pg_tablespace_oid_index, 2697, on pg_tablespace using btree(oid oid_ops));
|
241
|
-
#define TablespaceOidIndexId 2697
|
242
|
-
DECLARE_UNIQUE_INDEX(pg_tablespace_spcname_index, 2698, on pg_tablespace using btree(spcname name_ops));
|
243
|
-
#define TablespaceNameIndexId 2698
|
244
|
-
|
245
|
-
DECLARE_UNIQUE_INDEX(pg_transform_oid_index, 3574, on pg_transform using btree(oid oid_ops));
|
246
|
-
#define TransformOidIndexId 3574
|
247
|
-
DECLARE_UNIQUE_INDEX(pg_transform_type_lang_index, 3575, on pg_transform using btree(trftype oid_ops, trflang oid_ops));
|
248
|
-
#define TransformTypeLangIndexId 3575
|
249
|
-
|
250
|
-
DECLARE_INDEX(pg_trigger_tgconstraint_index, 2699, on pg_trigger using btree(tgconstraint oid_ops));
|
251
|
-
#define TriggerConstraintIndexId 2699
|
252
|
-
DECLARE_UNIQUE_INDEX(pg_trigger_tgrelid_tgname_index, 2701, on pg_trigger using btree(tgrelid oid_ops, tgname name_ops));
|
253
|
-
#define TriggerRelidNameIndexId 2701
|
254
|
-
DECLARE_UNIQUE_INDEX(pg_trigger_oid_index, 2702, on pg_trigger using btree(oid oid_ops));
|
255
|
-
#define TriggerOidIndexId 2702
|
256
|
-
|
257
|
-
DECLARE_UNIQUE_INDEX(pg_event_trigger_evtname_index, 3467, on pg_event_trigger using btree(evtname name_ops));
|
258
|
-
#define EventTriggerNameIndexId 3467
|
259
|
-
DECLARE_UNIQUE_INDEX(pg_event_trigger_oid_index, 3468, on pg_event_trigger using btree(oid oid_ops));
|
260
|
-
#define EventTriggerOidIndexId 3468
|
261
|
-
|
262
|
-
DECLARE_UNIQUE_INDEX(pg_ts_config_cfgname_index, 3608, on pg_ts_config using btree(cfgname name_ops, cfgnamespace oid_ops));
|
263
|
-
#define TSConfigNameNspIndexId 3608
|
264
|
-
DECLARE_UNIQUE_INDEX(pg_ts_config_oid_index, 3712, on pg_ts_config using btree(oid oid_ops));
|
265
|
-
#define TSConfigOidIndexId 3712
|
266
|
-
|
267
|
-
DECLARE_UNIQUE_INDEX(pg_ts_config_map_index, 3609, on pg_ts_config_map using btree(mapcfg oid_ops, maptokentype int4_ops, mapseqno int4_ops));
|
268
|
-
#define TSConfigMapIndexId 3609
|
269
|
-
|
270
|
-
DECLARE_UNIQUE_INDEX(pg_ts_dict_dictname_index, 3604, on pg_ts_dict using btree(dictname name_ops, dictnamespace oid_ops));
|
271
|
-
#define TSDictionaryNameNspIndexId 3604
|
272
|
-
DECLARE_UNIQUE_INDEX(pg_ts_dict_oid_index, 3605, on pg_ts_dict using btree(oid oid_ops));
|
273
|
-
#define TSDictionaryOidIndexId 3605
|
274
|
-
|
275
|
-
DECLARE_UNIQUE_INDEX(pg_ts_parser_prsname_index, 3606, on pg_ts_parser using btree(prsname name_ops, prsnamespace oid_ops));
|
276
|
-
#define TSParserNameNspIndexId 3606
|
277
|
-
DECLARE_UNIQUE_INDEX(pg_ts_parser_oid_index, 3607, on pg_ts_parser using btree(oid oid_ops));
|
278
|
-
#define TSParserOidIndexId 3607
|
279
|
-
|
280
|
-
DECLARE_UNIQUE_INDEX(pg_ts_template_tmplname_index, 3766, on pg_ts_template using btree(tmplname name_ops, tmplnamespace oid_ops));
|
281
|
-
#define TSTemplateNameNspIndexId 3766
|
282
|
-
DECLARE_UNIQUE_INDEX(pg_ts_template_oid_index, 3767, on pg_ts_template using btree(oid oid_ops));
|
283
|
-
#define TSTemplateOidIndexId 3767
|
284
|
-
|
285
|
-
DECLARE_UNIQUE_INDEX(pg_type_oid_index, 2703, on pg_type using btree(oid oid_ops));
|
286
|
-
#define TypeOidIndexId 2703
|
287
|
-
DECLARE_UNIQUE_INDEX(pg_type_typname_nsp_index, 2704, on pg_type using btree(typname name_ops, typnamespace oid_ops));
|
288
|
-
#define TypeNameNspIndexId 2704
|
289
|
-
|
290
|
-
DECLARE_UNIQUE_INDEX(pg_foreign_data_wrapper_oid_index, 112, on pg_foreign_data_wrapper using btree(oid oid_ops));
|
291
|
-
#define ForeignDataWrapperOidIndexId 112
|
292
|
-
DECLARE_UNIQUE_INDEX(pg_foreign_data_wrapper_name_index, 548, on pg_foreign_data_wrapper using btree(fdwname name_ops));
|
293
|
-
#define ForeignDataWrapperNameIndexId 548
|
294
|
-
|
295
|
-
DECLARE_UNIQUE_INDEX(pg_foreign_server_oid_index, 113, on pg_foreign_server using btree(oid oid_ops));
|
296
|
-
#define ForeignServerOidIndexId 113
|
297
|
-
DECLARE_UNIQUE_INDEX(pg_foreign_server_name_index, 549, on pg_foreign_server using btree(srvname name_ops));
|
298
|
-
#define ForeignServerNameIndexId 549
|
299
|
-
|
300
|
-
DECLARE_UNIQUE_INDEX(pg_user_mapping_oid_index, 174, on pg_user_mapping using btree(oid oid_ops));
|
301
|
-
#define UserMappingOidIndexId 174
|
302
|
-
DECLARE_UNIQUE_INDEX(pg_user_mapping_user_server_index, 175, on pg_user_mapping using btree(umuser oid_ops, umserver oid_ops));
|
303
|
-
#define UserMappingUserServerIndexId 175
|
304
|
-
|
305
|
-
DECLARE_UNIQUE_INDEX(pg_foreign_table_relid_index, 3119, on pg_foreign_table using btree(ftrelid oid_ops));
|
306
|
-
#define ForeignTableRelidIndexId 3119
|
307
|
-
|
308
|
-
DECLARE_UNIQUE_INDEX(pg_default_acl_role_nsp_obj_index, 827, on pg_default_acl using btree(defaclrole oid_ops, defaclnamespace oid_ops, defaclobjtype char_ops));
|
309
|
-
#define DefaultAclRoleNspObjIndexId 827
|
310
|
-
DECLARE_UNIQUE_INDEX(pg_default_acl_oid_index, 828, on pg_default_acl using btree(oid oid_ops));
|
311
|
-
#define DefaultAclOidIndexId 828
|
312
|
-
|
313
|
-
DECLARE_UNIQUE_INDEX(pg_db_role_setting_databaseid_rol_index, 2965, on pg_db_role_setting using btree(setdatabase oid_ops, setrole oid_ops));
|
314
|
-
#define DbRoleSettingDatidRolidIndexId 2965
|
315
|
-
|
316
|
-
DECLARE_UNIQUE_INDEX(pg_seclabel_object_index, 3597, on pg_seclabel using btree(objoid oid_ops, classoid oid_ops, objsubid int4_ops, provider text_ops));
|
317
|
-
#define SecLabelObjectIndexId 3597
|
318
|
-
|
319
|
-
DECLARE_UNIQUE_INDEX(pg_shseclabel_object_index, 3593, on pg_shseclabel using btree(objoid oid_ops, classoid oid_ops, provider text_ops));
|
320
|
-
#define SharedSecLabelObjectIndexId 3593
|
321
|
-
|
322
|
-
DECLARE_UNIQUE_INDEX(pg_extension_oid_index, 3080, on pg_extension using btree(oid oid_ops));
|
323
|
-
#define ExtensionOidIndexId 3080
|
324
|
-
DECLARE_UNIQUE_INDEX(pg_extension_name_index, 3081, on pg_extension using btree(extname name_ops));
|
325
|
-
#define ExtensionNameIndexId 3081
|
326
|
-
|
327
|
-
DECLARE_UNIQUE_INDEX(pg_range_rngtypid_index, 3542, on pg_range using btree(rngtypid oid_ops));
|
328
|
-
#define RangeTypidIndexId 3542
|
329
|
-
|
330
|
-
DECLARE_UNIQUE_INDEX(pg_policy_oid_index, 3257, on pg_policy using btree(oid oid_ops));
|
331
|
-
#define PolicyOidIndexId 3257
|
332
|
-
|
333
|
-
DECLARE_UNIQUE_INDEX(pg_policy_polrelid_polname_index, 3258, on pg_policy using btree(polrelid oid_ops, polname name_ops));
|
334
|
-
#define PolicyPolrelidPolnameIndexId 3258
|
335
|
-
|
336
|
-
DECLARE_UNIQUE_INDEX(pg_replication_origin_roiident_index, 6001, on pg_replication_origin using btree(roident oid_ops));
|
337
|
-
#define ReplicationOriginIdentIndex 6001
|
338
|
-
|
339
|
-
DECLARE_UNIQUE_INDEX(pg_replication_origin_roname_index, 6002, on pg_replication_origin using btree(roname text_ops));
|
340
|
-
#define ReplicationOriginNameIndex 6002
|
341
|
-
|
342
|
-
DECLARE_UNIQUE_INDEX(pg_partitioned_table_partrelid_index, 3351, on pg_partitioned_table using btree(partrelid oid_ops));
|
343
|
-
#define PartitionedRelidIndexId 3351
|
344
|
-
|
345
|
-
DECLARE_UNIQUE_INDEX(pg_publication_oid_index, 6110, on pg_publication using btree(oid oid_ops));
|
346
|
-
#define PublicationObjectIndexId 6110
|
347
|
-
|
348
|
-
DECLARE_UNIQUE_INDEX(pg_publication_pubname_index, 6111, on pg_publication using btree(pubname name_ops));
|
349
|
-
#define PublicationNameIndexId 6111
|
350
|
-
|
351
|
-
DECLARE_UNIQUE_INDEX(pg_publication_rel_oid_index, 6112, on pg_publication_rel using btree(oid oid_ops));
|
352
|
-
#define PublicationRelObjectIndexId 6112
|
353
|
-
|
354
|
-
DECLARE_UNIQUE_INDEX(pg_publication_rel_prrelid_prpubid_index, 6113, on pg_publication_rel using btree(prrelid oid_ops, prpubid oid_ops));
|
355
|
-
#define PublicationRelPrrelidPrpubidIndexId 6113
|
356
|
-
|
357
|
-
DECLARE_UNIQUE_INDEX(pg_subscription_oid_index, 6114, on pg_subscription using btree(oid oid_ops));
|
358
|
-
#define SubscriptionObjectIndexId 6114
|
359
|
-
|
360
|
-
DECLARE_UNIQUE_INDEX(pg_subscription_subname_index, 6115, on pg_subscription using btree(subdbid oid_ops, subname name_ops));
|
361
|
-
#define SubscriptionNameIndexId 6115
|
362
|
-
|
363
|
-
DECLARE_UNIQUE_INDEX(pg_subscription_rel_srrelid_srsubid_index, 6117, on pg_subscription_rel using btree(srrelid oid_ops, srsubid oid_ops));
|
364
|
-
#define SubscriptionRelSrrelidSrsubidIndexId 6117
|
365
|
-
|
366
|
-
#endif /* INDEXING_H */
|
@@ -1,38 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* variable.h
|
3
|
-
* Routines for handling specialized SET variables.
|
4
|
-
*
|
5
|
-
* Portions Copyright (c) 1996-2020, PostgreSQL Global Development Group
|
6
|
-
* Portions Copyright (c) 1994, Regents of the University of California
|
7
|
-
*
|
8
|
-
* src/include/commands/variable.h
|
9
|
-
*/
|
10
|
-
#ifndef VARIABLE_H
|
11
|
-
#define VARIABLE_H
|
12
|
-
|
13
|
-
#include "utils/guc.h"
|
14
|
-
|
15
|
-
|
16
|
-
extern bool check_datestyle(char **newval, void **extra, GucSource source);
|
17
|
-
extern void assign_datestyle(const char *newval, void *extra);
|
18
|
-
extern bool check_timezone(char **newval, void **extra, GucSource source);
|
19
|
-
extern void assign_timezone(const char *newval, void *extra);
|
20
|
-
extern const char *show_timezone(void);
|
21
|
-
extern bool check_log_timezone(char **newval, void **extra, GucSource source);
|
22
|
-
extern void assign_log_timezone(const char *newval, void *extra);
|
23
|
-
extern const char *show_log_timezone(void);
|
24
|
-
extern bool check_transaction_read_only(bool *newval, void **extra, GucSource source);
|
25
|
-
extern bool check_XactIsoLevel(int *newval, void **extra, GucSource source);
|
26
|
-
extern bool check_transaction_deferrable(bool *newval, void **extra, GucSource source);
|
27
|
-
extern bool check_random_seed(double *newval, void **extra, GucSource source);
|
28
|
-
extern void assign_random_seed(double newval, void *extra);
|
29
|
-
extern const char *show_random_seed(void);
|
30
|
-
extern bool check_client_encoding(char **newval, void **extra, GucSource source);
|
31
|
-
extern void assign_client_encoding(const char *newval, void *extra);
|
32
|
-
extern bool check_session_authorization(char **newval, void **extra, GucSource source);
|
33
|
-
extern void assign_session_authorization(const char *newval, void *extra);
|
34
|
-
extern bool check_role(char **newval, void **extra, GucSource source);
|
35
|
-
extern void assign_role(const char *newval, void *extra);
|
36
|
-
extern const char *show_role(void);
|
37
|
-
|
38
|
-
#endif /* VARIABLE_H */
|
@@ -1,37 +0,0 @@
|
|
1
|
-
/*-------------------------------------------------------------------------
|
2
|
-
*
|
3
|
-
* ip.h
|
4
|
-
* Definitions for IPv6-aware network access.
|
5
|
-
*
|
6
|
-
* These definitions are used by both frontend and backend code.
|
7
|
-
*
|
8
|
-
* Copyright (c) 2003-2020, PostgreSQL Global Development Group
|
9
|
-
*
|
10
|
-
* src/include/common/ip.h
|
11
|
-
*
|
12
|
-
*-------------------------------------------------------------------------
|
13
|
-
*/
|
14
|
-
#ifndef IP_H
|
15
|
-
#define IP_H
|
16
|
-
|
17
|
-
#include "getaddrinfo.h" /* pgrminclude ignore */
|
18
|
-
#include "libpq/pqcomm.h" /* pgrminclude ignore */
|
19
|
-
|
20
|
-
|
21
|
-
#ifdef HAVE_UNIX_SOCKETS
|
22
|
-
#define IS_AF_UNIX(fam) ((fam) == AF_UNIX)
|
23
|
-
#else
|
24
|
-
#define IS_AF_UNIX(fam) (0)
|
25
|
-
#endif
|
26
|
-
|
27
|
-
extern int pg_getaddrinfo_all(const char *hostname, const char *servname,
|
28
|
-
const struct addrinfo *hintp,
|
29
|
-
struct addrinfo **result);
|
30
|
-
extern void pg_freeaddrinfo_all(int hint_ai_family, struct addrinfo *ai);
|
31
|
-
|
32
|
-
extern int pg_getnameinfo_all(const struct sockaddr_storage *addr, int salen,
|
33
|
-
char *node, int nodelen,
|
34
|
-
char *service, int servicelen,
|
35
|
-
int flags);
|
36
|
-
|
37
|
-
#endif /* IP_H */
|