Re: minor fix for CloneRowTriggersToPartition - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: minor fix for CloneRowTriggersToPartition
Date
Msg-id 20180423151301.fd3exkfvy7qeu2va@alvherre.pgsql
Whole thread Raw
In response to minor fix for CloneRowTriggersToPartition  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
Amit Langote wrote:
> Hi.
> 
> I think we should apply the attached patch so that a CreateTriggerStmt
> that CloneRowTriggersToPartition creates for a partition doesn't contain
> pointers that point to the information in the parent table's relcache,
> which may go stale before the pointers in question are used.

Thanks for catching that!  Pushed.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Teodor Sigaev
Date:
Subject: Re: bms_prev_member won't work correctly if bitmapword is 64-bits
Next
From: Alvaro Herrera
Date:
Subject: Re: minor fix for acquire_inherited_sample_rows