binary size of each pgsphere's datatype

20 views
Skip to first unread message

g.broc...@gmail.com

unread,
Mar 7, 2017, 3:10:47 PM3/7/17
to pgSphere users and developers
Hi all,

I'm interested to know if all datatype defined in pgsphere (spoint, ecc.) have a fixed binary size or not. I mean, could they be considered as varlena datatype?

Regards,
Giuseppe.

mnul...@ari.uni-heidelberg.de

unread,
Mar 8, 2017, 8:32:01 AM3/8/17
to g.broc...@gmail.com, pgSphere users and developers
Hi Giuseppe,

> I'm interested to know if all datatype defined in pgsphere (spoint,
> ecc.) have a fixed binary size or not.

Most of them have, except for spoly and spath.

> I mean, could they be considered as varlena datatype?

Yes, spoly and spath are variable-length. For reference,
here are the relevant lines from pgs_types.sql.in :

CREATE TYPE spoint (
internallength = 16,
CREATE TYPE strans (
internallength = 32,
CREATE TYPE scircle (
internallength = 24,
CREATE TYPE sline (
internallength = 32,
CREATE TYPE sellipse (
internallength = 40,
CREATE TYPE spoly (
internallength = VARIABLE,
CREATE TYPE spath (
internallength = VARIABLE,
CREATE TYPE sbox (
internallength = 32,

Best regards,
Markus


Reply all
Reply to author
Forward
0 new messages