Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j7nPQ-000528-Mk for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Feb 2020 21:43:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7nPN-0006GQ-GH for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Feb 2020 21:42:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j7nLR-0005Od-SK for pgsql-hackers@lists.postgresql.org; Fri, 28 Feb 2020 21:38:54 +0000 Received: from mail-yw1-xc43.google.com ([2607:f8b0:4864:20::c43]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j7nLO-0007nK-F7 for pgsql-hackers@postgresql.org; Fri, 28 Feb 2020 21:38:52 +0000 Received: by mail-yw1-xc43.google.com with SMTP id y72so4805263ywg.3 for ; Fri, 28 Feb 2020 13:38:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=n2jzrSsNpxwUpQYsHN9fR3ngv1/dR9oy56zQZBogsWI=; b=eO4w2JME7/+b5ROLMwkvqyU0UzmV0j8dnJPSVEiHG6bvSTLBawt9xP/N2B/kvMnfAN P9+z5xXw25mM4Xx3geBrzNSHqsLym8kS9L0JRNkSvfaoFwQ3ZOfF0q2w7Mq4fPECtc2o 95w9vGhBF9/v8FU+qY+owKvEnNiv2Im7Pm/H/zTk8BatZazlxjJiCI58wDj3wSaskVtW NY0+j9PHuLHwqMHd197xlpVInfW0IsllBDqa3wQLkqWt9IcWJs+QhttNNDKSgHV6Yijf JOKJXe38sI4/beOs4jDWN5X3PsDx8cV+oVpi7Cb7gMOI/BVFUCRmk6f1UhgcVq3MR4Ni XALg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=n2jzrSsNpxwUpQYsHN9fR3ngv1/dR9oy56zQZBogsWI=; b=pZ0VgNmXxTP/IeKcw4CeJXl7JN3pvKZyrat6KzwBgMK4yzfbYjSWbto1zhZUa0StvU xMTkbfUZIGMQrpPxprFDN5mKRnaNJZ+9ogKEryD99lVv2tOWhP7KLdgdraIC+4N5s1vR 4hawd0YCMk7ICn1T5JRCyEqASvyyhtnITGTr7sf+DsgFvdvxzIHcYSYuOycVvr3c05kF dx3XWRjL8ZoDQKjkEg+30a//HwPWsTLtaeH6sQf4avpMIJvROWzydR1JwctLuz6/nLiB Rum/KQv+FCTqFcLMYuYH/kkP3iYwWfcrI6PPg/FwpHkQbW9qurwCBBOw8y/2fYJEHQWj GMnw== X-Gm-Message-State: APjAAAXrwdbc4gY1r9h1cN31a+uWll9NeHgMdTkjLNeusE07I4IC9GsL oFKt3Hgs5VD/GuE7vbM53fnRpA== X-Google-Smtp-Source: APXvYqx7JOXI87RlM1tTOP9oKQ8RXsoQs6o+5umIJ3u5b1dVVoOeDXh44q5d/ygdOfXFjlh5bTTjRQ== X-Received: by 2002:a81:7994:: with SMTP id u142mr6481485ywc.419.1582925930047; Fri, 28 Feb 2020 13:38:50 -0800 (PST) Received: from nimloth.alvh.no-ip.org ([199.116.115.139]) by smtp.gmail.com with ESMTPSA id o13sm2656059ywl.9.2020.02.28.13.38.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2020 13:38:47 -0800 (PST) Received: by nimloth.alvh.no-ip.org (Postfix, from userid 1000) id 4961A300966; Fri, 28 Feb 2020 15:44:11 -0300 (-03) Date: Fri, 28 Feb 2020 15:44:11 -0300 From: Alvaro Herrera To: Tom Lane Cc: Peter Eisentraut , pgsql-hackers Subject: Re: HAVE_WORKING_LINK still needed? Message-ID: <20200228184411.GA2963@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <17964.1582908905@sss.pgh.pa.us> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-Feb-28, Tom Lane wrote: > Also +1 for s/durable_link_or_rename/durable_link/. Actually, it's not *that* either, because what the function does is link followed by unlink. So it's more a variation of durable_rename with slightly different semantics -- the difference is what happens if a file with the target name already exists. Maybe call it durable_rename_no_overwrite. There's a lot of commonality between the two. Perhaps it's not entirely silly to merge both as a single routine, with a flag to select either behavior. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services