From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Melvin Davidson <melvin6925@gmail.com>
To: Yavuz Selim Sertoğlu <yavuzselim.sertoglu@bisoft.com.tr>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Query running for 12 hours
Date: Wed, 30 May 2018 07:09:38 -0700
Message-ID: <2b9d5e83-0acb-09b9-8bb4-c44a82579996@aklaver.com> (raw)
In-Reply-To: <CANu8FizWJMbY3gr+cbwSOsB8T_Bu-PkJSGWKUR+FkxDi0xB6tQ@mail.gmail.com>
References: <CAJTnKsqCvtCfOq5rL1S0scK6XMef4pjh5ty2pkFAuFCagK6VPQ@mail.gmail.com>
<56911e4e-d8a7-1770-7f6b-cd2104979693@aklaver.com>
<CAJTnKsp1+0GP8GBtOfeq5zyCd9mGE+U6_hG8J0n5iM=CXoNR0A@mail.gmail.com>
<CANu8FizWJMbY3gr+cbwSOsB8T_Bu-PkJSGWKUR+FkxDi0xB6tQ@mail.gmail.com>
On 05/30/2018 07:00 AM, Melvin Davidson wrote:
>
>
>
> T*wo things:
> *
> *From your explain, it looks like you need an index on this_.tarih,
> since it is doing a sequential scan when it should be using an index.*
> *
> *
> *Also, your main problem is that when you have two exact same queries
> executing at the same time, they will cause contention in*
> *the disk, and neither one will make much progress.
I am having a hard time seeing how two SELECT queries that on average
take ~6 secs each can stay in contention for 12+ hours, especially with:
waiting | f
> *
>
> --
> *Melvin Davidson**
> Maj. Database & Exploration Specialist**
> Universe Exploration Command – UXC***
> Employment by invitation only!
--
Adrian Klaver
adrian.klaver@aklaver.com
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-general@postgresql.org
Cc: adrian.klaver@aklaver.com, melvin6925@gmail.com, yavuzselim.sertoglu@bisoft.com.tr
Subject: Re: Query running for 12 hours
In-Reply-To: <2b9d5e83-0acb-09b9-8bb4-c44a82579996@aklaver.com>
References: <CAJTnKsqCvtCfOq5rL1S0scK6XMef4pjh5ty2pkFAuFCagK6VPQ@mail.gmail.com> <56911e4e-d8a7-1770-7f6b-cd2104979693@aklaver.com> <CAJTnKsp1+0GP8GBtOfeq5zyCd9mGE+U6_hG8J0n5iM=CXoNR0A@mail.gmail.com> <CANu8FizWJMbY3gr+cbwSOsB8T_Bu-PkJSGWKUR+FkxDi0xB6tQ@mail.gmail.com> <2b9d5e83-0acb-09b9-8bb4-c44a82579996@aklaver.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