Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojKQj-0007K7-Ib for pgsql-general@arkaria.postgresql.org; Fri, 14 Oct 2022 13:08:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ojKQi-0000M6-B6 for pgsql-general@arkaria.postgresql.org; Fri, 14 Oct 2022 13:08:48 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojKQi-0000Lr-1B for pgsql-general@lists.postgresql.org; Fri, 14 Oct 2022 13:08:48 +0000 Received: from smtp.burggraben.net ([88.198.69.140]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ojKQf-0005BD-CX for pgsql-general@postgresql.org; Fri, 14 Oct 2022 13:08:47 +0000 Received: from squirrel.exwg.net (squirrel.exwg.net [IPv6:2001:470:7120:2:4685:ff:fec5:1bdd]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "squirrel.exwg.net", Issuer "R3" (not verified)) by smtp.burggraben.net (Postfix) with ESMTPS id D8FE9C00316; Fri, 14 Oct 2022 15:08:43 +0200 (CEST) Received: by squirrel.exwg.net (Postfix, from userid 1000) id 7B1A8215D5; Fri, 14 Oct 2022 15:08:43 +0200 (CEST) Date: Fri, 14 Oct 2022 15:08:43 +0200 From: Christoph Moench-Tegeder To: milist ujang Cc: pgsql-general@postgresql.org Subject: Re: does postgres has snapshot standby feature? Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.0.5 (2021-01-21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ## milist ujang (ujang.milist@gmail.com): > read about removing standby.signal file behavior in pg14 from > https://dbaclass.com/article/how-to-open-postgres-standby-database-for-read-writesnapshot-standby/ That article is fractally wrong, and that starts right in the first sentence. See https://www.postgresql.org/docs/15/functions-info.html#FUNCTIONS-PG-SNAPSHOT (not getting into detail discussions, but still). Anyhow, the article does not discuss requirements and limitations of pg_rewind, and promotes unsafe practices. After reading this article, I'd be more than careful with anything else published by that source. > I was shocked about the hidden feature of snapshot standby, does it really > exist? It's not an official feature. There's a limited amount of thing you can get away with when breaking and rewinding replication, but the guarantees on those are rather weak. Regards, Christoph -- Spare Space.