inconsistent application_name use in logical workers

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: Petr Jelinek <petr(dot)jelinek(at)2ndquadrant(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: inconsistent application_name use in logical workers
Date: 2017-06-06 02:19:34
Message-ID: 5c1e4eea-0b77-5d95-2d57-f23639f8c02c@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

The logical replication code is supposed to use the subscription name as
the fallback_application_name, but in some cases it uses the slot name,
which could be different. See attached patch to correct this.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-Consistently-use-subscription-name-as-application-na.patch text/plain 1.6 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andres Freund 2017-06-06 02:28:02 Re: logical replication and PANIC during shutdown checkpoint in publisher
Previous Message Amit Kapila 2017-06-06 02:10:34 Re: retry shm attach for windows (WAS: Re: OK, so culicidae is *still* broken)