question on error during COPY FROM - Mailing list pgsql-general

From Jerome Wagner
Subject question on error during COPY FROM
Date
Msg-id CA+=V_fMXz7Gecx4NVGUg1tA-wbt1PD+B-dn01vMKMw91bF4Cow@mail.gmail.com
Whole thread Raw
Responses Re: question on error during COPY FROM  ("Ilya Kazakevich" <Ilya.Kazakevich@JetBrains.com>)
Re: question on error during COPY FROM  (Melvin Davidson <melvin6925@gmail.com>)
List pgsql-general
Hello,

in the documentation I read


COPY stops operation at the first error. This should not lead to problems in the event of a COPY TO, but the target table will already have received earlier rows in a COPY FROM. These rows will not be visible or accessible, but they still occupy disk space. This might amount to a considerable amount of wasted disk space if the failure happened well into a large copy operation. You might wish to invoke VACUUM to recover the wasted space.

does that mean that I should always execute a VACUUM to recover the wasted space when an error is triggered or will the auto-vacuum mechanism do the job by itself ?

Thanks
Jerome

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Unique constraint on field inside composite type.
Next
From: pinker
Date:
Subject: Re: Sequential vs. random values - number of pages in B-tree