mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-24 00:52:40 +00:00
Added (commented) aggregates handling
git-svn-id: http://svn.osgeo.org/postgis/trunk@1759 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
e82101801d
commit
2a532cf632
|
@ -53,6 +53,27 @@ while(<INPUT>)
|
|||
last if m/^\s*LANGUAGE '/;
|
||||
}
|
||||
}
|
||||
|
||||
# # This code handles aggregates by dropping and recreating them.
|
||||
# # The DROP would fail on aggregates as they would not exist
|
||||
# # in old postgis installations, thus we avoid this until we
|
||||
# # find a better strategy.
|
||||
#
|
||||
# if (m/^create aggregate (.*) *\(/i)
|
||||
# {
|
||||
# my $aggname = $1;
|
||||
# my $basetype = 'unknown';
|
||||
# my $def = $_;
|
||||
# while(<INPUT>)
|
||||
# {
|
||||
# $def .= $_;
|
||||
# $basetype = $1 if (m/basetype *= *([^,]*) *,/);
|
||||
# last if m/\);/;
|
||||
# }
|
||||
# print "DROP AGGREGATE $aggname($basetype);\n";
|
||||
# print "$def";
|
||||
# }
|
||||
|
||||
}
|
||||
|
||||
close( INPUT );
|
||||
|
|
Loading…
Reference in a new issue