pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Ron <ronljohnsonjr@gmail.com>
Cc: pgsql-admin@lists.postgresql.org
Subject: Re: Gauging progress of COPY?
Date: Fri, 21 Jan 2022 14:50:53 -0500
Message-ID: <20220121195052.GJ10577@tamriel.snowman.net> (raw)
In-Reply-To: <40d1f57f-7732-108b-8475-20fec24d8748@gmail.com>
References: <CAOC+FBXWEh2U8m6NFAhjv--YS8=1Mm4ae6UJyJSdzeRB6d3N-A@mail.gmail.com>
	<40d1f57f-7732-108b-8475-20fec24d8748@gmail.com>

Greetings,

* Ron (ronljohnsonjr@gmail.com) wrote:
> On 1/20/22 12:00 PM, Wells Oliver wrote:
> >Is there some clever way to gauge the progressĀ of a COPY command? i.e. you
> >know it has 10m rows, but you can't SELECT COUNT(*).
> 
> Use a specific tool like pg_bulkload.

Or maybe just use pv if you're doing it through psql or such.

Thanks,

Stephen

Attachments:

  signature.asc (application/pgp-signature, 818B) download

view thread (6+ messages)  latest in thread

Message-ID: <20220121195052.GJ10577@tamriel.snowman.net>
Permalink:  ../20220121195052.GJ10577@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20220121195052.GJ10577@tamriel.snowman.net

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: sfrost@snowman.net, ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
  Subject: Re: Gauging progress of COPY?
  In-Reply-To: <20220121195052.GJ10577@tamriel.snowman.net>

* 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