easily exhaust memory on databases with more than a few hundred triggers.
I don't expect any more releases of these old versions, but let's put the
fix in CVS just so it's archived.
else
tblinfo[i].pkIndexOid = NULL;
+ PQclear(res2);
}
else
tblinfo[i].pkIndexOid = NULL;
perror("strdup");
exit(1);
}
+ PQclear(res2);
}
else
tblinfo[i].primary_key_name = NULL;
else
tgfunc = strdup(finfo[findx].proname);
+ resetPQExpBuffer(delqry);
appendPQExpBuffer(delqry, "DROP TRIGGER %s ", fmtId(tgname, force_quotes));
appendPQExpBuffer(delqry, "ON %s;\n",
fmtId(tblinfo[i].relname, force_quotes));