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 1nUaqz-0001gm-I2 for pgsql-sql@arkaria.postgresql.org; Wed, 16 Mar 2022 21:06:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nUaqy-0005om-Cj for pgsql-sql@arkaria.postgresql.org; Wed, 16 Mar 2022 21:06:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUaqy-0005oX-41 for pgsql-sql@lists.postgresql.org; Wed, 16 Mar 2022 21:06:44 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nUaqr-0001p7-2n for pgsql-sql@lists.postgresql.org; Wed, 16 Mar 2022 21:06:43 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 22GL6Ymh677230; Wed, 16 Mar 2022 17:06:34 -0400 From: Tom Lane To: Shaozhong SHI cc: pgsql-sql Subject: Re: How to explicitly state unlock in sql? In-reply-to: References: Comments: In-reply-to Shaozhong SHI message dated "Wed, 16 Mar 2022 20:56:47 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <677228.1647464794.1@sss.pgh.pa.us> Date: Wed, 16 Mar 2022 17:06:34 -0400 Message-ID: <677229.1647464794@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Shaozhong SHI writes: > Locked tables stop progress. > How to explicitly preventing locking? You are really wasting everybody's time, including yours, with these detail-free questions. The short answer to the question as stated is "you can't". There is probably some more-useful answer that could be given, but we'd need to understand a lot more about what your actual problem is. There is some advice about how to ask useful questions at https://wiki.postgresql.org/wiki/Guide_to_reporting_problems regards, tom lane