pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedDROP INDEX causes errors
4+ messages / 2 participants
[nested] [flat]
* DROP INDEX causes errors
@ 2008-12-17 22:09 Michael Monnerie <michael.monnerie@is.it-management.at>
2008-12-18 10:23 ` Re: DROP INDEX causes errors Michael Monnerie <michael.monnerie@is.it-management.at>
0 siblings, 1 reply; 4+ messages in thread
From: Michael Monnerie @ 2008-12-17 22:09 UTC (permalink / raw)
To: pgsql-admin
# select version();
version
-------------------------------------------------------------------------------------------------------------------
PostgreSQL 8.1.11 on x86_64-unknown-linux-gnu, compiled by GCC gcc
(GCC) 4.1.2 20061115 (prerelease) (SUSE Linux)
Today I dropped an index:
DROP INDEX dbmail_messageblks_physmessage_idx ;
The table is now:
# \d dbmail_messageblks
Tabelle »public.dbmail_messageblks«
Spalte | Typ | Attribute
-----------------+----------+------------------------------------------------------------------
messageblk_idnr | bigint | not null default
nextval('dbmail_messageblk_idnr_seq'::regclass)
physmessage_id | bigint |
messageblk | bytea | not null
blocksize | bigint | not null default (0)::bigint
is_header | smallint | not null default (0)::smallint
Indexe:
»dbmail_messageblks_pkey« PRIMARY KEY, btree (messageblk_idnr)
»dbmail_messageblks_physmessage_is_header_idx« btree
(physmessage_id, is_header) CLUSTER
Fremdschlüssel-Constraints:
»dbmail_messageblks_physmessage_id_fkey« FOREIGN KEY
(physmessage_id) REFERENCES dbmail_physmessage(id) ON UPDATE CASCADE ON
DELETE CASCADE
And immediately after the drop I got this:
DELETE:ERROR: could not open relation with OID 102021
DELETE:CONTEXT: SQL statement "DELETE FROM ONLY
"public"."dbmail_messageblks" WHERE "physmessage_id" = $1"
for each and every delete of a row in that table. After a
REINDEX TABLE dbmail_messageblks;
everything seems to work.
Is that a bug or did I do something bad?
mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0660 / 415 65 31 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net Key-ID: 1C1209B4
Attachments:
signature.asc (application/pgp-signature, 196B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DROP INDEX causes errors
2008-12-17 22:09 DROP INDEX causes errors Michael Monnerie <michael.monnerie@is.it-management.at>
@ 2008-12-18 10:23 ` Michael Monnerie <michael.monnerie@is.it-management.at>
2008-12-18 12:59 ` Re: DROP INDEX causes errors Alvaro Herrera <alvherre@commandprompt.com>
0 siblings, 1 reply; 4+ messages in thread
From: Michael Monnerie @ 2008-12-18 10:23 UTC (permalink / raw)
To: pgsql-admin
On Mittwoch 17 Dezember 2008 Michael Monnerie wrote:
> for each and every delete of a row in that table. After a
> REINDEX TABLE dbmail_messageblks;
> everything seems to work.
I was wrong, still get this error:
Dec 18 10:55:33 db2.zmi.at postgres[2816]: [112-1] DELETE:ERROR: could
not open relation with OID 102021
Dec 18 10:55:33 db2.zmi.at postgres[2816]: [112-2] DELETE:CONTEXT: SQL
statement "DELETE FROM ONLY "public"."dbmail_messageblks"
how can I get rid of it? A vacuum and reindex table was already done,
still...
mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0660 / 415 65 31 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net Key-ID: 1C1209B4
Attachments:
signature.asc (application/pgp-signature, 196B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DROP INDEX causes errors
2008-12-17 22:09 DROP INDEX causes errors Michael Monnerie <michael.monnerie@is.it-management.at>
2008-12-18 10:23 ` Re: DROP INDEX causes errors Michael Monnerie <michael.monnerie@is.it-management.at>
@ 2008-12-18 12:59 ` Alvaro Herrera <alvherre@commandprompt.com>
2008-12-18 23:18 ` Re: DROP INDEX causes errors Michael Monnerie <michael.monnerie@is.it-management.at>
0 siblings, 1 reply; 4+ messages in thread
From: Alvaro Herrera @ 2008-12-18 12:59 UTC (permalink / raw)
To: Michael Monnerie <michael.monnerie@is.it-management.at>; +Cc: pgsql-admin
Michael Monnerie wrote:
> On Mittwoch 17 Dezember 2008 Michael Monnerie wrote:
> > for each and every delete of a row in that table. After a
> > REINDEX TABLE dbmail_messageblks;
> > everything seems to work.
>
> I was wrong, still get this error:
> Dec 18 10:55:33 db2.zmi.at postgres[2816]: [112-1] DELETE:ERROR: could
> not open relation with OID 102021
> Dec 18 10:55:33 db2.zmi.at postgres[2816]: [112-2] DELETE:CONTEXT: SQL
> statement "DELETE FROM ONLY "public"."dbmail_messageblks"
Does it persist if you close the connection and open a new one?
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: DROP INDEX causes errors
2008-12-17 22:09 DROP INDEX causes errors Michael Monnerie <michael.monnerie@is.it-management.at>
2008-12-18 10:23 ` Re: DROP INDEX causes errors Michael Monnerie <michael.monnerie@is.it-management.at>
2008-12-18 12:59 ` Re: DROP INDEX causes errors Alvaro Herrera <alvherre@commandprompt.com>
@ 2008-12-18 23:18 ` Michael Monnerie <michael.monnerie@is.it-management.at>
0 siblings, 0 replies; 4+ messages in thread
From: Michael Monnerie @ 2008-12-18 23:18 UTC (permalink / raw)
To: pgsql-admin
On Donnerstag 18 Dezember 2008 Alvaro Herrera wrote:
> Does it persist if you close the connection and open a new one?
You're great, that worked indeed. I was a bit nervous now ;-) Thanks!
mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0660 / 415 65 31 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net Key-ID: 1C1209B4
Attachments:
signature.asc (application/pgp-signature, 196B) download
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2008-12-18 23:18 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2008-12-17 22:09 DROP INDEX causes errors Michael Monnerie <michael.monnerie@is.it-management.at>
2008-12-18 10:23 ` Michael Monnerie <michael.monnerie@is.it-management.at>
2008-12-18 12:59 ` Alvaro Herrera <alvherre@commandprompt.com>
2008-12-18 23:18 ` Michael Monnerie <michael.monnerie@is.it-management.at>
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