Opened 2 years ago

Closed 2 years ago

#6034 closed defect (fixed)

ogr2ogr PG driver problem

Reported by: zanollim Owned by: warmerdam
Priority: normal Milestone: 2.0.1
Component: OGR_SF Version: 2.0.0
Severity: normal Keywords:
Cc:

Description

In GDAL 2.0.0, if you take a simple layer (or csv file) and then:

ogr2ogr \
  -f PostgreSQL \
  "PG:db=mydb schemas=myschema" \
  mylayer \
  -nln mylayer

The layer is successfully imported in the DB and in the right schema, but with an error message:

ERROR 1: PQconnectdb failed: invalid connection option "schemas"
ERROR 1: Couldn't establish a database connection

If you use the -overwrite or -update option, non errors are printed.

Change History (1)

comment:1 Changed 2 years ago by Even Rouault

Milestone: 2.0.1
Resolution: fixed
Status: newclosed

trunk r29530, branches/2.0 r29531 "PostgisRaster?: avoid Identify() to recognize OGR PostgreSQL connection strings with schemas option and cause loud 'QuietDelete?' (#6034)"

Note: See TracTickets for help on using tickets.