From: Peter Eisentraut <peter_e@gmx.net>
To: Mª José Sempere <mjose@pixelart.es>
Cc: pgsql-admin@postgresql.org
Subject: Re: binary tipes
Date: Fri, 3 Dec 2004 14:01:19 +0100
Message-ID: <200412031401.19775.peter_e@gmx.net> (raw)
In-Reply-To: <000301c4d932$3c02dfb0$0900a8c0@mj>
References: <000301c4d932$3c02dfb0$0900a8c0@mj>
Am Freitag, 3. Dezember 2004 13:18 schrieb Mª José Sempere:
> We've created a table with a bytea type field.
> We'd like having no more than one row with identical content
> In that field. So, we've declared a unique index on that field.
> We'd like to know if in tables with a lot of rows the existence of that
> index will slow the insertion of new rows
Yes.
> (perhaps because before inserting
> it must compare that field with the content of the same bytea field
> For all the existing rows in the table).
Not with all rows, since it's a B-tree index, but with some rows for sure.
> We'd also like to know how does PostgreSql implement that comparation
> Between bytea fields (if it compares all the content of the field,
Yes.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: peter_e@gmx.net, mjose@pixelart.es
Subject: Re: binary tipes
In-Reply-To: <200412031401.19775.peter_e@gmx.net>
References: <000301c4d932$3c02dfb0$0900a8c0@mj> <200412031401.19775.peter_e@gmx.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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