mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
bpchar, varchar, bytea, numeric are toastable --- if you initdb, which
I did not force. I marked numeric as compressable-but-not-move-off-able, partly to test that storage mode and partly because I've got doubts that numerics are large enough to need external storage.
This commit is contained in:
@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.72 2000/07/03 03:57:03 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.73 2000/07/29 03:26:40 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -240,12 +240,14 @@ CreateTrigger(CreateTrigStmt *stmt)
|
||||
strcat(args, "\\000");
|
||||
}
|
||||
values[Anum_pg_trigger_tgnargs - 1] = Int16GetDatum(nargs);
|
||||
values[Anum_pg_trigger_tgargs - 1] = PointerGetDatum(byteain(args));
|
||||
values[Anum_pg_trigger_tgargs - 1] = DirectFunctionCall1(byteain,
|
||||
CStringGetDatum(args));
|
||||
}
|
||||
else
|
||||
{
|
||||
values[Anum_pg_trigger_tgnargs - 1] = Int16GetDatum(0);
|
||||
values[Anum_pg_trigger_tgargs - 1] = PointerGetDatum(byteain(""));
|
||||
values[Anum_pg_trigger_tgargs - 1] = DirectFunctionCall1(byteain,
|
||||
CStringGetDatum(""));
|
||||
}
|
||||
MemSet(tgattr, 0, FUNC_MAX_ARGS * sizeof(int16));
|
||||
values[Anum_pg_trigger_tgattr - 1] = PointerGetDatum(tgattr);
|
||||
|
Reference in New Issue
Block a user