Re: SELECT '(1, nan, 3)'::cube; - Mailing list pgsql-bugs

From bricklen
Subject Re: SELECT '(1, nan, 3)'::cube;
Date
Msg-id AANLkTikobQLQUmS4+=qieC05Cw7MwnsWZ6uWNriyf=FG@mail.gmail.com
Whole thread Raw
In response to SELECT '(1, nan, 3)'::cube;  ("Robert Brewer" <fumanchu@aminus.org>)
Responses Re: SELECT '(1, nan, 3)'::cube;  ("Robert Brewer" <fumanchu@aminus.org>)
List pgsql-bugs
On Tue, Mar 15, 2011 at 9:08 AM, Robert Brewer <fumanchu@aminus.org> wrote:
> I'm working on a hypercube implementation in Postgres using contrib/cube
>
> and need to insert 80,000 rows in one go from Python. Doing so with
> INSERT, even multiple statements in one call, is pretty slow. I've been
> investigating if using COPY is faster.

When you say "multiple statements", do you mean

INSERT INTO foo (coords) VALUES
(cube(ARRAY[1, 'nan', 3]::float[])),
(cube(ARRAY[2, 'nan', 4]::float[])),
(cube(ARRAY[3, 'nan', 5]::float[])),
(cube(ARRAY[4, 'nan', 6]::float[]));

I was going to suggest trying that method, but if you already have
then please ignore me!

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: BUG #5933: database restore error
Next
From: "Frederic Junod"
Date:
Subject: BUG #5934: postgresql.conf: optional equal sign