pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedUnique constraint and index-combination feature in 8.1
3+ messages / 3 participants
[nested] [flat]
* Unique constraint and index-combination feature in 8.1
@ 2006-06-20 10:40 ow <oneway_111@yahoo.com>
2006-06-20 20:37 ` Re: Unique constraint and index-combination feature in 8.1 Bruno Wolff III <bruno@wolff.to>
2006-06-21 14:30 ` Re: Unique constraint and index-combination feature in 8.1 Aaron Bono <postgresql@aranya.com>
0 siblings, 2 replies; 3+ messages in thread
From: ow @ 2006-06-20 10:40 UTC (permalink / raw)
To: pgsql-admin
Hi,
Is it somehow possible to create a UNIQUE constraint that relies on non-unique
ONE-column indexes and uses index-combination feature in 8.1 ?
The alternative, which we use now, is to create a unique MULTI-column index on
the respective coulumns.
Thanks
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Unique constraint and index-combination feature in 8.1
2006-06-20 10:40 Unique constraint and index-combination feature in 8.1 ow <oneway_111@yahoo.com>
@ 2006-06-20 20:37 ` Bruno Wolff III <bruno@wolff.to>
1 sibling, 0 replies; 3+ messages in thread
From: Bruno Wolff III @ 2006-06-20 20:37 UTC (permalink / raw)
To: ow <oneway_111@yahoo.com>; +Cc: pgsql-admin
On Tue, Jun 20, 2006 at 03:40:37 -0700,
ow <oneway_111@yahoo.com> wrote:
>
> Hi,
>
> Is it somehow possible to create a UNIQUE constraint that relies on non-unique
> ONE-column indexes and uses index-combination feature in 8.1 ?
>
> The alternative, which we use now, is to create a unique MULTI-column index on
> the respective coulumns.
I am not completely sure what you are asking. But if you want a unique
constraint over multiple columns you can specify a unique table constraint
using multiple columns when you create a table.
If you are looking for something else, it might help to give a bit more
description about what you are looking for.
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Unique constraint and index-combination feature in 8.1
2006-06-20 10:40 Unique constraint and index-combination feature in 8.1 ow <oneway_111@yahoo.com>
@ 2006-06-21 14:30 ` Aaron Bono <postgresql@aranya.com>
1 sibling, 0 replies; 3+ messages in thread
From: Aaron Bono @ 2006-06-21 14:30 UTC (permalink / raw)
To: ow <oneway_111@yahoo.com>; +Cc: pgsql-admin
Are you saying you want to create a unique constraint across the indexes of
2 or more columns rather than across the columns themselves?
-Aaron
On 6/20/06, ow <oneway_111@yahoo.com> wrote:
>
>
> Hi,
>
> Is it somehow possible to create a UNIQUE constraint that relies on
> non-unique
> ONE-column indexes and uses index-combination feature in 8.1 ?
>
> The alternative, which we use now, is to create a unique MULTI-column
> index on
> the respective coulumns.
>
> Thanks
>
>
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2006-06-21 14:30 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-06-20 10:40 Unique constraint and index-combination feature in 8.1 ow <oneway_111@yahoo.com>
2006-06-20 20:37 ` Bruno Wolff III <bruno@wolff.to>
2006-06-21 14:30 ` Aaron Bono <postgresql@aranya.com>
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