From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Matthias Apitz <guru@unixarea.de>
To: pgsql-general@lists.postgresql.org
Subject: Re: \COPY command and indexes in tables
Date: Thu, 19 Nov 2020 08:57:33 +0100
Message-ID: <044d427bf8a91959da6cb20394c166be734afe02.camel@cybertec.at> (raw)
In-Reply-To: <20201119073845.GA13022@r314251-amd64>
References: <20201119073845.GA13022@r314251-amd64>
On Thu, 2020-11-19 at 08:38 +0100, Matthias Apitz wrote:
> We load large tables in some customer installation (some millions of rows)
> from file with:
>
> TRUNCATE TABLE tableName ;
> \COPY tableName FROM 'fileName' WITH ( DELIMITER '|' )
>
> and got to know that the loading nearly stops (without any real CPU
> consumption) in the middle. The wild guess is that we forgot to DROP the indexes on
> the tables.
If it does not consume CPU, it must be stalled somehow.
Are there any wait events in "pg_stat_activity".
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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-general@postgresql.org
Cc: laurenz.albe@cybertec.at, guru@unixarea.de
Subject: Re: \COPY command and indexes in tables
In-Reply-To: <044d427bf8a91959da6cb20394c166be734afe02.camel@cybertec.at>
References: <20201119073845.GA13022@r314251-amd64> <044d427bf8a91959da6cb20394c166be734afe02.camel@cybertec.at>
* 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