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 1qGhJr-0004D6-Hr for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 14:47:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qGhJq-0001IC-9i for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 14:47:54 +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 1qGhJq-0001I2-1E for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 14:47:54 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qGhJm-0020QM-2c for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 14:47:51 +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 364Ell4v579107; Tue, 4 Jul 2023 10:47:47 -0400 From: Tom Lane To: Shaozhong SHI cc: pgsql-sql Subject: Re: How come column is locked? In-reply-to: References: Comments: In-reply-to Shaozhong SHI message dated "Tue, 04 Jul 2023 15:34:40 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <579105.1688482067.1@sss.pgh.pa.us> Date: Tue, 04 Jul 2023 10:47:47 -0400 Message-ID: <579106.1688482067@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Shaozhong SHI writes: > I used > create table if not exists waternetwork1.walknetwortt3 (fid integer[]); > in do statement. Perhaps the table already existed, with some other column list? > When I use > insert into waternetwork1.walknetwortt3 select fid from a function > it failed. "It failed" is totally inadequate as a description of the problem. Did you read the error message? What does it say, exactly? regards, tom lane