Definition at line 24 of file lo.c.
25{
31 bool isdelete;
34
36 elog(
ERROR,
"lo_manage: not fired by trigger manager");
37
41
42
43
44
49
51 elog(
ERROR,
"%s: no column name provided in the trigger definition",
53
54
56 rettuple = newtuple;
57 else
58 rettuple = trigtuple;
59
60
62
63
65
67 elog(
ERROR,
"%s: column \"%s\" does not exist",
69
70
71
72
73
74
75
76 if (newtuple != NULL &&
78 {
81
82 if (orig != NULL && (newv == NULL || strcmp(orig, newv) != 0))
85
86 if (newv)
88 if (orig)
90 }
91
92
93
94
95
96
97 if (isdelete)
98 {
100
101 if (orig != NULL)
102 {
105
107 }
108 }
109
111}
Datum be_lo_unlink(PG_FUNCTION_ARGS)
bool bms_is_member(int x, const Bitmapset *a)
#define DirectFunctionCall1(func, arg1)
if(TABLE==NULL||TABLE_index==NULL)
void pfree(void *pointer)
static Datum PointerGetDatum(const void *X)
static Datum ObjectIdGetDatum(Oid X)
int SPI_fnumber(TupleDesc tupdesc, const char *fname)
char * SPI_getvalue(HeapTuple tuple, TupleDesc tupdesc, int fnumber)
const Bitmapset * tg_updatedcols
#define FirstLowInvalidHeapAttributeNumber
#define TRIGGER_FIRED_BY_DELETE(event)
#define CALLED_AS_TRIGGER(fcinfo)
#define TRIGGER_FIRED_FOR_ROW(event)
#define TRIGGER_FIRED_BY_UPDATE(event)
References generate_unaccent_rules::args, atooid, attnum, be_lo_unlink(), bms_is_member(), CALLED_AS_TRIGGER, DirectFunctionCall1, elog, ERROR, FirstLowInvalidHeapAttributeNumber, if(), ObjectIdGetDatum(), pfree(), PointerGetDatum(), RelationData::rd_att, SPI_fnumber(), SPI_getvalue(), TriggerData::tg_event, TriggerData::tg_newtuple, TriggerData::tg_relation, TriggerData::tg_trigger, TriggerData::tg_trigtuple, TriggerData::tg_updatedcols, Trigger::tgargs, Trigger::tgname, TRIGGER_FIRED_BY_DELETE, TRIGGER_FIRED_BY_UPDATE, and TRIGGER_FIRED_FOR_ROW.