Received: from www.flamingo.cz (root@fwd.cz [194.212.23.91]) by hub.org (8.9.3/8.9.1) with ESMTP id AAA00775 for ; Thu, 22 Apr 1999 00:01:53 -0400 (EDT) (envelope-from janousek@fonet.cz) Received: from router.fonet2.cz (ts3-3.bm.cesnet.cz [194.212.133.34]) by www.flamingo.cz (8.8.8/8.8.8) with ESMTP id GAA02207 for ; Thu, 22 Apr 1999 06:01:46 +0200 Received: from server (server.fonet2.cz [192.168.0.2]) by router.fonet2.cz (8.9.1/8.9.1) with SMTP id TAA01671 for ; Wed, 21 Apr 1999 19:42:37 GMT Message-ID: <000301be8c1d$a43f3aa0$0200a8c0@server.fonet2.cz> From: "Pavel PaJaSoft Janousek" To: "PgSQL Interfaces" Subject: Error in indexing? Date: Wed, 21 Apr 1999 19:37:33 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Hi all, by the work on one project, I see this situation: I have table, it has primary key.. psql automaticly create unique key for this column. - OK Now, I insert one row into this table... - OK Now, I delete this row from the table... - OK And now, I can insert row to this table with the same values as previous... - BAD:-( I got message from sqlca, that I cannot insert a duplicate key into a unique index... I thought, that inserting and deleting rows from database is transparent and automaticly created indexes are corectly updates by values in the table. Is very badly, that I must think that table XX has a unique index and after deleting some rows I must update a index... And now, when I have this situation, I try use vacuum, but I can't insert the same row again... I think one posible way... - delete neccessery rows, drop index and create new index... - but this is ...'-) Can somebody help me with this, I use ECPG distributed with PostgreSQl 6.4.2 - is this bad situation error for this release and will be fixed in version 6.5? I permanently monitoring situation by version 6.5, I think, that is currectly beta2, but I know, that it has still some problems and errors, so I can't use it for now... Thanks... ------------------------------------------------------------------------- Pavel Janousek (PaJaSoft) FoNet, spol. s r. o. Vyvoj software, sprava siti, Unix, Web, Y2K Anenska 11, 602 00 Brno E-mail: mailto:Janousek@FoNet.Cz Tel.: +420 5 4324 4749 SMS: mailto:P.Janousek@SMS.Paegas.Cz Fax.: +420 5 4324 4751 WWW: http://WWW.FoNet.Cz/ E-mail: mailto:Info@FoNet.Cz --------------------------------------------------------------------------