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