Re: \COPY command and indexes in tables

From: Jayadevan M <maymala(dot)jayadevan(at)gmail(dot)com>
To: Matthias Apitz <guru(at)unixarea(dot)de>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: \COPY command and indexes in tables
Date: 2020-11-19 10:07:19
Message-ID: CAFS1N4gBNKFAvqoiZrZ_3r7KRHBGYXKCBJsSoT1eP6oR17+huw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
> We load large tables in some customer installation (some millions of rows)
> from file with:
>
> TRUNCATE TABLE tableName ;
> \COPY tableName FROM 'fileName' WITH ( DELIMITER '|' )
>
>
May be you could also make sure that loading actually stopped, by checking
the size of the data directory. In another session, you could try
watch du -h -s <datadirectory>

Regards,
Jayadevan

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Paul Förster 2020-11-19 10:17:59 Re: \COPY command and indexes in tables
Previous Message Alastair McKinley 2020-11-19 09:10:24 Performance degradation with non-null proconfig