awips2/deltaScripts/17.1.1/DR5794/openfire-postgresql-9.5.3-upgrade/_update_postgresql_conf.pl
2022-05-05 12:34:50 -05:00

20 lines
473 B
Perl
Executable file

#!/usr/bin/env perl
# Update postgresql.conf (read from stdin)
# Accompanies upgrade from PostgreSQL 9.3.x to 9.5.x
use strict;
use warnings;
while (<>) {
if (/^checkpoint_segments\s*=\s*/ ||
/^autocommit\s*=\s*/ ||
/^debug_assertions\s*=\s*/ ||
/^ssl_renegotiation_limit\s*=\s*/) {
# comment out options removed in PostgreSQL 9.5
chomp;
print "# " . $_ . " # removed in 9.5\n";
} else {
print;
}
}