Re: [GENERAL] arrays - Mailing list pgsql-sql

From Achilleus Mantzios
Subject Re: [GENERAL] arrays
Date
Msg-id Pine.LNX.4.44.0209301613230.32609-100000@matrix.gatewaynet.com
Whole thread Raw
In response to Re: [GENERAL] arrays  (Bruno Wolff III <bruno@wolff.to>)
List pgsql-sql
On Mon, 30 Sep 2002, Bruno Wolff III wrote:

>
> It is unusual to want to store arrays in a database. Normally you want to
> use additional tables instead. For example multilanguage titles is something
> I would expect to be in a table that had a column referencing back to
> another table defining the object a title was for, a column with the
> title and a column with the language.

I think arrays are one of the cool features of postgres
(along with gist indexes).

Here are some common uses:

- Tree representation (the genealogical from child to ancestors approach)
- Storing of polynomial formulae of arbitary degree

checkout the intarray package in contrib for further info.

I think pgsql arrays provide a natural solution to certain problems
where it fits.



==================================================================
Achilleus Mantzios
S/W Engineer
IT dept
Dynacom Tankers Mngmt
Nikis 4, Glyfada
Athens 16610
Greece
tel:    +30-10-8981112
fax:    +30-10-8981877
email:  achill@matrix.gatewaynet.com
        mantzios@softlab.ece.ntua.gr


pgsql-sql by date:

Previous
From: Mike Sosteric
Date:
Subject: Re: [GENERAL] arrays
Next
From: Bruno Wolff III
Date:
Subject: Re: [GENERAL] arrays