From: Justin Pryzby <pryzby@telsasoft.com>
To: Robert Creager <robertc@spectralogic.com>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: Need help identifying a periodic performance issue.
Date: Wed, 17 Nov 2021 13:00:38 -0600
Message-ID: <20211117190038.GB17618@telsasoft.com> (raw)
In-Reply-To: <0C3B1B2B-6571-477D-A89C-6FA7B6259840@spectralogic.com>
References: <3A76761B-3DDD-4A3C-B791-E73107AFC9A2@spectralogic.com>
<CA+hUKG+iKkdeS9g1=866pypHZwPMQL2ho+oFWLSpRjV=-PvuCg@mail.gmail.com>
<0C3B1B2B-6571-477D-A89C-6FA7B6259840@spectralogic.com>
On Wed, Nov 17, 2021 at 05:51:05PM +0000, Robert Creager wrote:
> postgres`HeapTupleSatisfiesVisibility+0x42
> postgres`heapgetpage+0x237
> postgres`heapgettup_pagemode+0x5ad
> postgres`heap_getnextslot+0x52
> postgres`SeqNext+0x71
> postgres`ExecScan+0xc9
> postgres`ExecLockRows+0x7b
> postgres`standard_ExecutorRun+0x10a
> postgres`_SPI_execute_plan+0x524
> postgres`SPI_execute_snapshot+0x116
> postgres`ri_PerformCheck+0x29e
> postgres`RI_FKey_check+0x5d3
> postgres`RI_FKey_check_ins+0x21
> postgres`ExecCallTriggerFunc+0x105
> postgres`afterTriggerInvokeEvents+0x605
> postgres`AfterTriggerEndQuery+0x7a
> postgres`CopyFrom+0xaca
> postgres`DoCopy+0x553
> postgres`standard_ProcessUtility+0x5f9
> postgres`ProcessUtility+0x28
> 55
It shows that the process is running FK triggers.
Would you show \d for the table which is the destination of COPY, and for other
tables to which it has FK constraints.
Also, do you have any long-running transactions ?
In your first message, you showed no other queries except "idle" ones (not
idle-in-transaction) but I figured I'd ask anyway.
Does your COPY job run in a transaction block ?
You're running pg13.2, so it would be interesting to know if the problem exists
under 13.5.
--
Justin
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-performance@postgresql.org
Cc: pryzby@telsasoft.com, robertc@spectralogic.com, thomas.munro@gmail.com, pgsql-performance@lists.postgresql.org
Subject: Re: Need help identifying a periodic performance issue.
In-Reply-To: <20211117190038.GB17618@telsasoft.com>
* 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