Re: BUG #14300: Empty cube representation - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #14300: Empty cube representation
Date
Msg-id 9274.1472487883@sss.pgh.pa.us
Whole thread Raw
In response to BUG #14300: Empty cube representation  (a@ustimen.co)
List pgsql-bugs
a@ustimen.co writes:
> SELECT CUBE(ARRAY[]::INTEGER[]);
> -- Gives '()'
> SELECT '()'::CUBE;
> -- Gives 'ERROR:  bad cube representation'

Hmm.  There are more ways than that to produce a cube that cube_in won't
take: you can put in an infinity or NaN coordinate via the cube-from-
float-array path too, and cube_out will print them, but cube_in won't
take them.  We fixed something similar with the core geometric types
recently.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #14301: function in case expression called when it should not be
Next
From: Spencer Thomason
Date:
Subject: Re: BUG #14295: Hot standby crash during tsvector rebuild