pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Creager <robert@logicalchaos.org>
Cc: pgsql-jdbc@lists.postgresql.org
Subject: Re: COPY FROM STDIN hang
Date: Tue, 23 Mar 2021 17:38:01 -0400
Message-ID: <1012455.1616535481@sss.pgh.pa.us> (raw)
In-Reply-To: <F420A31A-150E-4617-AECA-CAD53BD5385C@logicalchaos.org>
References: <CBE1068B-305A-436E-9143-D5D1E414F773@logicalchaos.org>
	<1011556.1616534216@sss.pgh.pa.us>
	<F420A31A-150E-4617-AECA-CAD53BD5385C@logicalchaos.org>

Robert Creager <robert@logicalchaos.org> writes:
> On Mar 23, 2021, at 3:16 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> You mean the backend hangs?  Can you get a stack trace from that?

> The entire backend doesn’t hang, we’re able to process queries on other connections.  It’s just the COPY FROM thread that’s hung.

Hmm, that set of traces doesn't really look like it's hung,
it might just be taking a long time.

A different theory, which is hard to prove without debug symbols
to provide more detail in the trace, is that it might be looping
due to following a closed loop of btree page right-links.  Which
shouldn't happen normally, but perhaps this index is corrupt.
Can you try reindexing the indexes of the COPY's target table?

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <1012455.1616535481@sss.pgh.pa.us>
Permalink:  ../1012455.1616535481@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1012455.1616535481@sss.pgh.pa.us

 · 

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 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-jdbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robert@logicalchaos.org
  Subject: Re: COPY FROM STDIN hang
  In-Reply-To: <1012455.1616535481@sss.pgh.pa.us>
  References: <CBE1068B-305A-436E-9143-D5D1E414F773@logicalchaos.org> <1011556.1616534216@sss.pgh.pa.us> <F420A31A-150E-4617-AECA-CAD53BD5385C@logicalchaos.org> <1012455.1616535481@sss.pgh.pa.us>

* 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