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

`pg_config --version` =~ /^.*?(\d+)\.(\d+)\.(\d+).*?$/;
print "-D PGSQL_HAS_ESCAPECONN" if(hex(sprintf("0x%02x%02x%02x", $1, $2, $3)) >= 0x080104);