if ($line =~ /^create aggregate *([^ ]*) *\(/i)
{
my $name = lc($1);
+ $name =~ s/^public.//;
my $type = undef;
while( my $subline = <INPUT>)
{
print "KEEPING FUNCTION: [$id]\n" if $DEBUG;
#next;
}
- elsif ($line =~ / AGGREGATE (.*)\((.*)\)/)
+ elsif ($line =~ /CREATE .* AGGREGATE (.*)\((.*)\)/)
{
my $name = $1;
my @args = split(",", $2);
elsif ($line =~ / TYPE (.*) .*/)
{
my $type = lc($1);
+ $type =~ s/^public.//;
if ( $type eq 'wkb' )
{
print "SKIPPING PGIS TYPE $type\n" if $DEBUG;
#next;
}
- elsif ($line =~ / OPERATOR CLASS *([^ ]*)/)
+ elsif ($line =~ /CREATE .* OPERATOR CLASS *([^ ]*)/)
{
my $id = lc($1);