Re: Data Types - Mailing list pgsql-novice

From Jasen Betts
Subject Re: Data Types
Date
Msg-id ib60sm$qdi$2@reversiblemaps.ath.cx
Whole thread Raw
In response to Data Types  (ALT SHN <i.geografica@alt-shn.org>)
List pgsql-novice
On 2010-11-05, ALT SHN <i.geografica@alt-shn.org> wrote:
> --20cf30549a6f4e574504944fc733
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
>
> Hello List,
>
> I have a column of a table of paleontological sites named "Paleosites" wich
> has a column named "species". A paleosite can contain remais of one or more
> animals. So in that column sometimes I have to put this: dinossauria
> crocodilia plantae. This indicates that from a given paleosite were
> retrieved the remais of 3 different species.
>
> Now my question is: wich data type should the column "Species" be? Text?
> Varchar?

For 3NF it should be in a separate table.

Text and varchar are the same just varchar takes longer to type on the
keyboard.

text[]  (array of text) is another option (but both above comments
still apply).

--
ɹǝpun uʍop ɯoɹɟ sƃuıʇǝǝɹ⅁


pgsql-novice by date:

Previous
From: Jasen Betts
Date:
Subject: Re: COPY command and serial columns
Next
From: Jasen Betts
Date:
Subject: Re: Describe command alternatives in postgresql