Re: How come column is locked?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Shaozhong SHI <shishaozhong(at)gmail(dot)com>
Cc: pgsql-sql <pgsql-sql(at)lists(dot)postgresql(dot)org>
Subject: Re: How come column is locked?
Date: 2023-07-04 14:47:47
Message-ID: 579106.1688482067@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Shaozhong SHI <shishaozhong(at)gmail(dot)com> 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Shaozhong SHI 2023-07-04 16:58:58 Working around insert into a_table from select things from a_function
Previous Message Thomas Kellerer 2023-07-04 14:43:15 Re: How come column is locked?