mirror of
https://github.com/postgres/postgres.git
synced 2025-11-09 06:21:09 +03:00
Add option list to CHECKPOINT command.
This commit adds the boilerplate code for supporting a list of options in CHECKPOINT commands. No actual options are supported yet, but follow-up commits will add support for MODE and FLUSH_UNLOGGED. While at it, this commit refactors the code for executing CHECKPOINT commands to its own function since it's about to become significantly larger. Author: Christoph Berg <myon@debian.org> Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com> Discussion: https://postgr.es/m/aDnaKTEf-0dLiEfz%40msg.df7cb.de
This commit is contained in:
@@ -3153,6 +3153,9 @@ match_previous_words(int pattern_id,
|
||||
COMPLETE_WITH_VERSIONED_SCHEMA_QUERY(Query_for_list_of_procedures);
|
||||
else if (Matches("CALL", MatchAny))
|
||||
COMPLETE_WITH("(");
|
||||
/* CHECKPOINT */
|
||||
else if (Matches("CHECKPOINT"))
|
||||
COMPLETE_WITH("(");
|
||||
/* CLOSE */
|
||||
else if (Matches("CLOSE"))
|
||||
COMPLETE_WITH_QUERY_PLUS(Query_for_list_of_cursors,
|
||||
|
||||
Reference in New Issue
Block a user