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 1qGhCu-0003uf-3a for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 14:40: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 1qGhCs-00055c-SO for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 14:40:42 +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 1qGhCr-0004gv-SD for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 14:40:42 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qGhCo-0020Ln-OM for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 14:40:40 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-5635a80f367so710094eaf.0 for ; Tue, 04 Jul 2023 07:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unochapeco.edu.br; s=google; t=1688481637; x=1691073637; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=zyO8SI9jVXtkcqRyZrFCF0D7deS7ne2ms7TFl9yx1n4=; b=Q80Pwi92HYu5/eC+ASv35yvMQ+s7C0jbbZJuiFuMGGrkog2PnN5laW68+yg7fLCy7x pdL9wtNbFd/z18bthbrsJgOT2PxLzuhp+D27sjQLPzrcCmiMUvt6/2d2bRV2LCfgmOLK fgLOsfn5dNBWY0nb7qOnqaTXBVOXTj9EhH7UoBjMVWoND3LlHMIeQiGP1qmOU7usxhBd j4up3Uw8M+xHbS5ZOkmwDzrag6OHOsmQz8YZjNDzXNbe21XFXpafgSJJJHe9aDeLWF7n 8ZEf/9v3mZO5Q1u4Kgt06n/wAsqERjpTNmAeGmOUivIkIgKHRXoZ/f2mDeGgU/1Zpfbf IMMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688481637; x=1691073637; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zyO8SI9jVXtkcqRyZrFCF0D7deS7ne2ms7TFl9yx1n4=; b=Eg/QTFlWZjjbtI3GZIX+ynRna65RWejJueyK+hkKS9ZGUygDV9OSHmBHeMvrvMCG8M 4VsMaZj6edbJN9CTd7qiEP/y3F+fdvIliMNOuYuZ/68n9s8XHR2PwMYIh6wqQMhziwAv KMHpQ3pL/ma0KKBiPBPgL7UZa1WHcMPT0wiUnzF1c04HVY4q1jX/lrpwsqKdpDbjsKQB I+ftLiT6osHIKGW9xsa3VWO/BvE/zrzzsnaxAMRswJMDPRZEAeGpqhy9TQA2EmhkEByr e+xQJWoEbB8AD1IlLsZ+cCaDcyjSa1N8QtGylSKbsFNOzKi9XtAdly2EiIotClzSVzdT FdUA== X-Gm-Message-State: AC+VfDzZxIniWIzbprhIdCBKbUM8si/ksuo+/tn5kdHjpBDUdgofCNL0 dZlNkinFn5DbO9bKyOghiMDDTZdS8a9pY1ICPX0= X-Google-Smtp-Source: ACHHUZ7ddrTkeF0O+6Y1IaAVPQ05PQU9pCu4wAtxP4NCCIt1BtD/3cuw4o1VTlFKgsf8p7xd7PiqXg== X-Received: by 2002:a4a:e9b5:0:b0:565:d9aa:9f62 with SMTP id t21-20020a4ae9b5000000b00565d9aa9f62mr7863424ood.1.1688481637356; Tue, 04 Jul 2023 07:40:37 -0700 (PDT) Received: from smtpclient.apple ([189.39.32.185]) by smtp.gmail.com with ESMTPSA id t12-20020a4ad0ac000000b00565ef8db270sm3474990oor.9.2023.07.04.07.40.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Jul 2023 07:40:37 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: How come column is locked? From: William Alves Da Silva In-Reply-To: Date: Tue, 4 Jul 2023 11:40:23 -0300 Cc: pgsql-sql Content-Transfer-Encoding: quoted-printable Message-Id: <0883BDDF-C31D-405E-91A3-DAD456A89773@unochapeco.edu.br> References: To: Shaozhong SHI X-Mailer: Apple Mail (2.3731.500.231) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, In PostgreSQL, DDL statements will get lock, if you don=E2=80=99t commit = the change, all futures queries will be put on hold. Reggards, WIlliam Alves > On 4 Jul 2023, at 11:34, Shaozhong SHI wrote: >=20 > Hi,=20 >=20 > I used >=20 > create table if not exists waternetwork1.walknetwortt3 (fid = integer[]); >=20 > in do statement. >=20 > When I use > insert into waternetwork1.walknetwortt3 select fid from a function >=20 > it failed. >=20 > The column is locked. >=20 > Regards, >=20 > David