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 1naBxW-0007AF-Ca for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Apr 2022 07:44:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1naBxT-0002vW-9Y for pgsql-hackers@arkaria.postgresql.org; Fri, 01 Apr 2022 07:44:35 +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 1naBxS-0002vN-Ov for pgsql-hackers@lists.postgresql.org; Fri, 01 Apr 2022 07:44:35 +0000 Received: from mail-qt1-x82c.google.com ([2607:f8b0:4864:20::82c]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1naBxL-0004Q4-T3 for pgsql-hackers@postgresql.org; Fri, 01 Apr 2022 07:44:33 +0000 Received: by mail-qt1-x82c.google.com with SMTP id t19so1540057qtc.4 for ; Fri, 01 Apr 2022 00:44:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=98E5+htXWrxW4j5Bq4lw6wzcATUCNTBx5kTbNhWUqbQ=; b=HD8L324m6QOiCFIFBwzCLPkjcC/gZRLmQFuoWJ4+iCZEsXuzKLgOfKdsM7rWItfLpg KSBCPN3gtmstDjRMYWm34XI3667JmMlD2PvJWpt1w8qPip8XrwyYm6/mALQLmrtMsYKk 1ocyp0fWMoFCGwAdhDF+tkdIaXgwbt0bTPTLY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=98E5+htXWrxW4j5Bq4lw6wzcATUCNTBx5kTbNhWUqbQ=; b=tazRrgBs10XGYn1OVEVkKdRTjl+lYM8DRISPSl6wUGqU1OVZCUJv4XnNqCdLBfKpi2 51EluuGK0VcZ6fm0fFg6SFVlVl7xjQyL1gz6orczh/PZuGMWkQ0dE5N5kLZYAZv+Dcci RkV+BLDoAA+Fs2XWTMfnBsdEvSJhyEXmSf6OeUCuFTC2NZ/8Z2RZ5xuw/0Kx7qUdU3bJ 9eKeXkuJq4aurh9yuWqfmpS02mJOnCvkzYwBZTiOi3sm7FFrSs8ytAlhCF6V3sIic70P wUxb2i8dnOhC7kto4aH/+xWsv3lGn+AmvfNlTXTGD4ZojnFYBPCnSdMANKBvgvM70E/7 zsew== X-Gm-Message-State: AOAM533a9F4qIZIUC+a9rhUb7LmPNIUWEfTFrMw623TlRg+A+qS9JfNe tttZVVJudiXnMl56TMSU2YVdPA== X-Google-Smtp-Source: ABdhPJy5VY98RnXsXRK8ujwmsaLqRFnIlMTBfkJqO+c5XX/T4Ci5/6kpdPPbdiAx7z116x/yI4jpsw== X-Received: by 2002:a05:622a:1c7:b0:2e1:ed8b:7180 with SMTP id t7-20020a05622a01c700b002e1ed8b7180mr7460411qtw.305.1648799066780; Fri, 01 Apr 2022 00:44:26 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::2e]) by smtp.gmail.com with ESMTPSA id s16-20020ac85cd0000000b002e1ed82f1e5sm1446906qta.75.2022.04.01.00.44.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 01 Apr 2022 00:44:26 -0700 (PDT) Date: Fri, 1 Apr 2022 00:44:23 -0700 From: Noah Misch To: Amit Kapila Cc: Euler Taveira , Masahiko Sawada , "osumi.takamichi@fujitsu.com" , Peter Eisentraut , "David G. Johnston" , "tanghy.fnst@fujitsu.com" , vignesh C , Greg Nancarrow , "houzj.fnst@fujitsu.com" , Alexey Lesovsky , pgsql-hackers Subject: Re: Skipping logical replication transactions on subscriber side Message-ID: <20220401074423.GC3682158@rfd.leadboat.com> References: <6320e1d2-b4fd-4e3e-9cae-3373fd6263fe@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Mar 29, 2022 at 10:43:00AM +0530, Amit Kapila wrote: > On Mon, Mar 21, 2022 at 5:51 PM Euler Taveira wrote: > > On Mon, Mar 21, 2022, at 12:25 AM, Amit Kapila wrote: > > I have fixed all the above comments as per your suggestion in the > > attached. Do let me know if something is missed? > > > > Looks good to me. > > This patch is committed > (https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=208c5d65bbd60e33e272964578cb74182ac726a8). src/test/subscription/t/029_on_error.pl has been failing reliably on the five AIX buildfarm members: # poll_query_until timed out executing this query: # SELECT subskiplsn = '0/0' FROM pg_subscription WHERE subname = 'sub' # expecting this output: # t # last actual query output: # f # with stderr: timed out waiting for match: (?^:LOG: done skipping logical replication transaction finished at 0/1D30788) at t/029_on_error.pl line 50. I've posted five sets of logs (2.7 MiB compressed) here: https://drive.google.com/file/d/16NkyNIV07o0o8WM7GwcaAYFQDPTkULkR/view?usp=sharing The members have not actually uploaded these failures, due to an OOM in the Perl process driving the buildfarm script. I think the OOM is due to a need for excess RAM to capture 029_on_error_subscriber.log, which is 27MB here. I will move the members to 64-bit Perl. (AIX 32-bit binaries OOM easily: https://www.postgresql.org/docs/devel/installation-platform-notes.html#INSTALLATION-NOTES-AIX.)