<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Maybe a simple mail to postgres list,<br></div><div class="gmail_default" style="font-family:monospace,monospace">I guess it must be very common to want to change order of pgdump.<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br>Another simple way would be to write a script that calls pgdump on each table (excluding extension tables),<br></div><div class="gmail_default" style="font-family:monospace,monospace">this way you have control.<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">I'm not an expert, but I think I remember that copying postgres folder is a very bad idea.<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_default" style="font-family:monospace,monospace">Cheers,<br></div><div class="gmail_default" style="font-family:monospace,monospace">Rémi-C<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-16 13:32 GMT+02:00 Jean-Francois Prieur <span dir="ltr"><<a href="mailto:jfprieur@gmail.com" target="_blank">jfprieur@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks again Rémi, no such option in pgdump unfortunately! I finally did it the old school way of shutting down the server and copying the folder containing the database to the new machine.<div><br></div><div>I will keep looking to see if there is a way to prioritize table order and get back to the list if I find something.</div><span class="HOEnZb"><font color="#888888"><div><br></div></font></span><div><span class="HOEnZb"><font color="#888888">JF</font></span><div><div class="h5"><br><br><div class="gmail_quote"><div dir="ltr">On Thu, Jun 16, 2016, 04:55 Rémi Cura <<a href="mailto:remi.cura@gmail.com" target="_blank">remi.cura@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hey,<br></div><div class="gmail_default" style="font-family:monospace,monospace">in this case the fix seems obvious :<br></div><div class="gmail_default" style="font-family:monospace,monospace">you should first copy the content of <span style="line-height:1.5">"pointcloud_formats" before copying the points.<br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="line-height:1.5">I don't remember if there are options in pgdump to prioritize the tables to be dumped and copied.<br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="line-height:1.5"><br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="line-height:1.5">Indeed, </span><br><span style="line-height:1.5">pointcloud_formats is like the spatial_ref_sys postgis table, that is it defines the referential, therefore you need it to create the type of points you want.<br><br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="line-height:1.5">Cheers,<br></span></div><div class="gmail_default" style="font-family:monospace,monospace"><span style="line-height:1.5">Rémi-C<br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote"></div></div><div class="gmail_extra"><div class="gmail_quote">2016-06-15 22:57 GMT+02:00 Jean-Francois Prieur <span dir="ltr"><<a href="mailto:jfprieur@gmail.com" target="_blank">jfprieur@gmail.com</a>></span>:<br></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello,<div><br></div><div>Was not sure whether to post this here or PostGIS list, apologies if this is the wrong list!</div><div><br></div><div>We have a PostGIS database using pointcloud objects to store our lidar data.</div><div><br></div><div>I am trying to move the database to another server using</div><div><br></div>pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname<div><br></div><div>The connections work fine remotely and it starts creating the database (including the extensions), when it starts to copy the actual pointcloud entries, we get an error:</div><div><div><br></div><div><br></div><div>2016-06-15 16:33:59 EDT<span style="white-space:pre-wrap"> </span>LOG<span style="white-space:pre-wrap"> </span>Pointcloud (1.1.0) module loaded at character 53<span style="white-space:pre-wrap"> </span></div><div><div>2016-06-15 16:33:59 EDT<span style="white-space:pre-wrap"> </span>STATEMENT<span style="white-space:pre-wrap"> </span>CREATE TABLE crpt (<span style="white-space:pre-wrap"> </span></div><div><div><span style="white-space:pre-wrap"> </span> id integer NOT NULL,<span style="white-space:pre-wrap"> </span></div><div><div><span style="white-space:pre-wrap"> </span> pa pcpatch(1),<span style="white-space:pre-wrap"> </span></div><div><div><span style="white-space:pre-wrap"> </span> tree_id character varying<span style="white-space:pre-wrap"> </span></div><div><div><span style="white-space:pre-wrap"> </span>);<span style="white-space:pre-wrap"> </span></div><div style="line-height:1.5"><span style="line-height:1.5">2016-06-15 16:34:24 EDT</span><span style="line-height:1.5;white-space:pre-wrap"> </span><span style="line-height:1.5">ERROR</span><span style="line-height:1.5;white-space:pre-wrap"> </span><span style="line-height:1.5">no entry in "pointcloud_formats" for pcid = 1</span><span style="line-height:1.5;white-space:pre-wrap"> </span><br></div></div></div></div></div></div></div><div><div>2016-06-15 16:34:24 EDT<span style="white-space:pre-wrap"> </span>CONTEXT<span style="white-space:pre-wrap"> </span>COPY crpt, line 1, column pa: "0101000000020000007403000002E8030000090000006588634786E6FDF6237D42E0B460602D36A0D8B9D80E9DCB5D580D83..."<span style="white-space:pre-wrap"> </span></div></div><div><br></div><div><br></div><div>I have the feeling something is not being done in the correct order, a missing schema or something.</div><div><br></div><div>What is the proper procedure for copying a poincloud enabled database from one server to another?</div><div><br></div><div>Thanks,</div><div>JF</div></div>
<br></blockquote></div></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">_______________________________________________<br>
pdal mailing list<br>
<a href="mailto:pdal@lists.osgeo.org" target="_blank">pdal@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pdal" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pdal</a><br></blockquote></div><br></div>
</blockquote></div></div></div></div>
</blockquote></div><br></div>