I use
linux centos 7, GDAL 2.2.1, released 2017/06/23
After performing the following steps, an error occurred in the ogr2ogr line.
```
su - postgres
initdb --locale=en_US.UTF-8 -E UTF8 -D /var/lib/postgres/data
pg_ctl -D /var/lib/postgres/data -l /varlib/postgres/logfile start
createuser -U postgres docker
createdb -U postgres -E UTF8 -O docker gis
psql -U postgres -d gis -c "create extension postgis"
psql -U postgres -d gis -c "create extension postgis_topology"
pg_restore -U postgres -d gis gis.backup
psql -U postgres -c "\password docker"
ogr2ogr -f GPKG ./taiwan.gpkg PG:dbname=gis
```
The error message is Unable to open datasource error, how to solve it.
According to official documents, the driver that reads PostgreSQL is called "PostgreSQL", which does not appear to be in the list.
Do you want to upgrade GDAL? Or is there another way to deal with it?
```
-bash-4.2$ ogr2ogr -f GPKG ./taiwan.gpkg PG:"dbname=gis"
FAILURE:
Unable to open datasource `PG:dbname=gis' with the following drivers.
-> `PCIDSK'
-> `PDF'
-> `ESRI Shapefile'
-> `MapInfo File'
-> `UK .NTF'
-> `OGR_SDTS'
-> `S57'
-> `DGN'
-> `OGR_VRT'
-> `REC'
-> `Memory'
-> `BNA'
-> `CSV'
-> `GML'
-> `GPX'
-> `KML'
-> `GeoJSON'
-> `OGR_GMT'
-> `GPKG'
-> `SQLite'
-> `WAsP'
-> `OpenFileGDB'
-> `XPlane'
-> `DXF'
-> `CAD'
-> `Geoconcept'
-> `GeoRSS'
-> `GPSTrackMaker'
-> `VFK'
-> `PGDUMP'
-> `OSM'
-> `GPSBabel'
-> `SUA'
-> `OpenAir'
-> `OGR_PDS'
-> `WFS'
-> `HTF'
-> `AeronavFAA'
-> `EDIGEO'
-> `GFT'
-> `SVG'
-> `CouchDB'
-> `Cloudant'
-> `Idrisi'
-> `ARCGEN'
-> `SEGUKOOA'
-> `SEGY'
-> `ODS'
-> `XLSX'
-> `ElasticSearch'
-> `Carto'
-> `AmigoCloud'
-> `SXF'
-> `Selafin'
-> `JML'
-> `PLSCENES'
-> `CSW'
-> `VDV'
-> `TIGER'
-> `AVCBin'
-> `AVCE00'
-> `HTTP'
```