Re: Found a bug

From: Richard Huxton <dev(at)archonet(dot)com>
To: Gurjeet Singh <singh(dot)gurjeet(at)gmail(dot)com>
Cc: PGSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Found a bug
Date: 2006-11-07 14:04:16
Message-ID: 45509260.8090807@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gurjeet Singh wrote:
> Hi All,
>
> Please refer the following session snippet. It seems that creating and
> dropping an index on a table, within a transaction, leaves the table marked
> as having an index. Although, I don't think it's a serious bug, since we
> always retrieve the list using RelationGetIndexList(), and that list turns
> out to be empty; but, if possible we should track it down.

Can't reproduce it here:

richardh=# create table t (a int);
CREATE TABLE
richardh=# begin;
BEGIN
richardh=# create index t_idx on t (a);
CREATE INDEX
richardh=# select relhasindex from pg_class where relname = 't';
relhasindex
-------------
t
(1 row)

richardh=# rollback;
ROLLBACK
richardh=# select relhasindex from pg_class where relname = 't';
relhasindex
-------------
f

PostgreSQL 8.1.3 on i586-pc-linux-gnu

--
Richard Huxton
Archonet Ltd

In response to

  • Found a bug at 2006-11-07 13:55:59 from Gurjeet Singh

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-11-07 14:50:49 Re: Found a bug
Previous Message Gurjeet Singh 2006-11-07 13:55:59 Found a bug