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 1qGpRD-0004vT-26 for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 23:28:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qGpRA-0003AQ-Fa for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 23:28:00 +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 1qGpRA-0003AH-4t for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 23:28:00 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qGpR7-002EkT-Iy for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 23:27:59 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-1b0605d4d11so5238319fac.1 for ; Tue, 04 Jul 2023 16:27:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688513274; x=1691105274; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=YqD8FRAkv9RrUYbvGxCZJqPE1yAE4DPbZmOBb0O2ADw=; b=ITj+GBvxWvpuZusOWBEMwh7JbWxxVegzyfP562Ti2kCnN8V6ZOsvIlW6lETFcDwIIt 7QwWhv8xkREQspD7uqF8SWIyP9KbBB+zGszu2E0RwlOG+LeI7e/9TqPkn6m2pM9NJz5w D76DHSmCDlgc1EtWtSzSGzgPBCS/a7K/GRfbedUtf+7Sqzg3N4uxtrKS+hXrLR/3oC7Z NCLPe8YQCPk+2WGkRPRBrcvhsDN2lT6tbfT96AfsBAXatm6RyLpDzKwSHwTU8OyHPpxh KIDHA6FFDB+K0o6UaFp2cBbIvsLwHygOW6fO5YX+k1GsBX5XEhFVIWyxoOaekPXHdVwN mWIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688513274; x=1691105274; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=YqD8FRAkv9RrUYbvGxCZJqPE1yAE4DPbZmOBb0O2ADw=; b=V9961uwom+CAl8V2BgFs8vkuyeoPfLBoj1BdMcvkYNDMRE30whmWvHtLTfHF4NhApS cKAfgzRTxqBYk9GOQKLR+eZjxRymihiYw7KaKcCmT9LavBpmZtKKdf/sOs6wDiGNyV87 oXS48vHYGu8ZkM21JX5YwwBOFvuf5ErNwDP0nYYG6bzCseRSkkyZPe7zEm9LWhaqxbqa 6DaXktwScWRS+8fZq4ALfr/ww0efp31AEe7jw0GnAAIZ2iFM1qY/pKAhPdmqOhrPZX3C Q5DnpFB44MxpIyg7ziZSW49cPr0c0sZ1D+oHky8G5X6PP4a0Sq3s2/4fn2MyZDT4Afnw eHiw== X-Gm-Message-State: ABy/qLbZ4YYLe/Fe+arvUyRxoIfn1mExejj6oNIJJCHXOozAqPqm8oVa cS40qsTe9JLDMxinLDqH+Wu1MKtZP3ZSTQ== X-Google-Smtp-Source: APBJJlFOWmoX8Zmg4V3N0QVRk3ap9O+fM89/lstzRo2KADUSGlAlToE31BCgEiBRHNFSkI4RLdJGUQ== X-Received: by 2002:a05:6871:4795:b0:1b3:8285:153e with SMTP id qa21-20020a056871479500b001b38285153emr8912095oab.44.1688513274247; Tue, 04 Jul 2023 16:27:54 -0700 (PDT) Received: from ?IPV6:2601:681:5a00:f790:29e1:9e05:14b:3915? ([2601:681:5a00:f790:29e1:9e05:14b:3915]) by smtp.gmail.com with ESMTPSA id 3-20020a17090a030300b00263dee538b1sm135528pje.25.2023.07.04.16.27.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 16:27:53 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------kEJ9NqxecIwGDPRlZMKiCtSp" Message-ID: <15c890f3-d5fb-c966-c248-0a5e8f03de62@gmail.com> Date: Tue, 4 Jul 2023 17:27:52 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: How come column is locked? Content-Language: en-CA To: pgsql-sql@lists.postgresql.org References: <079bd687-382f-13a0-e28a-a31fb58e32f7@gmx.net> <0d3f2872-9ee2-5560-3ee9-b0116154d8b5@gmx.net> From: Rob Sargent In-Reply-To: <0d3f2872-9ee2-5560-3ee9-b0116154d8b5@gmx.net> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------kEJ9NqxecIwGDPRlZMKiCtSp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/4/23 12:39, Thomas Kellerer wrote: > Shaozhong SHI schrieb am 04.07.2023 um 16:59: >> On Tue, 4 Jul 2023 at 15:43, Thomas Kellerer > > wrote: >> >>     Shaozhong SHI schrieb am 04.07.2023 um 16:34: >>      > I used >>      > >>      > create table if not exists waternetwork1.walknetwortt3 (fid >> integer[]); >>      > >>      > in do statement. >>      > >>      > When I use >>      > insert into waternetwork1.walknetwortt3 select fid from a >> function >>      > >>      > it failed. >> >>     What exactly is the error message you get? >> >> >>      > The column is locked. >> >>     There is no column level lock in Postgres. >> >>     The smallest unit that can be locked is a row. >> >> >> >> >> I see a pad lock on the column.  That is the only column. > > There is no such thing as a "padlock" in Postgres. > > > > GUI-speak for primary key, perhaps? --------------kEJ9NqxecIwGDPRlZMKiCtSp Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
On 7/4/23 12:39, Thomas Kellerer wrote:
Shaozhong SHI schrieb am 04.07.2023 um 16:59:
On Tue, 4 Jul 2023 at 15:43, Thomas Kellerer <shammat@gmx.net <mailto:shammat@gmx.net>> wrote:

    Shaozhong SHI schrieb am 04.07.2023 um 16:34:
     > I used
     >
     > create table if not exists waternetwork1.walknetwortt3 (fid integer[]);
     >
     > in do statement.
     >
     > When I use
     > insert into waternetwork1.walknetwortt3 select fid from a function
     >
     > it failed.

    What exactly is the error message you get?


     > The column is locked.

    There is no column level lock in Postgres.

    The smallest unit that can be locked is a row.




I see a pad lock on the column.  That is the only column.

There is no such thing as a "padlock" in Postgres.




GUI-speak for primary key, perhaps?
--------------kEJ9NqxecIwGDPRlZMKiCtSp--