Re: Walsender doesn't process options passed in the startup packet
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
From: Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
To: Fujii Masao <masao.fujii@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-09-10T10:54:54Z
Lists: pgsql-hackers
On 10/09/10 13:17, Fujii Masao wrote: > Hi, > > I found walsender didn't process options (e.g., application_name > in primary_conninfo) passed in the startup packet. The cause is > that walsender doesn't execute process_postgres_switches() and > SetConfigOption() in InitPostgres(). > > The attached patch fixes this bug. Hmm, should walsender call InitializeClientEncoding too? It affects error messages. And what about per-user settings in pg_db_role_setting? -- Heikki Linnakangas EnterpriseDB http://www.enterprisedb.com