if (attform->atttypid != OIDOID)
ereport(ERROR,
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
- errmsg("column \"%s\" is not of type oid",
- NameStr(*attname))));
+ errmsg("column \"%s\" is not of type %s",
+ NameStr(*attname), "oid")));
if (IndexRelationGetNumberOfKeyAttributes(idx) != 1 ||
idx->rd_index->indkey.values[0] != attno)
TSVECTOROID))
ereport(ERROR,
(errcode(ERRCODE_DATATYPE_MISMATCH),
- errmsg("column \"%s\" is not of tsvector type",
- trigger->tgargs[0])));
+ errmsg("column \"%s\" is not of type %s",
+ trigger->tgargs[0], "tsvector")));
/* Find the configuration to use */
if (config_column)
REGCONFIGOID))
ereport(ERROR,
(errcode(ERRCODE_DATATYPE_MISMATCH),
- errmsg("column \"%s\" is not of regconfig type",
- trigger->tgargs[1])));
+ errmsg("column \"%s\" is not of type %s",
+ trigger->tgargs[1], "regconfig")));
datum = SPI_getbinval(rettuple, rel->rd_att, config_attr_num, &isnull);
if (isnull)