From: Jimmy Mäkelä <jimmy.makela@agent25.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Pgsql-Sql (E-mail) <pgsql-sql@postgresql.org>
Subject: Re: Unique indexes not unique?
Date: Mon, 20 Jan 2003 12:52:50 +0100
Message-ID: <D1045567F50DD311AB1B00508B3188E9026546E7@RINGHALS> (raw)
> From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
> > Limit (cost=22669.68..22669.68 rows=95 width=372)
> > -> Sort (cost=22669.68..22669.68 rows=96 width=372)
> > -> Index Scan using agentresults2_modified_user,
> > agentresults2_modified_user, agentresults2_modified_user on
> agentresults
> > (cost=0.00..22666.52 rows=96 width=372)
>
> Should I guess from the index name that it is on (modified,
> usr) and not
> on (usr, modified)? If so, the problem is that the OR-expansion code
Sorry for the late answer, was out of town for the week.
Yes this is the case, and in my case I wouldn't want to change the order.
Sure it would be nice to support this case too, but not if it implies
penalties for more typical queries. Doing the expansion manually isn't
that hard (but quite ugly).
Thanks for all answers.
Regards,
Jimmy Mäkelä
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jimmy.makela@agent25.se, tgl@sss.pgh.pa.us
Subject: Re: Unique indexes not unique?
In-Reply-To: <D1045567F50DD311AB1B00508B3188E9026546E7@RINGHALS>
* 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