Search Postgresql Archives

Re: psql is hanging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 30 Nov 2018 at 15:53, John Smith <localdevjs@xxxxxxxxx> 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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux