Re: [HACKERS] May cause infinite loop when initializing rel-cachecontains partitioned table - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [HACKERS] May cause infinite loop when initializing rel-cachecontains partitioned table
Date
Msg-id CA+TgmoY8k5XGWqej3Y_fuJsBmQLcv8TRJycmkOPt8vAcyoYioQ@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] May cause infinite loop when initializing rel-cachecontains partitioned table  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
On Mon, May 8, 2017 at 5:07 AM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.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



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [HACKERS] transition table behavior with inheritance appearsbroken (was: Declarative partitioning - another take)
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] Declarative partitioning - another take