<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span style="font-family: Helvetica, Arial;">> Since we store patches with practically no extra information next to them in the tuple, just reading the PC_MemSize (I think that’s the function) of the patch gives an idea of storage you can use to bump up your patch size to close to the maximum (8kb). </span><span><br><br>Is there a way we could communicate from the db to drivers.pgpointcloud.writer an automatic toast'able patch size based on this info?<span class="Apple-converted-space"> </span></span></blockquote></div><p>Yes, no, maybe so. You already have the core info (before looking at data) in your pipeline. The schema gives you an implicit point size. All you don’t know is the compression ratio, and until you start compressing actual data you don’t know that.</p><div><div><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span>> You can also recompile your database with a higher page size if you’re feeling hacky.<span class="Apple-converted-space"> </span><br><br>Is there any possibility that pg could be improved to allow tables of varying page sizes? I suppose increasing the page size generally across an entire database could cause some unforeseen pathologies.<span class="Apple-converted-space"> </span></span></blockquote></div><p>Next you’ll want to start f’ing with the gravitational constant. If you want to make the experiment, the page size is just a #define, and it might actually be a configure option even. It does cover the whole database though, variable page sizes aren’t on.</p><p>P.</p><p><br></p></div></body></html>