Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zbwgk-0006z5-Eg for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Sep 2015 20:18:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zbwgj-0005og-Jk for pgsql-bugs@arkaria.postgresql.org; Tue, 15 Sep 2015 20:18:49 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zbwg7-00058D-2m for pgsql-bugs@postgresql.org; Tue, 15 Sep 2015 20:18:12 +0000 Received: from mail-qg0-x22d.google.com ([2607:f8b0:400d:c04::22d]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1Zbwg4-000203-8S for pgsql-bugs@postgresql.org; Tue, 15 Sep 2015 20:18:10 +0000 Received: by qgt47 with SMTP id 47so153673088qgt.2 for ; Tue, 15 Sep 2015 13:18:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=3oS0gaQoCLf7SbyRHo4I1EAsmDqiOVX03JVaUcRnIqo=; b=RhwBPHkuc8hTNXH+Ut6x2xSjaVEEngBtT7MJ1Czf42JAGpdlIuEFT+pzCDSkqjQJ8f h4O0kQ7J700InEzn5jpxeZ8UQJGYolZjVHslWFD+Bv2gmk9PxMhAohLnyXKXcfSZXGfy +sunmvfw/fFRuKiw5dhOt/Ayw1WOhXdlT0N7ngLoLXxIDcNVjw9lqx78U5N5PXH2Rp2s D05IS4RRMt07u0TSF/ZnFHNn+37IYkjuZsrFgP6WFreSOVYyyldL0IfgO3sYxIOVdjvt vK3UiaJN7Aq9KFAluy+63Nlnu16SWfzz1QeUN+s4Ui50mXmBUgD8xaJT/C3367Qo1ti5 cBmg== MIME-Version: 1.0 X-Received: by 10.140.194.8 with SMTP id p8mr24135114qha.63.1442348285844; Tue, 15 Sep 2015 13:18:05 -0700 (PDT) Received: by 10.140.23.74 with HTTP; Tue, 15 Sep 2015 13:18:05 -0700 (PDT) In-Reply-To: <20150915104236.2674.33056@wrigleys.postgresql.org> References: <20150915104236.2674.33056@wrigleys.postgresql.org> Date: Tue, 15 Sep 2015 13:18:05 -0700 Message-ID: Subject: Re: BUG #13620: Streaming replication process titles should use zero padding for TX ids. From: Michael Paquier To: juergen+postgresql@strobel.info Cc: PostgreSQL mailing lists Content-Type: text/plain; charset=UTF-8 X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On Tue, Sep 15, 2015 at 3:42 AM, wrote: > >From the last 2 lines I would guess at first glance that those processes are > streaming segment "78" at the moment, while they really are at segment "07". > It should be trivial to zero-pad this id. If you can run ps as an OS user, surely you can query the master instance for the same information, like that for example: =# SELECT pg_current_xlog_location(), pg_xlogfile_name(pg_current_xlog_location()); pg_current_xlog_location | pg_xlogfile_name --------------------------+-------------------------- 0/3000888 | 000000010000000000000003 (1 row) =# SELECT write_location, pg_xlogfile_name(write_location) FROM pg_stat_replication; write_location | pg_xlogfile_name ----------------+-------------------------- 0/3000888 | 000000010000000000000003 (1 row) (ps displays the write location for WAL receiver processes) Note that this is not a bug, this question is more adapted to pgsql-general for example. -- Michael -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs