From: amit sehas <cun23@yahoo.com>
To: pgsql-sql@postgresql.org
To: pgsql-general@postgresql.org
Subject: Indexing question
Date: Tue, 14 Aug 2012 09:54:48 -0700 (PDT)
Message-ID: <1344963288.3544.YahooMailClassic@web125305.mail.ne1.yahoo.com> (raw)
In SQL, given a table T, with two fields f1, f2,
is it possible to create an index such that the same record is indexed in the index, once with field f1 and once with field f2. (I am not looking for a compound index in which the key would look like <f1, f2>, instead there should be two entries in the index <f1> and <f2>).
we have a few use cases for the above, perhaps we need to alter the schema somehow to accommodate the above,
any advice is greatly appreciated ..
thanks
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: cun23@yahoo.com, pgsql-general@postgresql.org
Subject: Re: Indexing question
In-Reply-To: <1344963288.3544.YahooMailClassic@web125305.mail.ne1.yahoo.com>
* 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