I don't think extconf is parsing pg_config properly
I don't think extconf is parsing pg_config properly