<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>As I recall, I think  pg_stat_activity shows database restore work.  So I would run something like<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>SELECT * FROM pg_stat_activity WHERE datname='mydb';<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'>Replacing mydb with your db.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal style='margin-left:.5in'><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>From:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> postgis-users-bounces@lists.osgeo.org [mailto:postgis-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>Brian Wilson<br><b>Sent:</b> Wednesday, August 26, 2015 4:07 PM<br><b>To:</b> PostGIS Users Discussion <postgis-users@lists.osgeo.org><br><b>Cc:</b> PostGIS Users Discussion <postgis-users@postgis.refractions.net><br><b>Subject:</b> Re: [postgis-users] Loading a PostGIS dump<o:p></o:p></span></p><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><div><div><div><div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Best advice ever: Listen to PAUL not to BRIAN. :-)<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>I was also going to say "what makes you think it stopped"? Stop is usually noisy and ends with a command prompt.<o:p></o:p></p></div><p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in'>Does it load the tables then set ownership? That would be easy to fix later.<o:p></o:p></p></div><p class=MsoNormal style='margin-left:.5in'>My own Q -- What would be a reasonable query to run to see if it's loading?<o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p></div><p class=MsoNormal style='margin-left:.5in'>Brian<br> <o:p></o:p></p></div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p><div><p class=MsoNormal style='margin-left:.5in'>On Wed, Aug 26, 2015 at 12:18 PM, Paul Ramsey <<a href="mailto:pramsey@cleverelephant.ca" target="_blank">pramsey@cleverelephant.ca</a>> wrote:<o:p></o:p></p><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal style='margin-left:.5in'>The COPY command used to load tables is basically 100% silent, so it<br>just might have been working away. A good thing to check is 'top' to<br>see if the postgres process is busy using CPU. If so, it's hard at<br>work on your process. If not, then perhaps something is awry.<br><br>P<br><br>On Wed, Aug 26, 2015 at 12:01 PM, Lee Hachadoorian<br><<a href="mailto:Lee.Hachadoorian%2BL@gmail.com">Lee.Hachadoorian+L@gmail.com</a>> wrote:<br>> New Linux machine, new PostGIS install (postgresql-9.3-postgis-2.1). I<br>> created DB and added extensions. Now trying to load database using<br>> <a href="http://postgis_restore.pl" target="_blank">postgis_restore.pl</a>. This is a large database (63GB dump, created from<br>> DB that was probably 600GB or more).<br>><br>> The script ran for a while. Then it stopped at<br>><br>>  setval<br>> --------<br>>      53<br>> (1 row)<br>><br>> It's been hanging out there for hours now, so I assume something is<br>> hopelessly wrong.<br>><br>> The loader created foo.dump.lst at 10:50am and I piped errors to a<br>> text file. Errors file shows that I did not create a user who owns one<br>> of the schemas. `ERROR:  role "geo_user" does not exist` appears 260<br>> times.<br>><br>> Can I just kill the loader script with Ctrl+C? Is database<br>> recoverable? Should I just drop database and try again from the<br>> beginning? Is failure related to missing role, or if not how do I<br>> figure out what the error is so that I can get this to run to<br>> completion?<br>><br>> Best,<br>> --Lee<br>><br>> --<br>> Lee Hachadoorian<br>> Asst Professor of Geography, Temple University<br>> <a href="http://geospatial.commons.gc.cuny.edu/" target="_blank">http://geospatial.commons.gc.cuny.edu/</a><br>> _______________________________________________<br>> postgis-users mailing list<br>> <a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br>> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@lists.osgeo.org">postgis-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/postgis-users</a><o:p></o:p></p></blockquote></div><p class=MsoNormal style='margin-left:.5in'><br><br clear=all><br>-- <o:p></o:p></p><div><div><div><div><div><div><div><div><div><div><div><div><p class=MsoNormal style='margin-left:.5in'>Brian Wilson, GISP<o:p></o:p></p></div></div><div><div><p class=MsoNormal style='margin-left:.5in'>@brian_32768<o:p></o:p></p></div></div><div><p class=MsoNormal style='margin-left:.5in'><o:p> </o:p></p></div></div></div></div></div></div></div></div></div></div></div></div></div></body></html>