From: | "Igal (at) Lucee(dot)org" <igal(at)lucee(dot)org> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: DDL and DML in a transaction |
Date: | 2019-07-31 19:57:32 |
Message-ID: | 4c485a6f-9845-8d45-d902-b6d24f59856b@lucee.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thank you, David.
I should get more sleep...
Igal
On 7/31/2019 11:52 AM, David G. Johnston wrote:
> On Wed, Jul 31, 2019 at 11:38 AM Igal @ Lucee.org <igal(at)lucee(dot)org
> <mailto:igal(at)lucee(dot)org>> wrote:
>
> alter table some_table
> rename column amount_num to amount_text;
>
> alter table some_table
> drop column amount_num;
>
>
> You just renamed amount_num to amount_text so I'm not sure why you
> expect the drop to succeed.
>
> Would it have less locking than simply altering the column?
>
>
> I doubt anything will improve upon simply altering the column. You
> have to perform a full table rewrite in either case which is going to
> be the main resource consumer.
>
> David J.
From | Date | Subject | |
---|---|---|---|
Next Message | Peter J. Holzer | 2019-07-31 20:25:58 | Re: How do I create a Backup Operator account ? |
Previous Message | David G. Johnston | 2019-07-31 18:52:34 | Re: DDL and DML in a transaction |