31 #define PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt) \
32 { name, (uint8) (sizeof(name) - 1), evtrgok, rwrok, rowcnt },
91 if (commandname == NULL || *commandname ==
'\0')
92 return CMDTAG_UNKNOWN;
98 position = base + ((last - base) >> 1);
107 return CMDTAG_UNKNOWN;
134 memcpy(buff, tagname, taglen);
135 bufp = buff + taglen;
149 if (tag == CMDTAG_INSERT)
161 Assert((bufp - buff) == strlen(buff));
void InitializeQueryCompletion(QueryCompletion *qc)
struct CommandTagBehavior CommandTagBehavior
const char * GetCommandTagNameAndLen(CommandTag commandTag, Size *len)
CommandTag GetCommandTagEnum(const char *commandname)
bool command_tag_event_trigger_ok(CommandTag commandTag)
static const CommandTagBehavior tag_behavior[COMMAND_TAG_NEXTTAG]
bool command_tag_table_rewrite_ok(CommandTag commandTag)
bool command_tag_display_rowcount(CommandTag commandTag)
Size BuildQueryCompletionString(char *buff, const QueryCompletion *qc, bool nameonly)
const char * GetCommandTagName(CommandTag commandTag)
#define COMPLETION_TAG_BUFSIZE
Assert(fmt[strlen(fmt) - 1] !='\n')
int pg_ulltoa_n(uint64 value, char *a)
int pg_strcasecmp(const char *s1, const char *s2)
const bool table_rewrite_ok
const bool event_trigger_ok
const bool display_rowcount