Skip site navigation (1) Skip section navigation (2)

Re: Duplicate key value error

From: "Dickson S(dot) Guedes" <listas(at)guedesoft(dot)net>
To: "Itagaki Takahiro" <itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Duplicate key value error
Date: 2009-07-21 12:23:25
Message-ID: op.uxe3dbuyij9ntq@analise3.cresoltec.com.br (view raw or flat)
Thread:
Lists: pgsql-hackers
Em Tue, 21 Jul 2009 02:07:47 -0300, Itagaki Takahiro  
<itagaki(dot)takahiro(at)oss(dot)ntt(dot)co(dot)jp> escreveu:
> I modified the format logic to use StringInfo and don't cut off the  
> message in 512 bytes. Key names and values will be never into '...'. I  
> changed both both report_unique_violation() and ri_ReportViolation().

Hi Takahiro!

Hum, for key names ok, but for values, wouldn't this worse the output when  
it is greater than 512 bytes?
-- 
Dickson S. Guedes
mail/xmpp: guedes(at)guedesoft(dot)net - skype: guediz
http://guedesoft.net - http://www.postgresql.org.br
http://www.rnp.br/keyserver/pks/lookup?search=0x8F3E3C06D428D10A

In response to

Responses

pgsql-hackers by date

Next:From: pgDate: 2009-07-21 13:10:45
Subject: Re: [PATCH v4] Avoid manual shift-and-test logic in AllocSetFreeIndex
Previous:From: Magnus HaganderDate: 2009-07-21 12:06:25
Subject: Re: [PATCH] "could not reattach to shared memory" on Windows

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group