Re: "ALTER TRIGGER .. RENAME TO" broken with the "Remove WITH OIDS"commit. - Mailing list pgsql-hackers

From Andres Freund
Subject Re: "ALTER TRIGGER .. RENAME TO" broken with the "Remove WITH OIDS"commit.
Date
Msg-id 20190121172808.wztidyesdjgxvseh@alap3.anarazel.de
Whole thread Raw
In response to "ALTER TRIGGER .. RENAME TO" broken with the "Remove WITH OIDS" commit.  (Rushabh Lathia <rushabh.lathia@gmail.com>)
List pgsql-hackers
Hi,

On 2019-01-21 17:02:15 +0530, Rushabh Lathia wrote:
> Hi,
> 
> I found that ALTER TRIGGER .. RENAME TO is broken and it's
> unable to rename the trigger.  Looking further seems renametrig()
> function, copy the new trigger name into wrong tuple.  This is
> broken with below commit:
> 
> commit 578b229718e8f15fa779e20f086c4b6bb3776106
> Author: Andres Freund <andres@anarazel.de>
> Date:   Tue Nov 20 15:36:57 2018 -0800
> 
>     Remove WITH OIDS support, change oid catalog column visibility.
> 
> PFA patch to fix the issue.  I also added the testcase for the
> same into the regression.

Thanks for finding and the fix. Pushed!


pgsql-hackers by date:

Previous
From: "Nishant, Fnu"
Date:
Subject: Re: possible deadlock: different lock ordering for heap pages
Next
From: Alexander Korotkov
Date:
Subject: Re: jsonpath