Re: Split copy.c - Mailing list pgsql-hackers

From Erikjan Rijkers
Subject Re: Split copy.c
Date
Msg-id 82dcd18c3e873b390a5b914d9d9b8059@xs4all.nl
Whole thread Raw
In response to Re: Split copy.c  (Heikki Linnakangas <hlinnaka@iki.fi>)
Responses Re: Split copy.c
List pgsql-hackers
On 2020-11-03 08:38, Heikki Linnakangas wrote:

> [v3-0001-Split-copy.c-into-copyto.c-and-copyfrom.c.patch]
> [v3-0002-Split-copyfrom.c-further-into-copyfrom.c-and-copy.patch]

The patches apply ok, but I get these errors:

In file included from ../../../src/include/postgres.h:46,
                  from copyto.c:15:
copyto.c: In function ‘BeginCopyTo’:
copyto.c:477:11: error: ‘is_from’ undeclared (first use in this 
function); did you mean ‘is_program’?
    Assert(!is_from);
            ^~~~~~~
../../../src/include/c.h:790:9: note: in definition of macro ‘Assert’
    if (!(condition)) \
          ^~~~~~~~~
copyto.c:477:11: note: each undeclared identifier is reported only once 
for each function it appears in
    Assert(!is_from);
            ^~~~~~~
../../../src/include/c.h:790:9: note: in definition of macro ‘Assert’
    if (!(condition)) \
          ^~~~~~~~~



pgsql-hackers by date:

Previous
From: Magnus Hagander
Date:
Subject: Re: Online checksums verification in the backend
Next
From: Amit Kapila
Date:
Subject: Re: Parallel copy