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 1niH4f-0008SP-Bv for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Apr 2022 14:49:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1niH4c-0001Pd-C6 for pgsql-hackers@arkaria.postgresql.org; Sat, 23 Apr 2022 14:49:22 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1niH4b-0001PT-Oh for pgsql-hackers@lists.postgresql.org; Sat, 23 Apr 2022 14:49:21 +0000 Received: from mail-vk1-xa36.google.com ([2607:f8b0:4864:20::a36]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1niH4V-0000ye-FF for pgsql-hackers@postgresql.org; Sat, 23 Apr 2022 14:49:20 +0000 Received: by mail-vk1-xa36.google.com with SMTP id b81so5170874vkf.1 for ; Sat, 23 Apr 2022 07:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=MghdsqWYIVuFGPKcfhNponoc6Te1MMo3vTkd/fJFEvQ=; b=obQJQZxLLELvnHhsEBn+BmZosuh95TbstlpaT6bwXhAdz1fDu5McpvqY4qb3eL6h21 Ct6PcQcVs/w+j4CPRUDeEJ/3i+2GJHnb5LBBgxMeuV3RXdcnGS/dhZJrQEbjOytVmylK DSb8By7/i/xuL9t9kL7fdLh0YVHeyRlf/nTWpiD90voY6hT/YJ8XRlykE2a24AdZMm+/ jQVlG30CDCvWJUIWI/knxxoaCfF15fUAfCla21unIcYD4Z5EDvZ90+aoZwuEYEr/r2by jdJU1I3dcUNyyho9dPj1STo42grIhn5tiTX3IHDTosmLV807hs/Z3pnAXzJS++BVIlzn HxBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=MghdsqWYIVuFGPKcfhNponoc6Te1MMo3vTkd/fJFEvQ=; b=2SPm5Nh44Pa6BWs6e5c97CPUd9L4ynPS5ve6Dxgh0CHNQ1XSPkJWgKbE9cykt26CaD 7i5tD/HEeOR5M2qZxiFJTZ/EwoSMhLMpGLNW68gBIjpArvWTR6MGOd8EO39TFFgjDdYo pZpMVI8wUiOgHFGly8TfGGTKHCDiP7ZataPrJrD7DnWLysoKyfg+yke33tt2IAUmwv5t N1eJkRDtyhESwNRAkVwMzyHcZln6Kytac6OXRmw8ma6UvEd3+QbfAP7pVrJmPbb7VCG3 QgsGqSV/+EhTHRD6G1IulmsHwSJsm8Qlob8h4yNHX7tCxgPtgRphD9kf/JxKAva1GxNl j5dg== X-Gm-Message-State: AOAM5316OKadslWK+fP+/KQR6SjkfbmbJoCJQsMSlyMrV2hsjHlrQcLZ ThE5FLNBS+x5P9FEk9WSpyMdvIsas6GsuHKaJL4= X-Google-Smtp-Source: ABdhPJxhfYg0WEoVzmR7Cp02gWCQPQuDK2UZCMmEn6TvYn+nl4BuL0vsaxAz8NCfSaQzOlZluOx4zf8mvbn0Dp7gt7U= X-Received: by 2002:a1f:b658:0:b0:33e:f2db:a41e with SMTP id g85-20020a1fb658000000b0033ef2dba41emr3114615vkf.15.1650725354358; Sat, 23 Apr 2022 07:49:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Matthias van de Meent Date: Sat, 23 Apr 2022 16:49:03 +0200 Message-ID: Subject: Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL To: David Christensen Cc: PostgreSQL-development Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, 23 Apr 2022 at 00:51, David Christensen wrote: > > Hi -hackers, > > Enclosed is a patch to allow extraction/saving of FPI from the WAL > stream via pg_waldump. > > Description from the commit: > > Extracts full-page images from the WAL stream into a target directory, > which must be empty or not > exist. These images are subject to the same filtering rules as normal > display in pg_waldump, which > means that you can isolate the full page writes to a target relation, > among other things. > > Files are saved with the filename: .... with > formatting to make things Regardless of my (lack of) opinion on the inclusion of this patch in PG (I did not significantly review this patch); I noticed that you do not yet identify the 'fork' of the FPI in the file name. A lack of fork identifier in the exported file names would make debugging much more difficult due to the relatively difficult to identify data contained in !main forks, so I think this oversight should be fixed, be it through `_forkname` postfix like normal fork segments, or be it through `.` numerical in- or postfix in the filename. -Matthias