Re: [HACKERS] INSERT ON CONFLICT and partitioned tables - Mailing list pgsql-hackers

From Robert Haas
Subject Re: [HACKERS] INSERT ON CONFLICT and partitioned tables
Date
Msg-id CA+TgmoZtJxZy2Cjdjp5ZCsQHuBqW-DYCrW5T3U-wtC=1B8CQeg@mail.gmail.com
Whole thread Raw
In response to [HACKERS] INSERT ON CONFLICT and partitioned tables  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
Responses Re: [HACKERS] INSERT ON CONFLICT and partitioned tables
List pgsql-hackers
On Fri, Dec 1, 2017 at 2:44 AM, Amit Langote
<Langote_Amit_f8@lab.ntt.co.jp> wrote:
> I forgot to consider the fact that mtstate could be NULL in
> ExecSetupPartitionTupleRouting(), so would result in dereferencing NULL
> pointer when called from CopyFrom(), which fixed in the attached updated
> patch.

a ? b : false can more simply be spelled a && b.

Committed after changing it like that, fixing the broken documentation
build, and making minor edits to the comments and documentation.

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


pgsql-hackers by date:

Previous
From: Petr Jelinek
Date:
Subject: Re: [HACKERS] Issues with logical replication
Next
From: Tom Lane
Date:
Subject: Re: Transform for pl/perl