From: | Geoff Winkless <pgsqladmin(at)geoff(dot)dj> |
---|---|
To: | pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: psql is hanging |
Date: | 2018-11-30 16:46:40 |
Message-ID: | CAEzk6fdrrxNwDXKoTA4xgDBkadcpbephhjDg8-7sC-VWeuFX-w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 30 Nov 2018 at 15:53, John Smith <localdevjs(at)gmail(dot)com> wrote:
> We have a long script of sql that we run, several thousand lines of sql. If I execute the script
> from start to finish, somewhere in the middle of it, one sql command will hang and take 2 to
> 3 hours. During this time, "htop" shows 100% cpu usage with a postgresql process, so it
> appears to be doing something.
>
> If I stop that command, then immediately rerun the rest of the script starting from the command that "hung",
> the "hung" command then completes in 5 seconds and the rest of the script just continues on perfectly.
I assume that JDBC doesn't put a transaction around your whole script
if you send it in one hit?
Geoff
From | Date | Subject | |
---|---|---|---|
Next Message | Ron | 2018-11-30 16:47:18 | Re: psql is hanging |
Previous Message | Tom Lane | 2018-11-30 16:38:37 | Re: psql is hanging |