[GRASS-dev] db.login with postgresql and non standard port
Moritz Lennert
mlennert at club.worldonline.be
Thu Mar 10 00:01:02 PST 2016
On 09/03/16 19:54, Martin Landa wrote:
> Hi,
>
> 2016-03-09 17:14 GMT+01:00 Moritz Lennert <mlennert at club.worldonline.be>:
>>> db.connect driver=pg database=grassdata
>>> db.login user=lucadelu port=5433 host=localhost
>>
>>
>> I would expect the port parameter to be set in db.connect, not in db.login.
>
> connection details (user/password/port/hostname) are part of db.login,
> not db.connect (>= 7.1.)
>
>> Have you tried that ? See "PostgreSQL with different port" in the db.connect
>> manual.
>
> Not valid for 7.1. Martin
Oh, yes, I see. Thanks for the clarification. I must have missed that
change. What was the reasoning behind this change ? Is this in the idea
that one might want to move a database to another host and/or port, but
not change the mapset and vector map connection settings ? Or something
else ?
Moritz
More information about the grass-dev
mailing list