+ /* ALTER TEXT SEARCH */
+ else if (pg_strcasecmp(prev3_wd, "ALTER") == 0 &&
+ pg_strcasecmp(prev2_wd, "TEXT") == 0 &&
+ pg_strcasecmp(prev_wd, "SEARCH") == 0)
+ {
+ static const char *const list_ALTERTEXTSEARCH[] =
+ {"CONFIGURATION", "DICTIONARY", "PARSER", "TEMPLATE", NULL};
+
+ COMPLETE_WITH_LIST(list_ALTERTEXTSEARCH);
+ }
+ else if (pg_strcasecmp(prev5_wd, "ALTER") == 0 &&
+ pg_strcasecmp(prev4_wd, "TEXT") == 0 &&
+ pg_strcasecmp(prev3_wd, "SEARCH") == 0 &&
+ (pg_strcasecmp(prev2_wd, "TEMPLATE") == 0 ||
+ pg_strcasecmp(prev2_wd, "PARSER") == 0))
+ COMPLETE_WITH_CONST("RENAME TO");
+
+ else if (pg_strcasecmp(prev5_wd, "ALTER") == 0 &&
+ pg_strcasecmp(prev4_wd, "TEXT") == 0 &&
+ pg_strcasecmp(prev3_wd, "SEARCH") == 0 &&
+ pg_strcasecmp(prev2_wd, "DICTIONARY") == 0)
+ {
+ static const char *const list_ALTERTEXTSEARCH2[] =
+ {"OWNER TO", "RENAME TO", NULL};
+
+ COMPLETE_WITH_LIST(list_ALTERTEXTSEARCH2);
+ }
+
+ else if (pg_strcasecmp(prev5_wd, "ALTER") == 0 &&
+ pg_strcasecmp(prev4_wd, "TEXT") == 0 &&
+ pg_strcasecmp(prev3_wd, "SEARCH") == 0 &&
+ pg_strcasecmp(prev2_wd, "CONFIGURATION") == 0)
+ {
+ static const char *const list_ALTERTEXTSEARCH3[] =
+ {"ADD MAPPING FOR", "ALTER MAPPING", "DROP MAPPING FOR", "OWNER TO", "RENAME TO", NULL};
+
+ COMPLETE_WITH_LIST(list_ALTERTEXTSEARCH3);
+ }
+