PostgreSQL Source Code git master
|
#include "postgres.h"
#include "access/htup_details.h"
#include "commands/async.h"
#include "commands/trigger.h"
#include "executor/spi.h"
#include "lib/stringinfo.h"
#include "utils/rel.h"
#include "utils/syscache.h"
Go to the source code of this file.
Functions | |
static void | strcpy_quoted (StringInfo r, const char *s, const char q) |
PG_FUNCTION_INFO_V1 (triggered_change_notification) | |
Datum | triggered_change_notification (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
PG_FUNCTION_INFO_V1 | ( | triggered_change_notification | ) |
|
static |
Definition at line 33 of file tcn.c.
References appendStringInfoCharMacro.
Referenced by triggered_change_notification().
Datum triggered_change_notification | ( | PG_FUNCTION_ARGS | ) |
Definition at line 56 of file tcn.c.
References appendStringInfoCharMacro, Async_Notify(), CALLED_AS_TRIGGER, elog, ereport, errcode(), errmsg(), ERROR, GETSTRUCT(), HeapTupleIsValid, i, lfirst_oid, list_free(), makeStringInfo(), NameStr, ObjectIdGetDatum(), PointerGetDatum(), RelationData::rd_att, RelationGetIndexList(), RelationGetRelationName, ReleaseSysCache(), SearchSysCache1(), SPI_getvalue(), strcpy_quoted(), TriggerData::tg_event, TriggerData::tg_relation, TriggerData::tg_trigger, TriggerData::tg_trigtuple, Trigger::tgnargs, TRIGGER_FIRED_AFTER, TRIGGER_FIRED_BY_DELETE, TRIGGER_FIRED_BY_INSERT, TRIGGER_FIRED_BY_UPDATE, TRIGGER_FIRED_FOR_ROW, and TupleDescAttr().