diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 321b6ddff317f59748b92b26befd4b0f568ccde2..0e8cd30326e15fc89f14e188e07ed3cbe45c746b 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -8316,6 +8316,7 @@ explain_option_elem:
 
 explain_option_name:
 			NonReservedWord			{ $$ = $1; }
+			| analyze_keyword		{ $$ = "analyze"; }
 		;
 
 explain_option_arg: