Re: [SQL] arrays

From: Mike Sosteric <mikes(at)athabascau(dot)ca>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] arrays
Date: 2002-09-30 12:38:56
Message-ID: Pine.SUN.3.96.1020930063733.13580B-100000@aupair.cs.athabascau.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

On Mon, 30 Sep 2002, Bruno Wolff III wrote:

> > 3) can you do selects on only a portion of a multidimensional array. That
> > is, if you were storing multilanguage titles in a two dimensional array,
> >
> > [en], "english title"
> > [fr], "french title"
> >
> > could you select where title[0] = 'en'
>
> 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.
>

The chances are very very good that in 99% of the cases we'd only ever
have a single title. multiple titles would be rare. and, to make it worse,
there are several instances of this where you need a table but its seems
overkill for the odd 1% time when you actually need teh extra row.

of course, the there'd be a language lookup table.

what about the speed and query issue?
m

___
This communication is intended for the use of the recipient to whom it
is addressed, and may contain confidential, personal, and or privileged
information. Please contact us immediately if you are not the intended
recipient of this communication, and do not copy, distribute, or take
action relying on it. Any communications received in error, or
subsequent reply, should be deleted or destroyed.
---

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Achilleus Mantzios 2002-09-30 13:18:54 Re: [SQL] arrays
Previous Message Bruno Wolff III 2002-09-30 12:29:26 Re: [SQL] arrays

Browse pgsql-hackers by date

  From Date Subject
Next Message Achilleus Mantzios 2002-09-30 13:18:54 Re: [SQL] arrays
Previous Message Bruno Wolff III 2002-09-30 12:29:26 Re: [SQL] arrays

Browse pgsql-sql by date

  From Date Subject
Next Message Achilleus Mantzios 2002-09-30 13:18:54 Re: [SQL] arrays
Previous Message Bruno Wolff III 2002-09-30 12:29:26 Re: [SQL] arrays