Re: Is there any limit on the number of rows to import using copy command

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: "sivapostgres(at)yahoo(dot)com" <sivapostgres(at)yahoo(dot)com>, Pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is there any limit on the number of rows to import using copy command
Date: 2025-07-23 14:10:44
Message-ID: 0af232bff681af8f34fd92ceb4d5c635e11815cb.camel@cybertec.at
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, 2025-07-23 at 11:55 +0000, sivapostgres(at)yahoo(dot)com wrote:
> 1.  I tried running Copy From command from PGAdmin.  
> 2.  I ran pg_stat_activity also in another tab [ PGAdmin ].
>
> What I observed,
> 1.  In about 2 min, in the Dashboard of PGAdmin, the colour changed to Orange for that particular pid.
> 2.  After few seconds, the colour again changed to Red.   
> 3.  The stat column in both Dashboard and pg_stat_activity.state shows 'active'.
> 4.  No messages relevant to this pid in postgres' log files
> 5.  CPU usage is normal, hovering around 36% overall, 15-18% for postgresql server, from the beginning and even after 3 min.
> 6.  We didn't run any other application in that machine.  
> 7.  Unique Index is there in table2 which will return only one row for that Select Count(*) query.
> 8.  No record is there in the target table when transfer started.  This transfer is the first batch for that particular table.
> 9.  Once color turned into Red, I could cancel the query execuion in PGAdmin, which immediately stops the execution.
> 10. I could not see any locks or blocking pids.

As far as I know, red in pgAdmin (I don't use it) *is* the indication for a wait event.
So look again what the columns "wait_event_type" and "wait_event" in "pg_stat_activity" show.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2025-07-23 14:41:39 Re: Is there any limit on the number of rows to import using copy command
Previous Message David Barbour 2025-07-23 13:49:18 Re: Is there any limit on the number of rows to import using copy command