Sandro Santilli
446bcb2acc
dd support for fetching SVN revision from pure-git clones ( #1579 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9193 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-15 11:00:11 +00:00
Sandro Santilli
8b316be887
Allow retaining all custom spatial_ref_sys entries, even clashing
...
Update manual accordingly (hard upgrade procedure)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9175 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 18:06:53 +00:00
Sandro Santilli
5f9e334845
Fix regexp renaming srid enforcement check
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9174 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 17:47:34 +00:00
Sandro Santilli
13839e6dfb
Move SRID max and user-max definitions to configure.ac
...
This should help keeping postgis_restore.pl and core in sync
wrt SRID ranges.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9167 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 14:48:17 +00:00
Sandro Santilli
0d992710ce
Refine user feedback about SRID conversion and reserved zones
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9166 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 14:17:24 +00:00
Sandro Santilli
7ae7a609b2
Do not override postgis_svn_revision.h if revision didn't change
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9159 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 09:58:13 +00:00
Sandro Santilli
2492588faf
Add support for fetching SVN revision from local git-svn repository
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9158 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-13 09:15:23 +00:00
Sandro Santilli
46661069d3
It's "svn", not "svnn". And a TODO item...
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9157 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-11 21:17:12 +00:00
Paul Ramsey
7d7ee7ac97
Report SVN revision in PostGIS_Full_Version ( #1518 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9155 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-11 05:14:39 +00:00
Paul Ramsey
c8cd388daf
Back out SVN generation stuff.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9151 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-10 20:21:51 +00:00
Paul Ramsey
73104a1d76
Try to fail better on SVN snatching...
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9150 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-10 19:55:36 +00:00
Sandro Santilli
16e500b650
Clamp SRID valuesu > SRID_MAXIMUM to fall in the reserved range ( #1505 )
...
The reserved range is SRID_USER_MAXIMUM+1 to SRID_MAXIMUM.
Core takes care of typmod clamping, postgis_restore.pl takes care
of clamping table definition and spatial_ref_sys entries.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9145 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-10 16:53:15 +00:00
Paul Ramsey
4d331005f7
Change from scripts-based script versions to repository based versions. Should also be more robust? ha ha ha. ( #1282 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9123 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 23:01:34 +00:00
Paul Ramsey
cac26025c5
Make the scripts version get read again.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9122 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 22:44:14 +00:00
Paul Ramsey
09578d2580
Handle French svn?
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@9110 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-08 19:09:39 +00:00
Paul Ramsey
1de0d3d8ae
Force generation of an svnrevision.h file when building in a repo and the svn executable is available.
...
Ensure that when building a tarball with make_dist.sh the revision is read from the tag in the remote svn repository.
This should cover both development and distribution cases.
git-svn-id: http://svn.osgeo.org/postgis/trunk@9079 b70326c6-7e19-0410-871a-916f4a2858ee
2012-02-07 23:27:57 +00:00
Sandro Santilli
d90f670d6d
Add all signature in the current repository
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8798 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 13:31:43 +00:00
Sandro Santilli
a040e6bc06
Add more signatures found in a more recent dump of mine
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8797 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 11:34:27 +00:00
Sandro Santilli
931c6fec94
Make verbose output of postgis_restore.pl more useful for maintainance
...
It will now avoid to collapse all spaces to keep the door open for
better parsing in the future and to be more human readable.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8796 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-13 11:29:47 +00:00
Sandro Santilli
7cc0eff83f
Add rules on geometry_columns view to tolerate insert/update/delete
...
Fixes OGR, see #1426 . Raises no warning on operation (it should).
This commit includes changes in postgis_proc_upgrade.pl to retain rules.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8749 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-10 18:12:27 +00:00
Paul Ramsey
1872f5ea73
Reorganize SQL definitions a bit: type creation at the start, indexes and operators after, then other stuff. Probably further ordering would be C-stuff before PL/PgSQL stuff.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8658 b70326c6-7e19-0410-871a-916f4a2858ee
2012-01-03 20:31:15 +00:00
Sandro Santilli
92739b6877
Add support for dropping DOMAINs in create_undef.pl ( #1407 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8561 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 11:21:50 +00:00
Sandro Santilli
92dc2c8858
Allow fully-qualified basetype name for aggregates
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8559 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 11:21:41 +00:00
Sandro Santilli
7eb713ddfa
Drop tables in reverse order, reducing probability of fkey troubles
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8558 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 11:21:35 +00:00
Sandro Santilli
00170db577
Add support for objects schema definition in create_undef.pl
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8554 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 10:34:42 +00:00
Sandro Santilli
c254f8fef1
Enhance DEFAULT specification stripper
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8541 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 09:57:52 +00:00
Bborie Park
98a4c8b0d8
Additional work to remove DROP FUNCTION statements depending upon prior DROP TYPE ... CASCADE statements that generate ERRORs
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8538 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-24 02:51:02 +00:00
Sandro Santilli
fbca1530f2
support multiline function signatures at the parsing stage too...
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8535 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-23 17:33:13 +00:00
Sandro Santilli
3c14cee4a8
Add support for multiline function signatures
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8534 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-23 17:30:20 +00:00
Sandro Santilli
f8908a4371
Write header in the files generated by create_undef.pl
...
Header includes license, creation timestamp and input filename
git-svn-id: http://svn.osgeo.org/postgis/trunk@8532 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-23 16:49:59 +00:00
Bborie Park
1206a84c2c
Fixed for better path handling
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8529 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-23 16:22:34 +00:00
Sandro Santilli
d2ad716527
Fix create_undef.pl script to generate correct uninstall script
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8522 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-23 16:14:28 +00:00
Bborie Park
1c0a0987b8
Added uninstall_script to facilitate generation of uninstall_postgis.sql and uninstall_rtpostgis.sql. It could still use additional validation and cleaning up of the output uninstall sql files.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8521 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-23 16:04:53 +00:00
Sandro Santilli
5e801e7ebf
Add comments in current version, including topo and raster [ #1390 ]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8478 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-20 16:01:27 +00:00
Sandro Santilli
8617d4a676
Add comments from pgis-1.4 [ #1390 ]
...
Also handle pg_restore errors more cleanly
git-svn-id: http://svn.osgeo.org/postgis/trunk@8477 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-20 15:43:08 +00:00
Sandro Santilli
225ecaeeb6
Add more objects from a 1.5 install, including comments [ #1390 ]
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8476 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-20 15:18:03 +00:00
Sandro Santilli
2a9a7f2b55
Report testing of pg-8.4.9/pgis-2.0.0SVN => pg-9.1.2/pgis-2.0.0SVN
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8470 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-19 16:19:01 +00:00
Sandro Santilli
05c8890830
Allow keeping rows in spatial_ref_sys at postgis_restore.pl time
...
After this commit the entries found in spatial_ref_sys at time
of restore are retained w/out triggering ERROR lines in logfile
or transaction aborts. Entries in dump with SRID not found in
existing spatial_ref_sys are inserted.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8468 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-19 09:07:21 +00:00
Sandro Santilli
ecbb61e6e7
Fix SRIDs in topology.topology after restore.
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8467 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-19 08:18:53 +00:00
Sandro Santilli
96cd6c3c7d
Document darkblue test: pg-9.1b3/pgis-1.5 to pg-9.1.1/pgis-2.0.0SVN
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8456 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-18 23:02:56 +00:00
Sandro Santilli
34e8b4a2f5
Do restore spatial_ref_sys from dump, temporarly disabling srid check
...
Assuming you don't source spatial_ref_sys.sql prior to run
postgis_restore.pl you would always end up with all your data
in the table and if no SRIDS are out of the valid range you'd
also have the constraint in place.
git-svn-id: http://svn.osgeo.org/postgis/trunk@8447 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-16 17:20:17 +00:00
Sandro Santilli
0374717668
Add more signatures to skip on restore (raster)
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8446 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-16 16:39:19 +00:00
Sandro Santilli
142a5bb70f
Add more skip signatures, from interim builds
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8405 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 13:31:00 +00:00
Sandro Santilli
8f1bab3976
Add -v switch to postgis_restore.pl, tweak usage and debug output
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8401 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-14 07:59:43 +00:00
Sandro Santilli
ad5be432f8
Disable triggers on the topology.layer table during restore, to allow population in random order ( #1371 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8397 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-13 23:29:33 +00:00
Sandro Santilli
bb40cc0d8e
Drop the old postgis_restore.pl and substitute it with the new one
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8387 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-13 16:37:47 +00:00
Sandro Santilli
8b5af03c83
Strictness fixes, internal docs
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8385 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-13 16:33:50 +00:00
Sandro Santilli
7c12e01d59
Always output create ore replace view in upgrade scripts ( #1097 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8380 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-13 10:38:19 +00:00
Sandro Santilli
91a9f373bf
Allow function definitions to end with '$$ LANGUAGE' ( #1365 )
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8379 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-13 09:59:10 +00:00
Sandro Santilli
43e96e3168
Use warnings
...
git-svn-id: http://svn.osgeo.org/postgis/trunk@8378 b70326c6-7e19-0410-871a-916f4a2858ee
2011-12-13 09:59:01 +00:00