pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: movead.li@highgo.ca <movead.li@highgo.ca>
To: Andres Freund <andres@anarazel.de>
To: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: Re: Re: BUG #15929: logical decoding can not write down the analyse result when the output file is touched.
Date: Wed, 16 Oct 2019 14:57:33 +0800
Message-ID: <2019101614573142796519@highgo.ca> (raw)
References: <15929-ee2973046b882ad0@postgresql.org>
	<20190927213546.njzvegpdkgcxeka4@alap3.anarazel.de>


 
>I don't see a bug here. It's completely normal for a tool that writes to
>a file to continue writing into the file it started to write to. The
>reason that vi breaks that is presumably just that it renames the
>"edited" version into the place of the file that pg_recvlogical is still
>writing to.

It is the issue that the target file is changed but the 'pg_recvlogical'
process doesn't know it at all. So it streams all wal changes but writes 
down nothing at last.

So I think we can recreate or reopen the changed file when there be
something wrong with the target file. And we can choose to kill the 
'pg_recvlogical' process because it's no use at all now, or we should
give a warning to users at lease.

---
Highgo Software (Canada/China/Pakistan) 
URL : www.highgo.ca 
EMAIL: mailto:movead(dot)li(at)highgo(dot)ca


view thread (4+ messages)

Message-ID: <2019101614573142796519@highgo.ca>
Permalink:  ../2019101614573142796519@highgo.ca/
Also on:    postgresql.org/message-id/2019101614573142796519@highgo.ca

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: movead.li@highgo.ca, andres@anarazel.de
  Subject: Re: BUG #15929: logical decoding can not write down the analyse result when the output file is touched.
  In-Reply-To: <2019101614573142796519@highgo.ca>
  References: <15929-ee2973046b882ad0@postgresql.org> <20190927213546.njzvegpdkgcxeka4@alap3.anarazel.de> <2019101614573142796519@highgo.ca>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox