[postgis-tickets] [PostGIS] #2236: shp2pgsql -d: can it emit "DROP TABLE IF EXISTS"?

PostGIS trac at osgeo.org
Thu Jul 21 02:37:52 PDT 2016


#2236: shp2pgsql -d: can it emit "DROP TABLE IF EXISTS"?
----------------------------+-----------------------------
  Reporter:  pclark         |      Owner:  robe
      Type:  enhancement    |     Status:  new
  Priority:  medium         |  Milestone:  PostGIS 2.3.0
 Component:  loader/dumper  |    Version:  2.0.x
Resolution:                 |   Keywords:  shp2pgsql, gsoc
----------------------------+-----------------------------

Comment (by strk):

 loader tests can have a -pre and -post script, plus an -opt (somethign
 like that). So you could specify -d in the -opt file and either create
 or not a table with -pre (would be two tests, one with the table and
 one w/out). The data you could reuse existing one.

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/2236#comment:8>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list