[PostGIS] #228: postgis_restore.pl createdb parameters are used also for createlang -> crash

View: New views
4 Messages — Rating Filter:   Alert me  

[PostGIS] #228: postgis_restore.pl createdb parameters are used also for createlang -> crash

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#228: postgis_restore.pl createdb parameters are used also for createlang ->
crash
----------------------------------------------------------+-----------------
 Reporter:  havatv                                        |       Owner:  pramsey      
     Type:  defect                                        |      Status:  new          
 Priority:  medium                                        |   Milestone:  postgis 1.5.0
Component:  postgis                                       |     Version:  1.4          
 Keywords:  hard upgrade, postgis_restore.pl, parameters  |  
----------------------------------------------------------+-----------------
 I have installed 1.4.0, and wanted to test a hard upgrade using
 postgis_restore.pl, as described in the user manual
 (http://postgis.refractions.net/documentation/manual-1.4/ch02.html#hard_upgrade
 - 2.7.2 Hard upgrade).

 The user manual says that postgis_restore.pl can take parameters and pass
 them on to createdb.  This works fine.
 However, these parameters are also passed on to createlang, which is not
 happy with the createdb specific options and therefore aborts, so
 postgis_restore.pl is aborted as well.

 With the example used in the documentation ({{{sh utils/postgis_restore.pl
 postgis.sql newdb olddb.dump -E=UNICODE}}}), I get the following error
 message (Norwegian translation: "ugyldig flagg": invalid flag):

 {{{
     createlang: ugyldig flagg -- E
     Try "createlang --help" for more information.
 }}}

 Also:  It could perhaps be useful to include info on upgrade in the
 release notes, even if soft upgrade is recommended by default (there has
 not been any mention of upgrading in the release notes since 1.1.6).

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/228>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #228: postgis_restore.pl createdb parameters are used also for createlang -> crash

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#228: postgis_restore.pl createdb parameters are used also for createlang ->
crash
----------------------+-----------------------------------------------------
  Reporter:  havatv   |       Owner:  pramsey                                    
      Type:  defect   |      Status:  new                                        
  Priority:  medium   |   Milestone:  postgis 1.5.0                              
 Component:  postgis  |     Version:  1.4                                        
Resolution:           |    Keywords:  hard upgrade, postgis_restore.pl, parameters
----------------------+-----------------------------------------------------
Comment (by mcayland):

 Is this not a duplicate of #100?


 ATB,

 Mark.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/228#comment:1>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #228: postgis_restore.pl createdb parameters are used also for createlang -> crash

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#228: postgis_restore.pl createdb parameters are used also for createlang ->
crash
----------------------+-----------------------------------------------------
  Reporter:  havatv   |       Owner:  pramsey                                    
      Type:  defect   |      Status:  new                                        
  Priority:  medium   |   Milestone:  postgis 1.5.0                              
 Component:  postgis  |     Version:  1.4                                        
Resolution:           |    Keywords:  hard upgrade, postgis_restore.pl, parameters
----------------------+-----------------------------------------------------
Comment (by havatv):

 Replying to [comment:1 mcayland]:
 > Is this not a duplicate of #100?

 It seems so.  Sorry.  I should have checked.

 Only new thing is the comment on mentioning upgrade
 procedures in the release notes.

 HÃ¥vard

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/228#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel

Re: [PostGIS] #228: postgis_restore.pl createdb parameters are used also for createlang -> crash

by PostGIS-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

#228: postgis_restore.pl createdb parameters are used also for createlang ->
crash
----------------------+-----------------------------------------------------
  Reporter:  havatv   |       Owner:  pramsey                                    
      Type:  defect   |      Status:  closed                                      
  Priority:  medium   |   Milestone:  postgis 1.5.0                              
 Component:  postgis  |     Version:  1.4                                        
Resolution:  fixed    |    Keywords:  hard upgrade, postgis_restore.pl, parameters
----------------------+-----------------------------------------------------
Changes (by pramsey):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Closed out at r4746.

--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/228#comment:3>
PostGIS <http://trac.osgeo.org/postgis/>
PostGIS
_______________________________________________
postgis-devel mailing list
postgis-devel@...
http://postgis.refractions.net/mailman/listinfo/postgis-devel