From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Devendra Yadav <devendra.857@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: ALTER TABLE ADD COLUMN takes forever
Date: Mon, 29 Mar 2021 19:14:42 +0200
Message-ID: <b987bc47cd88cfe24cc01cddaecdb4bca57a0bfb.camel@cybertec.at> (raw)
In-Reply-To: <CAE+tJY8xRe_PoYbBveOMRnm17wbtjCMMS8rdJfCdKjztymHbYQ@mail.gmail.com>
References: <CAE+tJY8xRe_PoYbBveOMRnm17wbtjCMMS8rdJfCdKjztymHbYQ@mail.gmail.com>
On Mon, 2021-03-29 at 22:38 +0530, Devendra Yadav wrote:
> I am running a query on a table - ALTER TABLE mytable ADD COLUMN deposited DOUBLE PRECISION DEFAULT 0.0;
>
> this query just runs forever.
Then either you are using a PostgreSQL version older than v11, or there
is an open transaction that used the table and blocks you.
Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com
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: pgsql-admin@postgresql.org
Cc: laurenz.albe@cybertec.at, devendra.857@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: ALTER TABLE ADD COLUMN takes forever
In-Reply-To: <b987bc47cd88cfe24cc01cddaecdb4bca57a0bfb.camel@cybertec.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox