Here is a fix that's working for me:

- add "(_if_exists)?" to the regex.
- set $path = $2 (previously $path = $1)

Here is the result of the change, with line numbers in PgCommon.pm:

108         } elsif (/^\s*include(_if_exists)?\s+'([^']+)'\s*$/i) {
109             my ($k, $v, $path, %include_conf);
110             $path = $2;

** Description changed:

  The read_conf_file function in PgCommon.pm (~line 108) will process
- external config files that are included with "include" but not if those
+ external config files that are included with "include" but not those
  included with "include_if_exists" (a new feature added to PostgreSQL
  9.2).
  
  Versions:
  Ubuntu 12.04.1
  PostgreSQL 9.2.2-0ppa1~precise
  postgresql-common 139~precise

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098986

Title:
  read_conf_file ignores include_if_exists in config file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/postgresql-common/+bug/1098986/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to