From fcd810c69adf11b6ec1cff35359be0dd27662eff Mon Sep 17 00:00:00 2001 From: Magnus Hagander Date: Fri, 14 Jan 2011 16:30:33 +0100 Subject: Use a lexer and grammar for parsing walsender commands Makes it easier to parse mainly the BASE_BACKUP command with it's options, and avoids having to manually deal with quoted identifiers in the label (previously broken), and makes it easier to add new commands and options in the future. In passing, refactor the case statement in the walsender to put each command in it's own function. --- doc/src/sgml/protocol.sgml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/protocol.sgml b/doc/src/sgml/protocol.sgml index 80c14fb74cd..76c062fd516 100644 --- a/doc/src/sgml/protocol.sgml +++ b/doc/src/sgml/protocol.sgml @@ -1460,15 +1460,26 @@ The commands accepted in walsender mode are: - BASE_BACKUP options;label + BASE_BACKUP [LABEL 'label'] [PROGRESS] Instructs the server to start streaming a base backup. - The system will automatically be put in backup mode with the label - specified in label before the backup is started, and - taken out of it when the backup is complete. The following options - are accepted: + The system will automatically be put in backup mode before the backup + is started, and taken out of it when the backup is complete. The + following options are accepted: + + LABEL 'label' + + + Sets the label of the backup. If none is specified, a backup label + of base backup will be used. The quoting rules + for the label are the same as a standard SQL string with + turned on. + + + + PROGRESS -- cgit v1.2.3