Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGNVv-00080W-Tr for pgsql-performance@arkaria.postgresql.org; Fri, 04 Oct 2019 13:20:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iGNVu-0001cI-Ai for pgsql-performance@arkaria.postgresql.org; Fri, 04 Oct 2019 13:20:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGNVt-0001c4-US for pgsql-performance@lists.postgresql.org; Fri, 04 Oct 2019 13:20:54 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iGNVr-0007Go-9n for pgsql-performance@lists.postgresql.org; Fri, 04 Oct 2019 13:20:53 +0000 Received: by mail-io1-xd2b.google.com with SMTP id c25so13367450iot.12 for ; Fri, 04 Oct 2019 06:20:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GvHWvnya0KcdAtWt1JgLBzFmzANawq2QDnUUbev4gQg=; b=siDz24rAEYVVOAJxDfPBJ3ZYRbkjJv0DSn3X2cVBr6ho4HoVvUeGiGv3CLGHIQvjer +b2urHunrVoV4lpzvtQohfpr9mF5llO/dhwHh4vxHP5B1UNVrf9CFVORrbZSLCIdd1Nf SVPYuKxH6O5JHOhtSVNlNbltgH0VYxarb+VeelFFZNDHKligphwIJAnbUdr0wg6o0TJx eNiv8xZ9Zz5/EviRoJfGyj/jF4XldPRw0I1wlT/5tMOrG8R1qOxqNGM8VZsZCIc64wNH pkZ9CrQ42Q0E+3wgJBRQR792bWQSKdZXVT7X2gAXvsGjmF6AmHem41tfckuiziC+qk5w NS2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GvHWvnya0KcdAtWt1JgLBzFmzANawq2QDnUUbev4gQg=; b=WntEv9rZyTS2oN+EgiGv+s5uNwPgbjJ21YXC+Vr5gMuy83BiIl2HSUk+u8y5aMGd9r 4bf1I4kRrmUiUwqquSZUlVSfEi34HwBLWIEp4jaqCXSZA8OUS0ODARPZGi7UD5D06yEW oaMDPBdn3folofkaewr4Se0lXyUGSgQ2bIIPr3FbZYOimYFVfth+8lbdv2+pBsCB3dFx gPFKBXTLPJN/z+dTArQJLnfrAmN0HZ8SjFimrb8hX7qxv8UoTgU5IUGj3ADINVkV+GTQ jewX6iZjdmWPoINsebYgJa+osmDeg9qkiZtwtlf8THQkWgePIg3nY7lv86FLPQuBrzQB sbBQ== X-Gm-Message-State: APjAAAVLv3OxQEP2Pi0KetZf+oE9v0YfUWgK+kr7iLdxoQxhdERP1lQk JPGEx/iF0qMSznE9Us1TXyFrO2gWZbI= X-Google-Smtp-Source: APXvYqxt7qWFMxFEznP01uqsxAOZ48vomb68o/qLQcmgX1SyjJp1TTMsQj3sXMccQ9qBlW/hbaNPuw== X-Received: by 2002:a92:4a11:: with SMTP id m17mr15457714ilf.142.1570195248819; Fri, 04 Oct 2019 06:20:48 -0700 (PDT) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id k5sm3067693ilg.17.2019.10.04.06.20.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Oct 2019 06:20:48 -0700 (PDT) Received: by pryzbyj (Postfix, from userid 1000) id CBFF4800A81; Fri, 4 Oct 2019 08:20:44 -0500 (CDT) Date: Fri, 4 Oct 2019 08:20:44 -0500 From: Justin Pryzby To: nikhil raj Cc: pgsql-performance@lists.postgresql.org Subject: Re: Query went slow all of sudden. ON V 11.3 Message-ID: <20191004132044.GB11241@telsasoft.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Oct 04, 2019 at 03:52:26PM +0530, nikhil raj wrote: > Hi All, > > All of sudden the query went slow before the query was executing in 30- 35 > sec now even after 30 mins i am not getting any result. Can you show "explain(analyze,buffers)" when it's running fast, and at least "explain" when it's slow ? > later I have dropped a table ( t_meners) and recreated it and again it > started working very fast. What indexes exist on that table and on temp_10032019020721_4470 ? Justin