dbTalk Databases Forums  

[SQL] Indexing question

mailing.database.pgsql-sql mailing.database.pgsql-sql


Discuss [SQL] Indexing question in the mailing.database.pgsql-sql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
amit sehas
 
Posts: n/a

Default [SQL] Indexing question - 08-14-2012 , 11:54 AM






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


--
Sent via pgsql-sql mailing list (pgsql-sql (AT) postgresql (DOT) org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.