pgsql: Fix ENABLE/DISABLE TRIGGER to handle recursion correctly

2022-08-05 Thread Alvaro Herrera
Fix ENABLE/DISABLE TRIGGER to handle recursion correctly Using ATSimpleRecursion() in ATPrepCmd() to do so as bbb927b4db9b did is not correct, because ATPrepCmd() can't distinguish between triggers that may be cloned and those that may not, so would wrongly try to recurse for the latter category o

pgsql: Fix ENABLE/DISABLE TRIGGER to handle recursion correctly

2022-08-05 Thread Alvaro Herrera
Fix ENABLE/DISABLE TRIGGER to handle recursion correctly Using ATSimpleRecursion() in ATPrepCmd() to do so as bbb927b4db9b did is not correct, because ATPrepCmd() can't distinguish between triggers that may be cloned and those that may not, so would wrongly try to recurse for the latter category o

pgsql: Fix ENABLE/DISABLE TRIGGER to handle recursion correctly

2022-08-05 Thread Alvaro Herrera
Fix ENABLE/DISABLE TRIGGER to handle recursion correctly Using ATSimpleRecursion() in ATPrepCmd() to do so as bbb927b4db9b did is not correct, because ATPrepCmd() can't distinguish between triggers that may be cloned and those that may not, so would wrongly try to recurse for the latter category o

pgsql: Fix ENABLE/DISABLE TRIGGER to handle recursion correctly

2022-08-05 Thread Alvaro Herrera
Fix ENABLE/DISABLE TRIGGER to handle recursion correctly Using ATSimpleRecursion() in ATPrepCmd() to do so as bbb927b4db9b did is not correct, because ATPrepCmd() can't distinguish between triggers that may be cloned and those that may not, so would wrongly try to recurse for the latter category o

pgsql: Fix ENABLE/DISABLE TRIGGER to handle recursion correctly

2022-08-05 Thread Alvaro Herrera
Fix ENABLE/DISABLE TRIGGER to handle recursion correctly Using ATSimpleRecursion() in ATPrepCmd() to do so as bbb927b4db9b did is not correct, because ATPrepCmd() can't distinguish between triggers that may be cloned and those that may not, so would wrongly try to recurse for the latter category o

pgsql: Fix ENABLE/DISABLE TRIGGER to handle recursion correctly

2022-08-05 Thread Alvaro Herrera
Fix ENABLE/DISABLE TRIGGER to handle recursion correctly Using ATSimpleRecursion() in ATPrepCmd() to do so as bbb927b4db9b did is not correct, because ATPrepCmd() can't distinguish between triggers that may be cloned and those that may not, so would wrongly try to recurse for the latter category o