BUG #1748: Unique contraints cannot be added to long text fields

From: "Greg Steffensen" <greg(dot)steffensen(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1748: Unique contraints cannot be added to long text fields
Date: 2005-07-02 16:20:29
Message-ID: 20050702162029.657C1F0B0F@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 1748
Logged by: Greg Steffensen
Email address: greg(dot)steffensen(at)gmail(dot)com
PostgreSQL version: 8.02
Operating system: Gentoo Linux
Description: Unique contraints cannot be added to long text fields
Details:

I'm storing SVG files, which can be many kilobytes long, in a text field.
When I try to add a unique contraint to that field, or try to add a row to a
table that already has had the unique contraint applied, I get errors like
the following:

ERROR: index row requires 15528 bytes, maximum size is 8191

Evidently, the unique constraint creates an index, but the index can't
handle large field sizes.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Pawel Bernat 2005-07-02 16:22:06 Re: BUG #1747: PostgreSQL 'hangs' after prolonged usage
Previous Message Wojciech Sobczuk 2005-07-02 13:12:42 BUG #1747: PostgreSQL 'hangs' after prolonged usage