[postgis-devel] Validity flag

Paul Ramsey pramsey at cleverelephant.ca
Mon Feb 29 09:23:13 PST 2016


I have another (better?) option:
Use one of the existing bits be an "extra-8-bytes" flag. That way we
can have lots of extra info if we want, in cases where fluff isn't an
issue, and without ruining alignment.
Thanks Hugo for the idea,
P

On Mon, Feb 29, 2016 at 9:18 AM, Sandro Santilli <strk at keybit.net> wrote:
> On Mon, Feb 29, 2016 at 05:57:06PM +0100, Hugo Mercier wrote:
>
>> What about putting an extra byte at the *end* of the data ?
>
> Neat!
>
>> I know it is hacky, but ... can't find better yet.
>
> The bit (currently proposed for "valid") could actually mean:
> there are more metadata at the end. Why not. I actually like
> it as a way to ensure backward compatibility.
>
>> It could invalidate memory cache for huge geometries, but should not
>> disturb existing code
>
> What do you mean here ? Which memory cache ?
>
> --strk;
> _______________________________________________
> postgis-devel mailing list
> postgis-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/postgis-devel



More information about the postgis-devel mailing list