Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1atFQn-0003fs-KK for pgsql-sql@arkaria.postgresql.org; Thu, 21 Apr 2016 14:18:09 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1atFQn-0001t2-62 for pgsql-sql@arkaria.postgresql.org; Thu, 21 Apr 2016 14:18:09 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1atFPp-0008S0-IP for pgsql-sql@postgresql.org; Thu, 21 Apr 2016 14:17:09 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1atFPi-0005fu-Gz for pgsql-sql@postgresql.org; Thu, 21 Apr 2016 14:17:09 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 3C21C208E4 for ; Thu, 21 Apr 2016 10:17:00 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Thu, 21 Apr 2016 10:17:00 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=aklaver.com; h=cc :content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=mDxlCL8qHvZ9II/zTfYFK0BApjg=; b=dkQchE IpnqBliKfDBsV4cxz1V93F/XQ4PMVX0G9XIkByUh1Z1KuPl3zThtkaWnFJupcff1 J/1eGgoKoaNuGf0MmfGQr7cXzNpQPCjein6ketmuucFG+Mev24ErSLAq3cF36LK7 j3QZLrtMEkj53UJzBHYdfTQO7Sj5ENcOTEgiw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=mDxlCL8qHvZ9II/ zTfYFK0BApjg=; b=IhK/MyyIXAaitIz8qIb2UbuStybn44NfylgeyFDmZORkCDt P3He3fTDWpG7hjZS57O3AI2VXceaS2NLEAsBPPd0LM2s3aehSd5TjYCXjnuuSNed sVAiIYx+SnNef5b8Z5BZ9L+HAi17PLkq3Hh+5S6EVroVm07o+3rxNyXKnMlY= X-Sasl-enc: m3hxj2ze8D1NMbeDurRI4sJwksfnrdtBWr3jwVqvEm2T 1461248219 Received: from [192.168.1.2] (174-24-160-10.tukw.qwest.net [174.24.160.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 3706CC0001E; Thu, 21 Apr 2016 10:16:59 -0400 (EDT) Subject: Re: Re: PostgreSQL:ALTER TABLE command hangs forever when DB partitioning is enabled. To: "Venkatesan, Sekhar" , "pgsql-sql@postgresql.org" References: Cc: "Choudhuri, Saurav" , "Rao, Raghavendra" From: Adrian Klaver Message-ID: <5718E0DA.7050703@aklaver.com> Date: Thu, 21 Apr 2016 07:16:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org On 04/21/2016 03:23 AM, Venkatesan, Sekhar wrote: > For DROP_INDEX case, adding the lock_timeout setting to few seconds > helps in clearing the DB locks and the drop index operation to complete. > > For ALTER table hang issue, none of the DB timeout settings are helping. > > Need your assistance to identify if there is any known issue when data > partitioning is enabled in PostgreSQL DB. You have shown the error, but it would be helpful to know what the setup is: What are the tables involved in the partitioning scheme? How is the partitioning been done? How are the statements being sent to server? In particular I am seeing a BEGIN on the DDL statements, is that coming from you or the client software? > > Thanks, > Sekhar -- Adrian Klaver adrian.klaver@aklaver.com -- Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql