*** pgsql/src/backend/utils/adt/ruleutils.c 2003-01-01 15:03:35.000000000 -0800 --- pgsql/src/backend/utils/adt/ruleutils.c.new 2003-01-01 15:02:32.000000000 -0800 *************** *** 688,693 **** --- 688,704 ---- } appendStringInfo(&buf, " ON DELETE %s", string); + if (!conForm->condeferrable) { + appendStringInfo(&buf, " NOT"); + } + appendStringInfo(&buf, " DEFERRABLE"); + if (conForm->condeferred) { + appendStringInfo(&buf, " INITIALLY DEFERRED"); + } + else { + appendStringInfo(&buf, " INITIALLY IMMEDIATE"); + } + break; }