PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "catalog/pg_proc.h"
#include "catalog/pg_type.h"
#include "commands/event_trigger.h"
#include "commands/trigger.h"
#include "executor/spi.h"
#include "funcapi.h"
#include "utils/builtins.h"
#include "utils/lsyscache.h"
#include "utils/syscache.h"
Go to the source code of this file.
Variables | |
PG_MODULE_MAGIC | |
PG_FUNCTION_INFO_V1 | ( | plsample_call_handler | ) |
Datum plsample_call_handler | ( | PG_FUNCTION_ARGS | ) |
Definition at line 39 of file plsample.c.
References CALLED_AS_EVENT_TRIGGER, CALLED_AS_TRIGGER, PG_END_TRY, PG_FINALLY, PG_TRY, plsample_func_handler(), plsample_trigger_handler(), and PointerGetDatum().
|
static |
Definition at line 93 of file plsample.c.
References ALLOCSET_SMALL_SIZES, AllocSetContextCreate, DatumGetCString(), DirectFunctionCall1, elog, ereport, errmsg(), ERROR, fmgr_info_cxt(), get_func_arg_info(), GETSTRUCT, getTypeIOParam(), HeapTupleIsValid, i, InputFunctionCall(), NameStr, NOTICE, ObjectIdGetDatum(), OutputFunctionCall(), palloc0(), PG_RETURN_DATUM, PG_RETURN_NULL, proname, pstrdup(), ReleaseSysCache(), SearchSysCache1(), source, SysCacheGetAttr(), textout(), TopMemoryContext, and value.
Referenced by plsample_call_handler().
|
static |
Definition at line 205 of file plsample.c.
References Assert, CALLED_AS_TRIGGER, DatumGetCString(), DirectFunctionCall1, elog, ereport, errmsg(), ERROR, GETSTRUCT, HeapTupleIsValid, i, if(), NameStr, NOTICE, ObjectIdGetDatum(), PG_CATCH, PG_END_TRY, PG_RE_THROW, PG_TRY, PG_USED_FOR_ASSERTS_ONLY, proname, pstrdup(), ReleaseSysCache(), SearchSysCache1(), source, SPI_connect(), SPI_finish(), SPI_getnspname(), SPI_getrelname(), SPI_OK_FINISH, SPI_register_trigger_data(), SysCacheGetAttr(), textout(), TriggerData::tg_event, TriggerData::tg_relation, TriggerData::tg_trigger, TriggerData::tg_trigtuple, Trigger::tgargs, Trigger::tgname, Trigger::tgnargs, TRIGGER_FIRED_AFTER, TRIGGER_FIRED_BEFORE, TRIGGER_FIRED_BY_DELETE, TRIGGER_FIRED_BY_INSERT, TRIGGER_FIRED_BY_TRUNCATE, TRIGGER_FIRED_BY_UPDATE, TRIGGER_FIRED_FOR_ROW, TRIGGER_FIRED_FOR_STATEMENT, and TRIGGER_FIRED_INSTEAD.
Referenced by plsample_call_handler().
PG_MODULE_MAGIC |
Definition at line 28 of file plsample.c.