Drupal 6.17, PostgreSQL 8.4, PHP 5.2 on Linux.

Using an IPv6 address in default/settings.php to connect to a PostgreSQL database like this:

$db_url = 'pgsql://user:password@[::1]/pgdatabase';

does not seem to work, Drupal cannot connect to the database

Apparently pg_connect does not like the brackets [ ]
A quick'n'dirty patch trimming the brackets in includes/database.pgsql.inc does the trick.

Comments

Status: Needs review » Needs work

The last submitted patch, pgsql-ipv6-ipnr.patch, failed testing.

BartHanssens’s picture

Version: 6.17 » 6.19
Status: Needs work » Needs review
StatusFileSize
new733 bytes

Using CVS this time...

Status: Needs review » Needs work
Issue tags: -PostgreSQL, -ipv6

The last submitted patch, pgsql-ipv6-ipnr-20100814.patch, failed testing.

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 6 is no longer supported. If the issue verifiably applies to later versions, please reopen with details and update the version.