Ticket #2939 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

"server" paremeter doesn't exist for GDAL 1.5.2

Reported by: yjacolin Owned by: warmerdam
Priority: normal Milestone:
Component: Docs Version: 1.5.2
Severity: normal Keywords: postgresql,server,parameter
Cc: yjacolin@…

Description

Page:  http://www.gdal.org/ogr/drv_pg.html

PG:"dbname='databasename' server='addr' port='5432' user='x' passwd='y'"

need to be:

PG:"dbname='databasename' host='addr' port='5432' user='x' passwd='y'"

At least for 1.5.2. It needs to be clear about the gdal release, May be add it in the doc?

Change History

Changed 4 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed

The example was just wrong. As indicated in the doc, this parameter is just forwarded to the PostgreSQL client library, so this is not even related to the GDAL version. I've looked in the PostgreSQL doc for various versions (PG 7.3, 7.4, 8.1, 8.3) and it seems the correct option has always been 'host'.

Fixed in r16741. Thanks.

Note: See TracTickets for help on using tickets.