Re: May cause infinite loop when initializing rel-cache contains partitioned table

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Amit Langote <Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp>
Cc: 甄明洋 <18612389267(at)yeah(dot)net>, pg开发者 <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: May cause infinite loop when initializing rel-cache contains partitioned table
Date: 2017-05-10 03:56:07
Message-ID: CA+TgmoY8k5XGWqej3Y_fuJsBmQLcv8TRJycmkOPt8vAcyoYioQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, May 8, 2017 at 5:07 AM, Amit Langote
<Langote_Amit_f8(at)lab(dot)ntt(dot)co(dot)jp> wrote:
> Thanks for bringing it to the notice. The above code should follow what's
> done for other fields that are initialized by
> RelationCacheInitializePhase3(). Although, since none of the entries in
> the relcache init file are partitioned tables, infinite loop won't occur
> in practice, but it's a good idea to fix the code anyway.
>
> Attached patch does that.

Committed.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2017-05-10 03:59:34 Re: Declarative partitioning - another take
Previous Message Robert Haas 2017-05-10 03:55:59 Re: transition table behavior with inheritance appears broken (was: Declarative partitioning - another take)