public inbox for [email protected]  
help / color / mirror / Atom feed
Working around insert into a_table from select things from a_function
3+ messages / 3 participants
[nested] [flat]

* Working around insert into a_table from select things from a_function
@ 2023-07-04 16:58  Shaozhong SHI <[email protected]>
  0 siblings, 2 replies; 3+ messages in thread

From: Shaozhong SHI @ 2023-07-04 16:58 UTC (permalink / raw)
  To: pgsql-sql <[email protected]>

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


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Aw: Working around insert into a_table from select things from a_function
@ 2023-07-04 17:09  Karsten Hilbert <[email protected]>
  parent: Shaozhong SHI <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Karsten Hilbert @ 2023-07-04 17:09 UTC (permalink / raw)
  To: ; +Cc: pgsql-sql <[email protected]>

Von: "Shaozhong SHI" <[email protected]>
>
>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?

Sure. You yourself. By providing relevant detail.

It seems rather unthoughtful to have people second-guess your environment.

Best,
Karsten





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Working around insert into a_table from select things from a_function
@ 2023-07-04 23:28  Rob Sargent <[email protected]>
  parent: Shaozhong SHI <[email protected]>
  1 sibling, 0 replies; 3+ messages in thread

From: Rob Sargent @ 2023-07-04 23:28 UTC (permalink / raw)
  To: [email protected]

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


^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2023-07-04 23:28 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2023-07-04 16:58 Working around insert into a_table from select things from a_function Shaozhong SHI <[email protected]>
2023-07-04 17:09 ` Aw: Working around insert into a_table from select things from a_function Karsten Hilbert <[email protected]>
2023-07-04 23:28 ` Rob Sargent <[email protected]>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox