From jkanter@virginia.edu Thu Oct 31 15:04:13 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id E021C475CE7 for ; Thu, 31 Oct 2002 10:04:13 -0500 (EST) Received: from mail.virginia.edu (mail.Virginia.EDU [128.143.2.9]) by postgresql.org (Postfix) with SMTP id 224A9475CA6 for ; Thu, 31 Oct 2002 10:04:13 -0500 (EST) Received: from smtp.mail.virginia.edu by mail.virginia.edu id ab19661; 31 Oct 2002 10:04 EST Received: from jlk3xpc (d-128-19-222.bootp.Virginia.EDU [128.143.19.222]) by smtp.mail.Virginia.EDU (8.11.6/8.11.6) with SMTP id g9VF3Hr40214 for ; Thu, 31 Oct 2002 10:03:17 -0500 Message-ID: <006601c280ef$009af6d0$de138f80@virginia.edu> From: Jodi Kanter To: Postgres Admin List Subject: array character types Date: Thu, 31 Oct 2002 10:05:51 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0063_01C280C5.17A97790" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/316 X-Sequence-Number: 6174 This is a multi-part message in MIME format. ------=_NextPart_000_0063_01C280C5.17A97790 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Can anyone offer some insight or link to documentation on the use of intege= r and/or string array data types? We are thinking of using them in our data= base but there is some concern about breaking normalization standards and o= pening ourselves up to more issues later.=20 We are storing data about various analyses that are being run - i.e user an= d system parameter values. It would be nice not to have to create a separat= e table for each of these fields. Any thoughts would be greatly appreciated. Thank you, Jodi Kanter _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu =20 =20 =20 ------=_NextPart_000_0063_01C280C5.17A97790 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Can anyone offer some insight or link t= o=20 documentation on the use of integer and/or string array data types? We are= =20 thinking of using them in our database but there is some concern about brea= king=20 normalization standards and opening ourselves up to more issues later.=20
We are storing data about various analy= ses=20 that are being run - i.e user and system parameter values. It would be nice= not=20 to have to create a separate table for each of these fields.
Any thoughts would be greatly=20 appreciated.
Thank you,
Jodi Kanter
 

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu

 

 

 

<= /DIV> ------=_NextPart_000_0063_01C280C5.17A97790-- From gbjk@thermeoneurope.com Thu Oct 31 15:14:34 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 01137475F26 for ; Thu, 31 Oct 2002 10:14:34 -0500 (EST) Received: from ftp.thermeoneurope.com (unknown [193.132.64.89]) by postgresql.org (Postfix) with ESMTP id 183DF475E45 for ; Thu, 31 Oct 2002 10:14:32 -0500 (EST) Received: from gbjk1 (gbjk1.thermeoneurope.com [192.168.234.85]) by ftp.thermeoneurope.com (8.11.6/8.11.6) with SMTP id g9VFDaS07893; Thu, 31 Oct 2002 15:13:36 GMT Reply-To: From: "Gareth Kirwan" To: "Jodi Kanter" , "Postgres Admin List" Subject: Re: array character types Date: Thu, 31 Oct 2002 15:13:57 -0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00A0_01C280F0.227B5690" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 In-Reply-To: <006601c280ef$009af6d0$de138f80@virginia.edu> X-MailScanner: Found to be clean X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/317 X-Sequence-Number: 6175 This is a multi-part message in MIME format. ------=_NextPart_000_00A0_01C280F0.227B5690 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Jodi, In my experience: It is better to normalize these arrays into separate tables - even if it isn't "nice" to do so :-p Array types can't be indexed, can't be foreign keys, and aren't compatible with other systems. Normalization is always the most efficient way of handling multiple values under one category for a table. Sometimes you may file the need to hit the C and write a procedure or two that can handle creation, deletion and retrieval from these quickly. A lot of the time though, this isn't necessary. Regards Gareth Kirwan Thermeon Europe Ltd gbjk@thermeoneurope.com -----Original Message----- From: pgsql-admin-owner@postgresql.org [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jodi Kanter Sent: 31 October 2002 15:06 To: Postgres Admin List Subject: [ADMIN] array character types Can anyone offer some insight or link to documentation on the use of integer and/or string array data types? We are thinking of using them in our database but there is some concern about breaking normalization standards and opening ourselves up to more issues later. We are storing data about various analyses that are being run - i.e user and system parameter values. It would be nice not to have to create a separate table for each of these fields. Any thoughts would be greatly appreciated. Thank you, Jodi Kanter _______________________________ Jodi L Kanter BioInformatics Database Administrator University of Virginia (434) 924-2846 jkanter@virginia.edu ------=_NextPart_000_00A0_01C280F0.227B5690 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Jodi,
 
In my=20 experience:
    It is better to normalize these arrays into separa= te tables=20 - even if it isn't "nice" to do so :-p
    Array types can't be indexed, can't be foreig= n keys,=20 and aren't compatible with other systems.
    Normalization is always the most efficient way of = handling=20 multiple values under one category for a table.
    Sometimes you may file the need to hit the C = and write=20 a procedure or two that can handle creation, deletion and retriev= al=20 from these quickly.
    A lot of the time though, this isn't=20 necessary.
 
Regards
 
Gareth Kirwan
Thermeon Europe Ltd
gbjk@thermeoneurope.com&= nbsp;  =20
-----Original Message-----
From:=20 pgsql-admin-owner@postgresql.org=20 [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Jodi=20 Kanter
Sent: 31 October 2002 15:06
To: Postgres Admin= =20 List
Subject: [ADMIN] array character types

Can anyone offer some insight or link= to=20 documentation on the use of integer and/or string array data types? We ar= e=20 thinking of using them in our database but there is some concern about=20 breaking normalization standards and opening ourselves up to more issues= =20 later.
We are storing data about various ana= lyses=20 that are being run - i.e user and system parameter values. It would be ni= ce=20 not to have to create a separate table for each of these fields.
Any thoughts would be greatly=20 appreciated.
Thank you,
Jodi Kanter
 

_______________________________
Jodi=20 L Kanter
BioInformatics Database Administrator
University of=20 Virginia
(434) 924-2846
jkanter@virginia.edu
<= SPAN=20 style=3D"FONT-SIZE: 11pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt;= mso-fareast-font-family: 'MS Mincho'">

 

 

 

------=_NextPart_000_00A0_01C280F0.227B5690-- From oleg@sai.msu.su Thu Oct 31 18:28:32 2002 Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 612A8475DAD for ; Thu, 31 Oct 2002 13:28:32 -0500 (EST) Received: from ra.sai.msu.su (ra.sai.msu.su [158.250.29.2]) by postgresql.org (Postfix) with ESMTP id 38F5D475B47 for ; Thu, 31 Oct 2002 13:28:31 -0500 (EST) Received: from ra (ra [158.250.29.2]) by ra.sai.msu.su (8.9.3/8.9.3) with ESMTP id VAA04557; Thu, 31 Oct 2002 21:27:46 +0300 (MSK) Date: Thu, 31 Oct 2002 21:27:46 +0300 (MSK) From: Oleg Bartunov X-X-Sender: megera@ra.sai.msu.su To: Jodi Kanter Cc: Postgres Admin List Subject: Re: array character types In-Reply-To: <006601c280ef$009af6d0$de138f80@virginia.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-r Content-Transfer-Encoding: 8BIT X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/323 X-Sequence-Number: 6181 Jodi, check contrib/intarray for arrays of integers. ïÌÅÇ On Thu, 31 Oct 2002, Jodi Kanter wrote: > Can anyone offer some insight or link to documentation on the use of integer and/or string array data types? We are thinking of using them in our database but there is some concern about breaking normalization standards and opening ourselves up to more issues later. > We are storing data about various analyses that are being run - i.e user and system parameter values. It would be nice not to have to create a separate table for each of these fields. > Any thoughts would be greatly appreciated. > Thank you, > Jodi Kanter > > _______________________________ > Jodi L Kanter > BioInformatics Database Administrator > University of Virginia > (434) 924-2846 > jkanter@virginia.edu > > > > > > > > > > Regards, Oleg _____________________________________________________________ Oleg Bartunov, sci.researcher, hostmaster of AstroNet, Sternberg Astronomical Institute, Moscow University (Russia) Internet: oleg@sai.msu.su, http://www.sai.msu.su/~megera/ phone: +007(095)939-16-83, +007(095)939-23-83