- #4342, Move deprecated functions into legacy.sql file
- #4341, Using "support function" API in PgSQL 12+ to replace SQL inlining
as the mechanism for providing index support under ST_Intersects, et al
+ - #4330, postgis_restore OOM when output piped to an intermediate process
+ (Hugh Ranalli)
- #4322, Support for Proj 6+ API, bringing more accurate datum transforms
and support for WKT projections
- #4153, ST_Segmentize now splits segments proportionally (Darafei
print STDERR "Converting $dumpfile to ASCII on stdout...\n";
+STDOUT->autoflush(1);
+
######################################################################
# Load the signatures of things to skip.
#
#
elsif ( $l =~ /CREATE TABLE *([^ ,]*)/)
{
- my @sublines = ($l);
+ print STDOUT $l;
while( my $subline = <INPUT>)
{
if ( $subline =~ /CONSTRAINT "?enforce_dims_/i ) {
print STDERR "WARNING: could not find SRID value in: $subline";
}
}
- push(@sublines, $subline);
+ print STDOUT $subline;
last if $subline =~ /;[\t ]*$/;
}
- print STDOUT @sublines;
next;
}
# See http://trac.osgeo.org/postgis/ticket/2759
elsif ( $l =~ /^COMMENT ON .* IS '(.*)/)
{
- my @sublines = ($l);
- my $comment = $1;
+ print STDOUT $l;
+ while( my $subline = <INPUT>)
# A comment ends with an odd number of single quotes and a semicolon
- while( $comment !~ /('*)[\t ]*;[\t ]*$/ || length($1) % 2 == 0)
{
- $comment = <INPUT>;
- push(@sublines, $comment);
+ print STDOUT $subline;
+ last if ( $subline !~ /('*)[\t ]*;[\t ]*$/ || length($1) % 2 == 0)
}
- print STDOUT @sublines;
next;
}