[postgis-devel] Issue 77 in postgis: make check - is there anywayfor us to delete postgis_reg db when load fails

Obe, Regina robe.dnd at cityofboston.gov
Thu Nov 27 22:52:14 PST 2008


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.
 
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.
 
I think it should be the default behavior to drop, but I don't know.  Since its not something users do often.
 
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.

________________________________

From: postgis-devel-bounces at postgis.refractions.net on behalf of strk
Sent: Thu 11/27/2008 5:14 PM
To: PostGIS Development Discussion
Subject: Re: [postgis-devel] Issue 77 in postgis: make check - is there anywayfor us to delete postgis_reg db when load fails



On Thu, Nov 27, 2008 at 06:03:14PM +0000, codesite-noreply at google.com wrote:
> Status: New
> Owner: robe.... at cityofboston.gov
> Labels: Type-Enhancement
>
> New issue 77 by robe.... at cityofboston.gov: make check - is there anyway for
> us to delete postgis_reg db when load fails
> http://code.google.com/p/postgis/issues/detail?id=77
>
> What steps will reproduce the problem?
> 1. make check
> 2. check fails during loading of postgis
> 3. you run make check again after compilation
> 4. it fails again
> 5. Oh yah have to do dropdb postgis_reg before you can run make check again

I suggest you set an env. variable, like:

 make check OPTIONS=droponfailure

Or make it the default and opt-in for keeping the db

 make check OPTIONS=keeponfailure

Keeping the db was a choice for easier debugging (what went wrong?)

--strk;

_______________________________________________
postgis-devel mailing list
postgis-devel at postgis.refractions.net
http://postgis.refractions.net/mailman/listinfo/postgis-devel




-----------------------------------------
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20081128/9c9d3673/attachment.html>


More information about the postgis-devel mailing list