Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eu1uW-0002wU-P6 for pgsql-general@arkaria.postgresql.org; Thu, 08 Mar 2018 20:13:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eu1uV-0000s4-PQ for pgsql-general@arkaria.postgresql.org; Thu, 08 Mar 2018 20:13:07 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eu1uV-0000rr-E4 for pgsql-general@lists.postgresql.org; Thu, 08 Mar 2018 20:13:07 +0000 Received: from mail-it0-x236.google.com ([2607:f8b0:4001:c0b::236]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eu1uS-0006p8-R5 for pgsql-general@postgresql.org; Thu, 08 Mar 2018 20:13:06 +0000 Received: by mail-it0-x236.google.com with SMTP id v194-v6so78607itb.0 for ; Thu, 08 Mar 2018 12:13:04 -0800 (PST) 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=5uGRQurAkBG2FJpesSUrX6co6PKMv6Kev3W1eAQAdjM=; b=MAwGiI6ZXMvACyDesEQy8GezBsBEQPNz/4wsXngSlplyhBMXQyM13W2id7dqtA/7Pa vkWuChvbx3EzPJeIcvuz6LOjSBcw/NfeA3IC2b3YAy+Z9lslIwpEz2vLiPctPjjdIcP6 OgX/XX8CtAp6Sa6uFGWtzcb9afOAp2oe1mADtGMzJh04Ha4xP3SAHOo0i/weroojtNjY TAJYmjiC7w2iAlUegqwc25gRmDGz4Q02y6IDsw9uH+o/4fBqOvwBoWElcAAp82/5c3M4 jKB7RsoJgE2X3ZL/nw/BEw/RCmjEF/04NSQQPlQJxAb6OFuvCk9uOpi5fCuZ1gk0m83i i5pg== 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=5uGRQurAkBG2FJpesSUrX6co6PKMv6Kev3W1eAQAdjM=; b=fuoiFW8IeTST6zL6vylVWzCIj1AJyojoIwqPTBJBUMSgYRlltxueG0MlKhacYWClY6 brFujscpiKeqM2UtQ82A8PoQD25jPa9HLxECdgfEdU9DMP5GKbIYPBcpZA+Tmqdn4MBR 6t4RdJhRRDOBT/7DeorFczx3JQ/os3xOwinSZZNS7Una+T+JPOgCHGUjTVOuZEoIJ9MD OCWSU2xJKgI/ESNI47xP1FdpGWfbxZofKWuE5bK2Qz8V1Ov66xxqfbBwwrx59nxQa0MY M3u8GrnwqRUaylaZpXrhjoxKobtkKlYrPxMKmKWAhht9ibetc9CRAbS5ZTR9/kjCZQGo 3Ozg== X-Gm-Message-State: AElRT7E61iinuvMvhUUnRAAPL9TFFfnMSxUj3ECKRSRY7PxLKlpsphkL 4alzVi5zs6gV17EqeDZH4Ad7mtPQp8A= X-Google-Smtp-Source: AG47ELt+AO2+4aXfMPdFpL0oL1PNJdE7VpprLSSjbbXzZvDB5hErfvJp/qFsLBuJg1dPqU4CetjQEw== X-Received: by 2002:a24:2b89:: with SMTP id h131-v6mr80490ita.97.1520539983093; Thu, 08 Mar 2018 12:13:03 -0800 (PST) Received: from pryzbyj (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id o31sm14873063ioi.49.2018.03.08.12.13.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 12:13:02 -0800 (PST) Received: by pryzbyj (Postfix, from userid 1000) id 83C6C801040; Thu, 8 Mar 2018 14:13:01 -0600 (CST) Date: Thu, 8 Mar 2018 14:13:01 -0600 From: Justin Pryzby To: Tom Lane Cc: pgsql-general@postgresql.org Subject: Re: circular wait not triggering deadlock ? Message-ID: <20180308201301.GN24441@telsasoft.com> References: <20180308182629.GJ24441@telsasoft.com> <21765.1520535426@sss.pgh.pa.us> <20180308194559.GK24441@telsasoft.com> <25504.1520539536@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <25504.1520539536@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Mar 08, 2018 at 03:05:36PM -0500, Tom Lane wrote: > Justin Pryzby writes: > > On Thu, Mar 08, 2018 at 01:57:06PM -0500, Tom Lane wrote: > >> PID 20488 is evidently waiting for PID 6471 to finish its transaction. > >> What's that one doing? > > > Um, I thought I had kept track of all two pids but looks not.. > > query | SELECT pg_export_snapshot(); > > pg_export_snapshot doesn't block for other transactions, though. > Further down, you have output that confirms that: > > > 6471 | idle in transaction | psql | SELECT pg_export_snapshot(); > > That SELECT is the most recently completed command, not the current one. > So now the question is what the connected application is waiting for > before committing. I believe it does an idle loop around sleep(1), until all the pg_dump --snapshot children are done. Justin