From: | Alban Hertroys <haramrae(at)gmail(dot)com> |
---|---|
To: | Phoenix Kiula <phoenix(dot)kiula(at)gmail(dot)com> |
Cc: | PG-General Mailing List <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Weird behavior: deleted row still in index? |
Date: | 2011-12-04 11:51:00 |
Message-ID: | 55695952-4F34-4952-A39D-263DD5FD8C2B@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 4 Dec 2011, at 12:32, Phoenix Kiula wrote:
> mydb=# delete from stores where id = '20xrrs3';
> DELETE 0
> Time: 0.759 ms
It says it didn't delete any rows.
Since you get a duplicate key violation on inserting a row to that table, there's obviously a row with that id there.
Perhaps there's a DELETE trigger or rule on this table that does something unexpected?
It is indeed a possibility that this is a corrupted index, but that is not something that happens unless more serious matters have been (or are) at hand, like hardware failures.
Alban Hertroys
--
The scale of a problem often equals the size of an ego.
From | Date | Subject | |
---|---|---|---|
Next Message | Szymon Guz | 2011-12-04 11:55:05 | Re: Weird behavior: deleted row still in index? |
Previous Message | Phoenix Kiula | 2011-12-04 11:41:39 | Re: Foreign keys question (performance) |