Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Peter Eisentraut wrote:
>> Is using rules here still best practice? This was probably written
>> before statement triggers were available.
> I think it's easier to dodge the rules topic entirely here and just
> mention statement triggers. Using rules you cannot cover the truncate
> case, for instance.
+1
regards, tom lane