Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfT7R-0005u4-Aw for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Nov 2020 19:27:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfT7P-00067K-D4 for pgsql-bugs@arkaria.postgresql.org; Wed, 18 Nov 2020 19:27:51 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfT7P-00067C-6x for pgsql-bugs@lists.postgresql.org; Wed, 18 Nov 2020 19:27:51 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfT7M-00044t-KJ for pgsql-bugs@lists.postgresql.org; Wed, 18 Nov 2020 19:27:50 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 0B0FBCB5; Wed, 18 Nov 2020 14:27:45 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Wed, 18 Nov 2020 14:27:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=i2UNoR9ongQJo2SeH8MkZZ5cBux ZQ1CXxSzkP8bdtog=; b=UCORXZQA2o4IUkM17b95ZGcHnIx5BEEGXGEXfJrm1uL DYLFzked5gmKS5yt859FLQEIsBSe1r8yskinl1mvW2W1lgdEkrPpUc32RimBjQ0j ENDqTWrCpC9aFbQZA4IFfFIxGBWm4O1qJ5/ChY5XKg744LLUaaVkS8YRo/4V4y87 uaJGQjMugwQ1PfbLO97anop1Tr7h+KR76n6Lz2mTfGobUbbvMX/7fLQfHGbDuA3C SWmRHEJZXL9I3gKY37NU+7+oAC4KNlHUNGu23Rpc2WtsNywYXJfznMDawFtJJkPf RO7ALACadidWpKlSmFe4Wc64d1FgRbz0xYeQURD0TUw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=i2UNoR 9ongQJo2SeH8MkZZ5cBuxZQ1CXxSzkP8bdtog=; b=Gwqn8G4WX7JCA37Dh4QQ1M Syhw+d82K0fn3M4CO9EH17V4eu80PM2mkuZxKvtpbJ6A1Gy4UtEreHceIRm7TA+w rjtRw6X6uENUxH/0bqid/ZqNc+Rz0PCocPjfbnFpc+4Ka/WVSFeAXtkoxhzWAzj2 XXnNu8+VWeDw0r453uaeVRpp/aDx6GcryhQ1TN1FD4dBlg7M1Msvb7zcYLWcvoLO Md7Tqw06q1pBrqv2+iL4RMqOsDQOuXjih/wVbfPI8OY9NzHLhXWjWInpD1zw5EYx SdgZl4b8CeFPiQnz+656kaKkpp0ySE5tp8dJDpZxbQon2RsdxyGWheWLwbjbQ3Og == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudefhedguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughr vghsucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrf grthhtvghrnhepudekhfekleeugeevteehleffffejgeelueduleeffeeutdelffeujeff hfeuffdunecukfhppeeijedrudeitddrvddujedrvdehtdenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgvshesrghnrghrrgiivghl rdguvg X-ME-Proxy: Received: from intern.anarazel.de (c-67-160-217-250.hsd1.ca.comcast.net [67.160.217.250]) by mail.messagingengine.com (Postfix) with ESMTPA id 6AB2F3064AB4; Wed, 18 Nov 2020 14:27:44 -0500 (EST) Date: Wed, 18 Nov 2020 11:27:43 -0800 From: Andres Freund To: Magnus Hagander Cc: Fujii Masao , skoposov@ed.ac.uk, PostgreSQL mailing lists Subject: Re: BUG #16722: PG hanging on COPY when table has close to 2^32 toasts in the table. Message-ID: <20201118192743.kr43onoxci5gexjx@alap3.anarazel.de> References: <16722-93043fb459a41073@postgresql.org> <95bfb4b5-2e0e-8ab7-12cf-03fae3367c52@oss.nttdata.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2020-11-18 11:57:05 +0100, Magnus Hagander wrote: > This definitely sounds like something that's worth putting out as a > wait event. Even before you start traversing millions of OIDs it might > gradually start to show up, and being able to monitor that would > definitely be useful. I don't think this is likely to work well as a wait event. All the index traversals etc will do IO, acquire locks, etc, which will overwrite the wait event and reset it to nothing once done. Greetings, Andres Freund