From: Ravi Krishna <sr_krishna@aol.com>
To: Sonam Sharma <sonams1209@gmail.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Index
Date: Fri, 25 Oct 2019 07:31:33 -0400
Message-ID: <22DDC49C-6FAD-4B45-AC05-464C263F7E98@aol.com> (raw)
In-Reply-To: <CAM-M3TmxL=8BC8EHwZw4W+5Ezp=9BtiFoBuHFpxq_yZzAhKV9A@mail.gmail.com>
References: <CAM-M3TmxL=8BC8EHwZw4W+5Ezp=9BtiFoBuHFpxq_yZzAhKV9A@mail.gmail.com>
>
> I have created indexes with certain set of columns. Now I want to remove one of the column and add new column. Can this done without dropping the index?
>
If you intent is to avoid taking that table offline while the index is being built, you can do this:
1. create index concurrently on the new set of columns
2. once (1) done drop old index
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: sr_krishna@aol.com, sonams1209@gmail.com
Subject: Re: Index
In-Reply-To: <22DDC49C-6FAD-4B45-AC05-464C263F7E98@aol.com>
References: <CAM-M3TmxL=8BC8EHwZw4W+5Ezp=9BtiFoBuHFpxq_yZzAhKV9A@mail.gmail.com> <22DDC49C-6FAD-4B45-AC05-464C263F7E98@aol.com>
* 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