pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Handle table_complete_speculative's succeeded argument as docume
Date: Tue, 14 May 2019 19:21:38 +0000
Message-ID: <E1hQcza-0000Lk-4m@gemulon.postgresql.org> (raw)

Handle table_complete_speculative's succeeded argument as documented.

For some reason both callsite and the implementation for heapam had
the meaning inverted (i.e. succeeded == true was passed in case of
conflict). That's confusing.

I (Andres) briefly pondered whether it'd be better to rename
table_complete_speculative's argument to 'bool specConflict' or such,
but decided not to. The 'complete' in the function name for me makes
`succeeded` sound a bit better.

Reported-By: Ashwin Agrawal, Melanie Plageman, Heikki Linnakangas
Discussion:
   https://postgr.es/m/CALfoeitk7-TACwYv3hCw45FNPjkA86RfXg4iQ5kAOPhR+F1Y4w@mail.gmail.com
   https://postgr.es/m/97673451-339f-b21e-a781-998d06b1067c@iki.fi

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/aa4b8c61d2cd57b53be03defb04d59b232a0e150

Modified Files
--------------
src/backend/access/heap/heapam_handler.c | 2 +-
src/backend/executor/nodeModifyTable.c   | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)



Message-ID: <E1hQcza-0000Lk-4m@gemulon.postgresql.org>
Permalink:  ../E1hQcza-0000Lk-4m@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1hQcza-0000Lk-4m@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: Handle table_complete_speculative's succeeded argument as docume
  In-Reply-To: <E1hQcza-0000Lk-4m@gemulon.postgresql.org>
  References: <E1hQcza-0000Lk-4m@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox