Re: Column Type Suggestions

From: Chris <rfusca(at)gmail(dot)com>
To: Blake Starkenburg <blake(at)oldride(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Column Type Suggestions
Date: 2009-10-29 21:55:37
Message-ID: bd2b91a10910291455x6347d246r3eae24ee4e64964e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>
>
>
> Initially I had planned to use Postgresql's Array Column (keywords
> varchar(100)[]) but this has some limitations when using the LIKE operator,
> making searching for specific string of words difficult unless you know
> firsthand the array key (keywords[2] LIKE 'PANA%').
>
> Does anyone have any suggestions? Product keywords could vary from 1 up to
> 20, maybe more. Performance isn't a huge issue since the database table
> will
> be fairly small and on a local network. Appreciate all the input! NOTE:
> Using PHP5/Postgresql 8.3<http://www.postgresql.org/mailpref/pgsql-general>
>

Sounds like a seperate table with the primary key of your product table and
the keyword you want.

--
Chris Spotts
rfusca(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Arjen Nienhuis 2009-10-29 23:21:27 Re: Column Type Suggestions
Previous Message Scott Marlowe 2009-10-29 20:42:25 Re: checkpoints/bgwriter tuning verification