Issue executing query from container

From: Eudald Valcàrcel Lacasa <eudald(dot)valcarcel(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Issue executing query from container
Date: 2020-07-14 20:25:07
Message-ID: CANEx+AWsQETay6WmKUw=8HPZ3L9bvk1AveF5wrOQD+tAPyN3WA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello!
I'm running a docker container that executes a php script running a
sequence of queries.
One of the queries gets stuck (takes more than 2 hours in execution,
active in pg_stat_activity).
The query is executed with a JOIN between a FOREIGN TABLE and a local table.

Executing this query from the psql console takes less than 5 seconds to resolve.
If I execute the query from the container created, manually, it
resolves as well within 5 seconds.

Can anyone guide me in a way I can troubleshoot what is causing the
query to get stuck?

Thanks!
Eudald

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-07-14 21:51:38 Re: Issue executing query from container
Previous Message Radoslav Nedyalkov 2020-07-14 20:04:11 Re: single table - fighting a seq scan