RE: Have pg_basebackup write "dbname" in "primary_conninfo"? - Mailing list pgsql-hackers

From Hayato Kuroda (Fujitsu)
Subject RE: Have pg_basebackup write "dbname" in "primary_conninfo"?
Date
Msg-id TYCPR01MB1207777150173002564A753B8F5502@TYCPR01MB12077.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: Have pg_basebackup write "dbname" in "primary_conninfo"?  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: Have pg_basebackup write "dbname" in "primary_conninfo"?
List pgsql-hackers
Dear Robert,

> Seems weird to me. You don't use dbname=replication to ask for a
> replication connection, so why would we ever end up with that
> anywhere? And especially in only one of two such closely related
> cases?

Just FYI - here is an extreme case. And note that I have applied proposed patch.

When `pg_basebackup -D data_N2 -R` is used:
```
primary_conninfo = 'user=hayato ... dbname=hayato ...
```

But when `pg_basebackup -d "" -D data_N2 -R` is used:
```
primary_conninfo = 'user=hayato ... dbname=replication
```

Best Regards,
Hayato Kuroda
FUJITSU LIMITED
https://www.fujitsu.com/ 


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Replace current implementations in crypt() and gen_salt() to OpenSSL
Next
From: Peter Eisentraut
Date:
Subject: Re: Replace current implementations in crypt() and gen_salt() to OpenSSL