Re: COPY FROM WHEN condition

Surafel Temsgen <surafel3000@gmail.com>

From: Surafel Temesgen <surafel3000@gmail.com>
To: Tomas Vondra <tomas.vondra@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>, Alvaro Herrera <alvherre@2ndquadrant.com>, Adam Berlin <berlin.ab@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2019-01-22T09:00:31Z
Lists: pgsql-hackers
On Mon, Jan 21, 2019 at 6:22 PM Tomas Vondra <tomas.vondra@2ndquadrant.com>
wrote:

>
> I think the condition can be just
>
>     if (contain_volatile_functions(cstate->whereClause)) { ... }
>
>
>
yes it can be.

regards
Surafel

Commits

  1. Remove unused struct member, enforce multi_insert callback presence.

  2. Separate per-batch and per-tuple memory contexts in COPY

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

  4. Allow COPY FROM to filter data using WHERE conditions

  5. Remove obsolete netbsd dynloader code