public inbox for [email protected]  
help / color / mirror / Atom feed
From: William Alves Da Silva <[email protected]>
To: Shaozhong SHI <[email protected]>
Cc: pgsql-sql <[email protected]>
Subject: Re: How come column is locked?
Date: Tue, 4 Jul 2023 11:40:23 -0300
Message-ID: <[email protected]> (raw)
In-Reply-To: <CA+i5JwaZ5T1VSQ1GNPmx4DgYJcZpFwpfoAd0d+pG0XZgRuVi9w@mail.gmail.com>
References: <CA+i5JwaZ5T1VSQ1GNPmx4DgYJcZpFwpfoAd0d+pG0XZgRuVi9w@mail.gmail.com>

Hello,

In PostgreSQL, DDL statements will get lock, if you don’t commit the change, all futures queries will be put on hold.

Reggards,
WIlliam Alves

> On 4 Jul 2023, at 11:34, Shaozhong SHI <[email protected]> wrote:
> 
> Hi, 
> 
> 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.
> 
> The column is locked.
> 
> Regards,
> 
> David






view thread (6+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: How come column is locked?
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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