<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>As far as merging this in, are there objections to the function name "postgis_compress_geometry" ? While the compression is actually happening at the Postgres level, I think this name captures the net result of calling the function, doesn't require the user to understand the internal mechanism of compression, and suggests that use of the function alters the input data and may affect performance.</div></div></blockquote><div><br></div><div>compress_geometry will not kick in if column type is altered to EXTERNAL or PLAIN:<br><a href="https://www.postgresql.org/docs/10/static/storage-toast.html">https://www.postgresql.org/docs/10/static/storage-toast.html</a> <br><br></div><div>I would expect compress_geometry to change internal representation to some zigzag delta encoded thing, but not to zero out last bits.</div></div></div>