<HTML dir=ltr><HEAD><TITLE>Re: [postgis-devel] Issue 77 in postgis: make check - is there anywayfor us to delete postgis_reg db when load fails</TITLE>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6001.18148" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText18799 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>It happens to me all the time particularly on OpenSUSE.  I compile as root, forget to switch back to postgres before run check, but can't run check as root because I didn't give root enought rights.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>or I change to postgres but I have to chmod the regress folder or something like that.  In this case it was just because my GEOS was the wrong version so would create the db and next time wouldn't drop.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>I think it should be the default behavior to drop, but I don't know.  Since its not something users do often.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>It wouldn't have been such a problem except next time check fails if the database exists or at least it seems to.  Maybe I was just reading it wrong.</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> postgis-devel-bounces@postgis.refractions.net on behalf of strk<BR><B>Sent:</B> Thu 11/27/2008 5:14 PM<BR><B>To:</B> PostGIS Development Discussion<BR><B>Subject:</B> Re: [postgis-devel] Issue 77 in postgis: make check - is there anywayfor us to delete postgis_reg db when load fails<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>On Thu, Nov 27, 2008 at 06:03:14PM +0000, codesite-noreply@google.com wrote:<BR>> Status: New<BR>> Owner: robe....@cityofboston.gov<BR>> Labels: Type-Enhancement<BR>><BR>> New issue 77 by robe....@cityofboston.gov: make check - is there anyway for<BR>> us to delete postgis_reg db when load fails<BR>> <A href="http://code.google.com/p/postgis/issues/detail?id=77">http://code.google.com/p/postgis/issues/detail?id=77</A><BR>><BR>> What steps will reproduce the problem?<BR>> 1. make check<BR>> 2. check fails during loading of postgis<BR>> 3. you run make check again after compilation<BR>> 4. it fails again<BR>> 5. Oh yah have to do dropdb postgis_reg before you can run make check again<BR><BR>I suggest you set an env. variable, like:<BR><BR> make check OPTIONS=droponfailure<BR><BR>Or make it the default and opt-in for keeping the db<BR><BR> make check OPTIONS=keeponfailure<BR><BR>Keeping the db was a choice for easier debugging (what went wrong?)<BR><BR>--strk;<BR><BR>_______________________________________________<BR>postgis-devel mailing list<BR>postgis-devel@postgis.refractions.net<BR><A href="http://postgis.refractions.net/mailman/listinfo/postgis-devel">http://postgis.refractions.net/mailman/listinfo/postgis-devel</A><BR></FONT></P></DIV></BODY></HTML>
<HTML><BODY><P><hr size=1></P>
<P><STRONG>
The substance of this message, including any attachments, may be confidential, legally privileged and/or exempt from disclosure pursuant to Massachusetts law. It is intended solely for the addressee. If you received this in error, please contact the sender and delete the material from any computer.
</STRONG></P></BODY></HTML>

<P><hr size=1></P>
<P><STRONG><font size="2" color="339900"> Help make the earth a greener place. If at all possible resist printing this email and join us in saving paper. </p> <p> </font></STRONG></P>