Re: [SQL] arrays
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mike Sosteric <mikes@athabascau.ca>
Cc: Bruno Wolff III <bruno@wolff.to>, pgsql-general@postgresql.org, pgsql-sql@postgresql.org
Date: 2002-09-30T14:42:08Z
Lists: pgsql-hackers, pgsql-general, pgsql-sql
Mike Sosteric <mikes@athabascau.ca> writes: > could you select where title[0] = 'en' You certainly could ... but bear in mind that there's no convenient way to make such a query be indexed, at present. So any values that you actually want to use as search keys had better be in their own fields. Now, if you are just using this as an extra search condition that picks one row out of a small number that are identified by another WHERE clause, then it's good enough to index for the other clause, and so the lack of an index for title[0] isn't an issue. In this case, with only a small number of possible values for title[0], it seems that an index wouldn't be helpful anyway. regards, tom lane