Re: Arrays

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: Bob Pawley <rjpawley(at)shaw(dot)ca>
Cc: Tino Wildenhain <tino(at)wildenhain(dot)de>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Postgresql <pgsql-general(at)postgresql(dot)org>
Subject: Re: Arrays
Date: 2006-01-26 22:35:24
Message-ID: 1138314924.22740.43.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I can't imagine

test=# create type stat1 as (i1 int, i2 int, i3 int, t1 text);
CREATE TYPE
test=# create table stest(s1 stat1);
CREATE TABLE
test=# insert into stest values ((1,1,1,'t'));
INSERT 0 1
test=# select * from stest;
s1
-----------
(1,1,1,t)
(1 row)

being a big issue. You've got to create the tables, you can create the
type while you're at it, right?

On Thu, 2006-01-26 at 15:59, Bob Pawley wrote:
> Our application will be dispersed amongst many users.
>
> I want to keep the datbase as generic as possible.
>
> Bob
>
>
> ----- Original Message -----
> From: "Tino Wildenhain" <tino(at)wildenhain(dot)de>
> To: "Bob Pawley" <rjpawley(at)shaw(dot)ca>
> Cc: "Joshua D. Drake" <jd(at)commandprompt(dot)com>; "Stephan Szabo"
> <sszabo(at)megazone(dot)bigpanda(dot)com>; "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>; "Postgresql"
> <pgsql-general(at)postgresql(dot)org>
> Sent: Thursday, January 26, 2006 1:09 PM
> Subject: Re: [GENERAL] Arrays
>
>
> > Bob Pawley schrieb:
> >> The order for the array is Min, Norm, Max, Unit.
> >>
> >> I'll probably reorder it with the unit first as every value has a unit.
> >>
> >
> > I'd rather create/use a custom datatype for your needs.
> > This array stuff seems overly hackish for me.
> >
> > Regards
> > Tino
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 2: Don't 'kill -9' the postmaster
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly

In response to

  • Re: Arrays at 2006-01-26 21:59:03 from Bob Pawley

Responses

  • Re: Arrays at 2006-01-26 23:50:11 from Bob Pawley

Browse pgsql-general by date

  From Date Subject
Next Message Marcus Couto 2006-01-26 22:53:13 PG_RESTORE and database size
Previous Message Michael Fuhr 2006-01-26 22:30:25 Re: "xmin" system column