REL_11_STABLE's configure does not select C99 mode by default, so using
C99 block initializer broke the build for some compilers. Revert to C89
in that branch.
Author: Michaƫl Paquier
Discussion: https://postgr.es/m/
20190710070122.GE1031@paquier.xyz
if (trigForm->tgnargs > 0)
{
char *p;
+ int i;
value = heap_getattr(tuple, Anum_pg_trigger_tgargs,
RelationGetDescr(pg_trigger), &isnull);
p = (char *) VARDATA_ANY(DatumGetByteaPP(value));
- for (int i = 0; i < trigForm->tgnargs; i++)
+ for (i = 0; i < trigForm->tgnargs; i++)
{
trigargs = lappend(trigargs, makeString(pstrdup(p)));
p += strlen(p) + 1;