From: Tom Lane <tgl@sss.pgh.pa.us>
To: Litao Wu <litaowu@yahoo.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: reindex and copy - deadlock?
Date: Tue, 22 Jun 2004 12:26:08 -0400
Message-ID: <18875.1087921568@sss.pgh.pa.us> (raw)
In-Reply-To: <20040622150042.77663.qmail@web13125.mail.yahoo.com>
References: <20040622150042.77663.qmail@web13125.mail.yahoo.com>
Litao Wu <litaowu@yahoo.com> writes:
> I have changed "reindex table my_table" to:
> psql ...
> -c "drop index my_index; create index my_index;"
> I do not know what caused this happen, and I
> am also confused. If create index my_index is killed
> by "-9", then my_index should not present in the
> database because it has been dropped before creating.
I believe that the above executes the two commands in a single
transaction. So if you kill it midway through the CREATE, everything
rolls back and the index is still there.
regards, tom lane
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-performance@postgresql.org
Cc: tgl@sss.pgh.pa.us, litaowu@yahoo.com
Subject: Re: reindex and copy - deadlock?
In-Reply-To: <18875.1087921568@sss.pgh.pa.us>
* 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