Martin Marques <martin(at)marquesminen(dot)com(dot)ar> writes:
> Tom Lane escribi:
>> Martin Marques <martin(at)marquesminen(dot)com(dot)ar> writes:
>>> I have always heard that modification queries should be EXECUTED in PL.
>>> AFAICR.
>>
>> Run far away from whatever source gave you that advice...
> Sorry, it was with DDL commands.
That's not much better ;-). DDL commands don't have plans, so there's
not anything that could be invalidated. I don't see any reason to use
an EXECUTE unless there's an actual textual change in the command you
need to execute.
regards, tom lane