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 1qGpRy-0004xN-CB for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 23:28:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qGpRx-0007mZ-6N for pgsql-sql@arkaria.postgresql.org; Tue, 04 Jul 2023 23:28:49 +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 1qGpRw-0007mP-U8 for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 23:28:48 +0000 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qGpRu-002Em2-J8 for pgsql-sql@lists.postgresql.org; Tue, 04 Jul 2023 23:28:48 +0000 Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-39ed11d6a50so4281527b6e.2 for ; Tue, 04 Jul 2023 16:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688513324; x=1691105324; 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=K11XcFV3EWKTB53666v1/EVdryX7juWRmiYVM5YApgA=; b=eiFEcc9Des7BfBJVyzkfj/lYCU13vqEXnrmRz1boColyi+qE96icHNp66B0OH+mIdK hI+oJ9MkTr9luKAykH3fIJC/so88GbBPepLa28OalxizIg9OBYHlQ79htFtjcFABZQXy 4bBlTQ0MAcc+oGeop1yHah/kszUG4NvVUEgmk2AyWCAOcY+C0SzTV3QgYS1hyeJx9n3F KLAwCh0ZGpdzeyT314vGPuDc6OgxOMO4U60mbtCdNTGy4BYSEI3LUod+HpX6zvPcMRh5 Werp6OFqbzSSf2Vc/uD6w8Q6sEc06fTJU/LNmnsu3rZxNBumm0E9UJ8k2UM166KR++NN /Wcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688513324; x=1691105324; 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=K11XcFV3EWKTB53666v1/EVdryX7juWRmiYVM5YApgA=; b=DgQypOQnDnmVZizXYmxe354b85txZjfWQagaXZubgW4njEDJaZATWY5k2Bdxa+iwnI hxCoDw04D3QWemxsc5dJ31cRZd087ko+1Op0vSrtsGho53QKvv1Ge62nGLFXo6teH1Mx WuFSwqcHt18ByddPxkwxQ1KlLgCmH8uBlFweh2z0giqycmh/2gV1HLTP0dkNurxztcJ5 48QNTOKZKmVm4GtwtSi20kVdlY7mK3VbA7/lQM76FMNZhWjiPtyHGrQK8It202IEZrys JUgF/y2VnrmGqlGmvhoAkwqAsXvdIF7ODiRFHJApbVpn0SYjK0LB2bsX3zC0EyRqbavl H9OQ== X-Gm-Message-State: AC+VfDzXF0Sh/CFiCaTMys1511x3VfWMQLpPbPa0hoq0b9xhSkXwWiBr LkpBK6OdYvO/sZQrvdOhV7a5XxzDIbxwTw== X-Google-Smtp-Source: ACHHUZ6FX3F3MOD3gtBjsPzC8VNVbubzZgR8a+jVnkA2q8n6jOSD0C8yUXAn8ZdK2NroVGRxv86ngA== X-Received: by 2002:aca:d19:0:b0:396:4977:e148 with SMTP id 25-20020aca0d19000000b003964977e148mr13473017oin.9.1688513324014; Tue, 04 Jul 2023 16:28:44 -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 n189-20020a6327c6000000b0055387ffef10sm17018461pgn.24.2023.07.04.16.28.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 Jul 2023 16:28:43 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------btwT0lDHO6yvmPMKBtAKl700" Message-ID: Date: Tue, 4 Jul 2023 17:28:42 -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: Working around insert into a_table from select things from a_function Content-Language: en-CA To: pgsql-sql@lists.postgresql.org References: From: Rob Sargent In-Reply-To: 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. --------------btwT0lDHO6yvmPMKBtAKl700 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 7/4/23 10:58, Shaozhong SHI wrote: > I can manually select columns from a_function. > > But, when in a loop in a do statement, it does not work. > > These columns are of array type. > > Can anyone shed light on this? > > Regards, > > David show your select statement and full do loop --------------btwT0lDHO6yvmPMKBtAKl700 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit
On 7/4/23 10:58, Shaozhong SHI wrote:
I can manually select columns from a_function.

But, when in a loop in a do statement, it does not work.

These columns are of array type.

Can anyone shed light on this?

Regards,

David
show your select statement and full do loop

--------------btwT0lDHO6yvmPMKBtAKl700--