PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | JsonManifestParseState |
Enumerator | |
---|---|
JMFF_PATH | |
JMFF_ENCODED_PATH | |
JMFF_SIZE | |
JMFF_LAST_MODIFIED | |
JMFF_CHECKSUM_ALGORITHM | |
JMFF_CHECKSUM |
Definition at line 43 of file parse_manifest.c.
Definition at line 22 of file parse_manifest.c.
Enumerator | |
---|---|
JMWRF_TIMELINE | |
JMWRF_START_LSN | |
JMWRF_END_LSN |
Definition at line 56 of file parse_manifest.c.
|
static |
Definition at line 730 of file parse_manifest.c.
References hexdecode_char(), i, and input.
Referenced by json_manifest_finalize_file(), and verify_manifest_checksum().
|
static |
Definition at line 268 of file parse_manifest.c.
References JM_EXPECT_FILES_NEXT, JM_EXPECT_TOPLEVEL_FIELD, JM_EXPECT_WAL_RANGES_NEXT, json_manifest_parse_failure(), JSON_SUCCESS, and parse().
Referenced by json_parse_manifest().
|
static |
Definition at line 241 of file parse_manifest.c.
References JM_EXPECT_FILES_NEXT, JM_EXPECT_FILES_START, JM_EXPECT_WAL_RANGES_NEXT, JM_EXPECT_WAL_RANGES_START, json_manifest_parse_failure(), JSON_SUCCESS, and parse().
Referenced by json_parse_manifest().
|
static |
Definition at line 472 of file parse_manifest.c.
References CHECKSUM_TYPE_NONE, JsonManifestParseContext::error_cb, hexdecode_string(), json_manifest_parse_failure(), palloc(), parse(), JsonManifestParseContext::perfile_cb, pfree(), and pg_checksum_parse_type().
Referenced by json_manifest_object_end().
|
static |
Definition at line 574 of file parse_manifest.c.
References json_manifest_parse_failure(), parse(), parse_xlogrecptr(), JsonManifestParseContext::perwalrange_cb, and pfree().
Referenced by json_manifest_object_end().
|
static |
Definition at line 207 of file parse_manifest.c.
References JM_EXPECT_EOF, JM_EXPECT_FILES_NEXT, JM_EXPECT_THIS_FILE_FIELD, JM_EXPECT_THIS_WAL_RANGE_FIELD, JM_EXPECT_TOPLEVEL_END, JM_EXPECT_WAL_RANGES_NEXT, json_manifest_finalize_file(), json_manifest_finalize_wal_range(), json_manifest_parse_failure(), JSON_SUCCESS, and parse().
Referenced by json_parse_manifest().
|
static |
Definition at line 291 of file parse_manifest.c.
References JM_EXPECT_FILES_START, JM_EXPECT_MANIFEST_CHECKSUM_VALUE, JM_EXPECT_THIS_FILE_FIELD, JM_EXPECT_THIS_FILE_VALUE, JM_EXPECT_THIS_WAL_RANGE_FIELD, JM_EXPECT_THIS_WAL_RANGE_VALUE, JM_EXPECT_TOPLEVEL_FIELD, JM_EXPECT_VERSION_VALUE, JM_EXPECT_WAL_RANGES_START, JMFF_CHECKSUM, JMFF_CHECKSUM_ALGORITHM, JMFF_ENCODED_PATH, JMFF_LAST_MODIFIED, JMFF_PATH, JMFF_SIZE, JMWRF_END_LSN, JMWRF_START_LSN, JMWRF_TIMELINE, json_manifest_parse_failure(), JSON_SUCCESS, and parse().
Referenced by json_parse_manifest().
|
static |
Definition at line 166 of file parse_manifest.c.
References JM_EXPECT_FILES_NEXT, JM_EXPECT_THIS_FILE_FIELD, JM_EXPECT_THIS_WAL_RANGE_FIELD, JM_EXPECT_TOPLEVEL_FIELD, JM_EXPECT_TOPLEVEL_START, JM_EXPECT_WAL_RANGES_NEXT, json_manifest_parse_failure(), JSON_SUCCESS, and parse().
Referenced by json_parse_manifest().
|
static |
Definition at line 701 of file parse_manifest.c.
References JsonManifestParseContext::error_cb.
Referenced by json_manifest_array_end(), json_manifest_array_start(), json_manifest_finalize_file(), json_manifest_finalize_wal_range(), json_manifest_object_end(), json_manifest_object_field_start(), json_manifest_object_start(), json_manifest_scalar(), json_parse_manifest(), and verify_manifest_checksum().
|
static |
Definition at line 398 of file parse_manifest.c.
References JM_EXPECT_MANIFEST_CHECKSUM_VALUE, JM_EXPECT_THIS_FILE_FIELD, JM_EXPECT_THIS_FILE_VALUE, JM_EXPECT_THIS_WAL_RANGE_FIELD, JM_EXPECT_THIS_WAL_RANGE_VALUE, JM_EXPECT_TOPLEVEL_END, JM_EXPECT_TOPLEVEL_FIELD, JM_EXPECT_VERSION_VALUE, JMFF_CHECKSUM, JMFF_CHECKSUM_ALGORITHM, JMFF_ENCODED_PATH, JMFF_LAST_MODIFIED, JMFF_PATH, JMFF_SIZE, JMWRF_END_LSN, JMWRF_START_LSN, JMWRF_TIMELINE, json_manifest_parse_failure(), JSON_SUCCESS, parse(), pfree(), and token.
Referenced by json_parse_manifest().
void json_parse_manifest | ( | JsonManifestParseContext * | context, |
char * | buffer, | ||
size_t | size | ||
) |
Definition at line 119 of file parse_manifest.c.
References JsonSemAction::array_element_end, JsonSemAction::array_element_start, JsonSemAction::array_end, JsonSemAction::array_start, JM_EXPECT_EOF, JM_EXPECT_TOPLEVEL_START, json_manifest_array_end(), json_manifest_array_start(), json_manifest_object_end(), json_manifest_object_field_start(), json_manifest_object_start(), json_manifest_parse_failure(), json_manifest_scalar(), JSON_SUCCESS, makeJsonLexContextCstringLen(), JsonSemAction::object_end, JsonSemAction::object_field_end, JsonSemAction::object_field_start, JsonSemAction::object_start, parse(), pg_parse_json(), PG_UTF8, JsonSemAction::scalar, JsonSemAction::semstate, and verify_manifest_checksum().
Referenced by parse_manifest_file().
|
static |
Definition at line 751 of file parse_manifest.c.
References input.
Referenced by json_manifest_finalize_wal_range().
|
static |
Definition at line 631 of file parse_manifest.c.
References JsonManifestParseContext::error_cb, hexdecode_string(), i, json_manifest_parse_failure(), parse(), pg_cryptohash_create(), pg_cryptohash_final(), pg_cryptohash_free(), pg_cryptohash_init(), pg_cryptohash_update(), PG_SHA256, and PG_SHA256_DIGEST_LENGTH.
Referenced by json_parse_manifest().