PostgreSQL Source Code
git master
|
#include "tcop/cmdtaglist.h"
Go to the source code of this file.
Data Structures | |
struct | QueryCompletion |
Macros | |
#define | COMPLETION_TAG_BUFSIZE 64 |
#define | PG_CMDTAG(tag, name, evtrgok, rwrok, rowcnt) tag, |
Typedefs | |
typedef enum CommandTag | CommandTag |
typedef struct QueryCompletion | QueryCompletion |
Enumerations | |
enum | CommandTag |
Functions | |
static void | SetQueryCompletion (QueryCompletion *qc, CommandTag commandTag, uint64 nprocessed) |
static void | CopyQueryCompletion (QueryCompletion *dst, const QueryCompletion *src) |
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) |
#define PG_CMDTAG | ( | tag, | |
name, | |||
evtrgok, | |||
rwrok, | |||
rowcnt | |||
) | tag, |
typedef enum CommandTag CommandTag |
typedef struct QueryCompletion QueryCompletion |
enum CommandTag |
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().
|
inlinestatic |
Definition at line 45 of file cmdtag.h.
References QueryCompletion::commandTag, and QueryCompletion::nprocessed.
Referenced by FillPortalStore(), PortalRun(), and PortalRunMulti().
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().
|
inlinestatic |
Definition at line 37 of file cmdtag.h.
References QueryCompletion::commandTag, and QueryCompletion::nprocessed.
Referenced by ExecCreateTableAs(), PerformPortalFetch(), ProcessQuery(), RefreshMatViewByOid(), standard_ProcessUtility(), StartLogicalReplication(), and WalSndDone().