Re: checking return value from unlink in write_relcache_init_file - Mailing list pgsql-hackers

From Tom Lane
Subject Re: checking return value from unlink in write_relcache_init_file
Date
Msg-id 105010.1622761015@sss.pgh.pa.us
Whole thread Raw
In response to checking return value from unlink in write_relcache_init_file  (Zhihong Yu <zyu@yugabyte.com>)
Responses Re: checking return value from unlink in write_relcache_init_file  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
Zhihong Yu <zyu@yugabyte.com> writes:
> Please comment on the proposed patch.

If the unlink fails, there's only really a problem if the subsequent
open() fails to overwrite the file --- and that stanza is perfectly
capable of complaining for itself.  So I think the code is fine and
there's no need for a separate message about the unlink.  Refusing to
proceed, as you've done here, is strictly worse than what we have.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: checking return value from unlink in write_relcache_init_file
Next
From: Tom Lane
Date:
Subject: Re: Performance degradation of REFRESH MATERIALIZED VIEW