Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAWjC-0073dF-Ts for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Dec 2023 14:48:51 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rAWj9-004R0L-KN for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Dec 2023 14:48:47 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAWj9-004R0C-8b for pgsql-bugs@lists.postgresql.org; Tue, 05 Dec 2023 14:48:47 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAWj7-00AEdO-2U for pgsql-bugs@lists.postgresql.org; Tue, 05 Dec 2023 14:48:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description; bh=yrThBm8Nvj3XZhaKo2Ybd7fgRh6GQ16yJ6I2fB224Es=; b=R6MXE186tML9TpJwyRzLYtuDEZ yIeS8LPpX4WbCBgqLof2lC4rOXUi0ukOW64gFdnZw/Sb5whB4rv5fzRIzx7B6Gi0IJHKnyowDJO1H celdcrsTpIuz5RslHBCJ89TSCeDPYf4YBZ+GuxuSTVL1kKyfTYQ06GXeBjZt2+GqiG00=; Received: from depesz by depesz.com with local (Exim 4.96) (envelope-from ) id 1rAWj5-00AITi-0Q; Tue, 05 Dec 2023 15:48:43 +0100 Date: Tue, 5 Dec 2023 15:48:43 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: "xuzhao.zhao" Cc: hailong.li@qunar.com, pgsql-bugs@lists.postgresql.org Subject: Re: Is it possible to add support for PostgreSQL-15 and newer versions in omnipitr? Message-ID: Reply-To: depesz@depesz.com References: <04c32c47-d952-4da2-b274-b5a5ace2f007@qunar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <04c32c47-d952-4da2-b274-b5a5ace2f007@qunar.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Dec 05, 2023 at 01:10:18PM +0800, xuzhao.zhao wrote: > Hi depesz, > We currently use omnipitr-backup-slave to backup our database for PG14 and > earlier versions. However, there have been changes to the backup process in > PG15 that have rendered omnipitr-backup-slave unable to function. > Changes are as follows: > > * Functions pg_start_backup()/pg_stop_backup() have been renamed to > pg_backup_start()/pg_backup_stop() > * Remove long-deprecated exclusive backup mode. The connection calling > pg_backup_start must be maintained until the end of the backup, or > the backup will be automatically aborted. > > Is it possible for the omnipitr-backup-slave tool to execute > pg_start_backup() and keep the session open until it can also execute > pg_stop_backup() after the tarball is created? Hi, that would take some not-trivial changes, and the code isn't really maintained. I don't think the company that I developed it for even exists anymore. These days I would recommend migrating to something different like pgbackrest, for example. Best regards, depesz