aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gist.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-06-09 13:05:41 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2017-06-09 13:05:41 +0300
commit76b11e8a43eca4612dfccfe7f3ebd293fb8a46ec (patch)
tree0690fc601e6425c6bbd96dda5f871511b4fc7e08 /src/backend/access/gist/gist.c
parent67d370e619897ace44285b1fe10fd788119242ac (diff)
downloadpostgresql-76b11e8a43eca4612dfccfe7f3ebd293fb8a46ec.tar.gz
postgresql-76b11e8a43eca4612dfccfe7f3ebd293fb8a46ec.zip
Give a better error message on invalid hostaddr option.
If you accidentally pass a host name in the hostaddr option, e.g. hostaddr=localhost, you get an error like: psql: could not translate host name "localhost" to address: Name or service not known That's a bit confusing, because it implies that we tried to look up "localhost" in DNS, but it failed. To make it more clear that we tried to parse "localhost" as a numeric network address, change the message to: psql: could not parse network address "localhost": Name or service not known Discussion: https://www.postgresql.org/message-id/10badbc6-4d5a-a769-623a-f7ada43e14dd@iki.fi
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions