Re: Error with table

From: "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com>
To: Jon Earle <je_pgsql(at)kronos(dot)honk(dot)org>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Error with table
Date: 2003-12-12 20:44:05
Message-ID: Pine.LNX.4.33.0312121342550.18667-100000@css120.ihs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

such errors are almost always a result of on disk corruption, i.e. bad
blocks or bad memory, and every so often a little known bug or two that
pgsql has had. There are no known data loss bugs in 7.3.4 I know of,
except with hash indexes MAYBE in certain full moon circumstances.

You might wanna check your hardware (disks and memory) to make sure it
doesn't get little errors every now and then.

On Fri, 12 Dec 2003, Jon Earle wrote:

> Hi,
>
> Had a problem with PsotgreSQL v7.3.4. I had a table that, after a while,
> decided to give me a fit:
>
> db=> insert into blocklist values ('2', 'km4n7s28ehiFizeYupm93Q',
> '1','2','3');
> ERROR: Index idx_blk_id_addr is not a btree
>
> When I deleted and recreated the table, it worked fine. Any ideas?
>
> Table was initially defined thus:
>
> db=> \d blocklist
> Table "public.blocklist"
> Column | Type | Modifiers
> ------------+-------------------+-------------
> id | integer | not null
> id_addr | character varying |
> wl | integer | default '0'
> bl | integer | default '0'
> bl_gen | integer | default '0'
> Indexes: idx_blk_usr_adr unique btree (id, id_addr),
> idx_blk_id btree (id),
> idx_blk_id_addr btree (id_addr)
> Foreign Key constraints: $1 FOREIGN KEY (id) REFERENCES users(id) MATCH
> FULL ON UPDATE CASCADE ON DELETE CASCADE,
> $2 FOREIGN KEY (id_addr) REFERENCES
> addresses(id_addr) MATCH FULL ON UPDATE CASCADE ON DELETE CASCADE
>
> After I recreated it, it appears the same:
>
> db=> \d blocklist
> Table "public.blocklist"
> Column | Type | Modifiers
> ------------+-------------------+-------------
> id | integer | not null
> id_addr | character varying |
> wl | integer | default '0'
> bl | integer | default '0'
> bl_gen | integer | default '0'
> Indexes: idx_blk_usr_adr unique btree (id, id_addr),
> idx_blk_id btree (id),
> idx_blk_id_addr btree (id_addr)
> Foreign Key constraints: $1 FOREIGN KEY (id) REFERENCES users(id) MATCH
> FULL ON UPDATE CASCADE ON DELETE CASCADE,
> $2 FOREIGN KEY (id_addr) REFERENCES
> addresses(id_addr) MATCH FULL ON UPDATE CASCADE ON DELETE CASCADE
>
> This table's definition has not changed, but there were a few scripted
> operations to update other tables in the db. Those operations completed
> successfully.
>
> Cheers!
> Jon
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joshua D. Drake 2003-12-12 20:47:34 Re: Perl "with-perl" configuration option
Previous Message scott.marlowe 2003-12-12 20:40:07 Re: add column sillyness