Re: float arrays - Mailing list pgsql-general

From Tom Lane
Subject Re: float arrays
Date
Msg-id 26264.994201091@sss.pgh.pa.us
Whole thread Raw
In response to float arrays  (oceano <nathan@psphalifax.ns.ca>)
List pgsql-general
oceano <nathan@psphalifax.ns.ca> writes:
> I can't find any examples of using float arrays in a column.

regression=# create table foo(f1 float[]);
CREATE
regression=# insert into foo values ('{1,2.4,3.7,42}');
INSERT 1523558 1
regression=# select * from foo;
           f1
------------------------
 {"1","2.4","3.7","42"}
(1 row)

regression=# update foo set f1[3] = 99.99;
UPDATE 1
regression=# select * from foo;
            f1
--------------------------
 {"1","2.4","99.99","42"}
(1 row)

regression=#

            regards, tom lane

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: plpgsql and COPY
Next
From: Stephan Szabo
Date:
Subject: Re: Re: 7.1.2 ERROR: UNIQUE constraint matching given keys for referenced table ......