Re: minor fix for CloneRowTriggersToPartition

From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: minor fix for CloneRowTriggersToPartition
Date: 2018-04-23 15:13:01
Message-ID: 20180423151301.fd3exkfvy7qeu2va@alvherre.pgsql
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2018-04-23 15:16:23 Re: minor fix for acquire_inherited_sample_rows
Previous Message Teodor Sigaev 2018-04-23 15:00:09 Re: bms_prev_member won't work correctly if bitmapword is 64-bits