add primary key doesn't block? - Mailing list pgsql-bugs

From Jaime Casanova
Subject add primary key doesn't block?
Date
Msg-id 3073cc9b1001210938x5df093c8o10b3ec3057be4ae2@mail.gmail.com
Whole thread Raw
Responses Re: add primary key doesn't block?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: add primary key doesn't block?  (Craig Ringer <craig@postnewspapers.com.au>)
List pgsql-bugs
Hi,

I'm testing the migration procedure for a client, we want to migrate
from 8.3.6 to 8.4

When we perform a test migration of the data we found some errors on
the logs, one of them is this one:

"""
mic=3D# ALTER TABLE tcom_invitacion ADD primary key (id_invitacion);
NOTICE:  ALTER TABLE / ADD PRIMARY KEY will create implicit index
"tcom_invitacion_pkey" for table "tcom_invitacion"
ERROR:  concurrent insert in progress
"""

actually, no indexes were created on this table...
and when i tried to add the PK manually after migration i get this
same error (not always, it seems this time the index is being created
but this time i did it inside a transaction)...

doesn't the index creation of the index block the table so, that
message should not appear?

--=20
Atentamente,
Jaime Casanova
Soporte y capacitaci=C3=B3n de PostgreSQL
Asesor=C3=ADa y desarrollo de sistemas
Guayaquil - Ecuador
Cel. +59387171157

pgsql-bugs by date:

Previous
From: "Milen A. Radev"
Date:
Subject: Re: BUG #5290: Simple loop with insert into and check to avoid duplicate values fails
Next
From: Tom Lane
Date:
Subject: Re: add primary key doesn't block?