summaryrefslogtreecommitdiff
path: root/src/modules/extra/pgsql_config.pl
blob: bc91fa24de7e56a2cd2bc660e5373984b6577171 (plain)
1
2
3
4
5
6
#!/usr/bin/perl

my $v = substr(`pg_config --version`, 11);
my($a, $b, $c) = split(/\./, $v);

print "-D PGSQL_HAS_ESCAPECONN" if(hex(sprintf("%02x", $a) . sprintf("%02x", $b) . sprintf("%02x", $c)) >= 0x080104);