PostgreSQL Source Code git master
|
#include "postgres.h"
#include "tcop/cmdtag.h"
#include "utils/builtins.h"
#include "tcop/cmdtaglist.h"
Go to the source code of this file.
Data Structures | |
struct | CommandTagBehavior |
Macros | |
#define | PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt) { name, (uint8) (sizeof(name) - 1), evtrgok, rwrok, rowcnt }, |
Typedefs | |
typedef struct CommandTagBehavior | CommandTagBehavior |
Functions | |
void | InitializeQueryCompletion (QueryCompletion *qc) |
const char * | GetCommandTagName (CommandTag commandTag) |
const char * | GetCommandTagNameAndLen (CommandTag commandTag, Size *len) |
bool | command_tag_display_rowcount (CommandTag commandTag) |
bool | command_tag_event_trigger_ok (CommandTag commandTag) |
bool | command_tag_table_rewrite_ok (CommandTag commandTag) |
CommandTag | GetCommandTagEnum (const char *commandname) |
Size | BuildQueryCompletionString (char *buff, const QueryCompletion *qc, bool nameonly) |
Variables | |
static const CommandTagBehavior | tag_behavior [] |
typedef struct CommandTagBehavior CommandTagBehavior |
Size BuildQueryCompletionString | ( | char * | buff, |
const QueryCompletion * | qc, | ||
bool | nameonly | ||
) |
Definition at line 121 of file cmdtag.c.
References Assert, command_tag_display_rowcount(), QueryCompletion::commandTag, COMPLETION_TAG_BUFSIZE, GetCommandTagNameAndLen(), MAXINT8LEN, QueryCompletion::nprocessed, and pg_ulltoa_n().
Referenced by EndCommand().
bool command_tag_display_rowcount | ( | CommandTag | commandTag | ) |
Definition at line 60 of file cmdtag.c.
References CommandTagBehavior::display_rowcount, and tag_behavior.
Referenced by BuildQueryCompletionString().
bool command_tag_event_trigger_ok | ( | CommandTag | commandTag | ) |
Definition at line 66 of file cmdtag.c.
References CommandTagBehavior::event_trigger_ok, and tag_behavior.
Referenced by EventTriggerCommonSetup(), and validate_ddl_tags().
bool command_tag_table_rewrite_ok | ( | CommandTag | commandTag | ) |
Definition at line 72 of file cmdtag.c.
References CommandTagBehavior::table_rewrite_ok, and tag_behavior.
Referenced by EventTriggerCommonSetup(), and validate_table_rewrite_tags().
CommandTag GetCommandTagEnum | ( | const char * | commandname | ) |
Definition at line 83 of file cmdtag.c.
References lengthof, CommandTagBehavior::name, pg_strcasecmp(), and tag_behavior.
Referenced by DecodeTextArrayToBitmapset(), validate_ddl_tags(), and validate_table_rewrite_tags().
const char * GetCommandTagName | ( | CommandTag | commandTag | ) |
Definition at line 47 of file cmdtag.c.
References CommandTagBehavior::name, and tag_behavior.
Referenced by _SPI_execute_plan(), CreateCommandName(), EventTriggerCommonSetup(), interpret_AS_clause(), plperl_event_trigger_build_args(), plpgsql_fulfill_promise(), pltcl_event_trigger_handler(), REGRESS_utility_command(), SPI_cursor_open_internal(), and standard_ProcessUtility().
const char * GetCommandTagNameAndLen | ( | CommandTag | commandTag, |
Size * | len | ||
) |
Definition at line 53 of file cmdtag.c.
References len, CommandTagBehavior::name, and tag_behavior.
Referenced by BuildQueryCompletionString(), exec_execute_message(), and exec_simple_query().
void InitializeQueryCompletion | ( | QueryCompletion * | qc | ) |
Definition at line 40 of file cmdtag.c.
References QueryCompletion::commandTag, and QueryCompletion::nprocessed.
Referenced by _SPI_execute_plan(), FillPortalStore(), and PortalRun().
|
static |
Definition at line 33 of file cmdtag.c.
Referenced by command_tag_display_rowcount(), command_tag_event_trigger_ok(), command_tag_table_rewrite_ok(), GetCommandTagEnum(), GetCommandTagName(), and GetCommandTagNameAndLen().