Re: proper use of array datatype

From: "Eric Andrews" <eric(dot)m(dot)andrews(at)gmail(dot)com>
To: nikolay(at)samokhvalov(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: proper use of array datatype
Date: 2006-08-01 21:01:32
Message-ID: 7a4707ef0608011401he644d3cyf95c45e450edac91@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 8/1/06, Nikolay Samokhvalov <samokhvalov(at)gmail(dot)com> wrote:
> On 8/1/06, Eric Andrews <eric(dot)m(dot)andrews(at)gmail(dot)com> wrote:
> > ... and inside
> > those boxes are a set of contents. what I want to do is search and
> > basically "mine" data from the content sets. do I use an array
> > datatype for the content column, or is there a better more efficient
> > way to go about this?
>
> What kind of content?
> Is it possible to design regular table for it (a set of properties is
> clear a priori)?

a set of ID numbers and no not really. the boxes are unique to a
destination and the content list/set is unique to the box. I'd have a
bajillion tables :(

> BTW, there is some interesting constrib module - contrib/hstore - that
> allows to work with structures similar to perl's hashes. And, one more
> - contrib/ltree - that provides the tree-like structures. Both are
> based on GiST - that means support of index and, therefore, good
> perfomance. Consider using these extensions.
id like to stay away from addons if i can avoid it you know?

thanks,
eric

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Steffen 2006-08-01 21:37:23 Re: Help with plpgsql - subst variable value
Previous Message Martijn van Oosterhout 2006-08-01 20:56:55 Re: money type depreciated?