Unverified Commit af1c231a authored by Dimitri Fontaine's avatar Dimitri Fontaine Committed by GitHub
Browse files

Rewrite the ad-hoc parser for Postgres Archive TOC items. (#469)

* Rewrite the ad-hoc parser for Postgres Archive TOC items.

This time use a tokenizer and hand-roll a grammar/parser on-top of it,
expecting tokens in the right order. We have a pretty simple grammar at the
moment, because we don't extend the support to the ACL and COMMENT composite
types. We might want to do that later.

* Reformat parsing of ACL and COMMENTS too.

* Free allocated memory for parsing pg_restore archive catalogs.

* Fix rebase.

* Protect against NULL pointer dereferencing.

* Fix string size compute bug (include 2 bytes for prefix).
parent 379d242b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment