Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zfixy-0007hH-2n for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Sep 2015 06:28:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zfixx-0000Bi-6X for pgsql-bugs@arkaria.postgresql.org; Sat, 26 Sep 2015 06:28:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zfixv-0000BD-A5 for pgsql-bugs@postgresql.org; Sat, 26 Sep 2015 06:28:11 +0000 Received: from mout.gmx.com ([74.208.4.201]) by magus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.84) (envelope-from ) id 1Zfixi-0007pF-Ty for pgsql-bugs@postgresql.org; Sat, 26 Sep 2015 06:28:09 +0000 Received: from anaphora.localdomain ([5.102.218.194]) by mail.gmx.com (mrgmxus001) with ESMTPSA (Nemesis) id 0MF4Rh-1Zumqg3bBL-00GFPc; Sat, 26 Sep 2015 08:27:54 +0200 Subject: Re: BUG #13642: no backup_label file in PG_DATA after pg_stop_backup(); To: Jeff Janes References: <20150926031617.3022.6412@wrigleys.postgresql.org> Cc: Pg Bugs From: Amir Rohan X-Enigmail-Draft-Status: N1110 Message-ID: <56063AE6.9060407@mail.com> Date: Sat, 26 Sep 2015 09:27:50 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:7qv5PcUFSHpP6qtCDiyJKyTh8Hki5mdOxlvIO+PSpQRSySrkh39 7CGLXma+oCNbXN60NidOGBguYHChJKMtVbjanb4gEWYzgZQY5tpAETd9Gxm3erhdrVY2qmk ApqRPQTCstc2nME44Zqr1O1u/eLrhpfYj3+rV//774FubYBCtk+AESZvtO3LVi5duNt7hKM cd2ZdToq1b/BkWIczqQ5A== X-UI-Out-Filterresults: notjunk:1;V01:K0:oXDUnxOPbSU=:ZrsrgCkwR/KOjkE2H+33Mv od6JqA5BB8e06Ga3LGLqOVwG6lh8iNUD9rIYXNH7iKxwsAOVrA7eJytY8niyEn/x9AvocxT1N LUUR259U/k4A/7Y09cFDW9NSDdKNjYQMEgcCRqJyquwnAnpi3YfSLr6SWciSpghJUr41pKG1v DXcUmCLVuHeBB69iz47KUN5zMiizgEk6FKeHcbGfOC7/pZCu2ys08PXZjFTfxdE4mpA2cghWj woGveSiOXzmJ6dDdt4HjFO0DL59c2vnGggenUb/bbt/uQ6TZfrrRE9MtjNm6rG3jrLYkQZ1SX FHgLsTkFIjL5VBBZv2EdZUsNYMO4+u+Pt8opzwfV29nUs0s2XL5WwmmVVRcjSRkwoBvK3HNTM CsKJ4TTJ3YHCiYjx+922uBSEOwUyx6MEqPSgjchuYb9FNcZA2NMyGjwpP/tKbRkn5Qangh1Ht ecAlWTlntl/9aiauh4DQlRuaodbLGw2jpqStZc5SOoQ/rJi5yITAD2zQFwgYURFbjKP013XIe QnbpG7M1+zsoIm29r8D6sgON+746y/ZZrk1lDaUuCp/+LLqH9PDBFwpUsOuveQflBPOiQd30+ 75s2A8XrDiNOOMujgmNR/iuE2g5AS1uuWYmHi+wtn1TFBlWsNbfOOD5xaMc1PyoQJf/3DeDHc mZHJXMQ+J6+h2Glws814T3citSWUKAS5DfmTImp367TNRe2vc39jEkaYcrC/o8IBNQdnDiybG /UnpMYz3yQ0ac72vxxfMu9i46uS3Ir0lcF1fmg== X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 09/26/2015 06:30 AM, Jeff Janes wrote: > On Fri, Sep 25, 2015 at 8:16 PM, > wrote: > > Doesn't create the `backup_label` described in the docs (I'm assuming > "cluster directory" means data directory, e.g. $PGDATA): > http://www.postgresql.org/docs/current/static/continuous-archiving.html > > > > Is backup_label present in your *backup*? That is where it is needed. > It is not needed in $PGDATA itself. It is created in $PGDATA simply so > that a copy of it gets included in your backup. > > Cheers, > > Jeff No. Well, there's a backup file in the archive directory that looks like it might be /it/ but it's not named `backup_label` (it wouldn't, since multiple backups need to coexist). As mentioned earlier, in the backup procedure docs: | pg_start_backup creates a backup label file, called backup_label, in | the cluster directory with information about your backup, including | the start time and label string. The file is critical to the | integrity of the backup, should you need to restore from it. About 8 paragraphs below (where only the brave have stamina to keep reading): | It's also worth noting that the pg_start_backup function makes a file | named backup_label in the database cluster directory, which is | removed by pg_stop_backup [Ok, I missed that]. This file will | of course be archived as a part of your backup dump file <...> But: - There's no single "backup dump file" that the file is "part of" (creating a .tgz isn't part of the workflow described). It's just a sequence of one or more WAL files. - It doesn't mentioned that the file gets renamed. The section previous (on using pg_basebackup not sql commands) talks about something different called a "backup history file", I guess a "backup_label" becomes one, one PG knows what xlog the backup ends at. This isn't great documentation. I'll send a patch to pgsql-docs with suggested improvements. Thanks for the help, Amir -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs