pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix handling of volatile expressions in COPY FROM ... WHERE
Date: Tue, 22 Jan 2019 23:03:26 +0000
Message-ID: <E1gm54o-0007zC-Ai@gemulon.postgresql.org> (raw)

Fix handling of volatile expressions in COPY FROM ... WHERE

The checking for calls to volatile functions in the COPY FROM ... WHERE
expression was treating all WHERE clauses as if containing such calls.
While that does not produce incorrect results, this disables batching
which may result in significant performance regression.

Discussion: https://www.postgresql.org/message-id/flat/CALAY4q_DdpWDuB5-Zyi-oTtO2uSk8pmy+dupiRe3AvAc++1imA@mail....

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4a8283d0ec5a6781b9e0d4ba16b44da8a0856d02

Modified Files
--------------
src/backend/commands/copy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)



Message-ID: <E1gm54o-0007zC-Ai@gemulon.postgresql.org>
Permalink:  ../E1gm54o-0007zC-Ai@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gm54o-0007zC-Ai@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: tomas.vondra@postgresql.org
  Subject: Re: pgsql: Fix handling of volatile expressions in COPY FROM ... WHERE
  In-Reply-To: <E1gm54o-0007zC-Ai@gemulon.postgresql.org>
  References: <E1gm54o-0007zC-Ai@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