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 1nTtjs-0007LD-CE for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2022 23:04:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nTtjr-0004D1-80 for pgsql-hackers@arkaria.postgresql.org; Mon, 14 Mar 2022 23:04:31 +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 1nTtjq-0004Cs-Sl for pgsql-hackers@lists.postgresql.org; Mon, 14 Mar 2022 23:04:30 +0000 Received: from mail-pj1-x102d.google.com ([2607:f8b0:4864:20::102d]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nTtjo-0005sS-0j for pgsql-hackers@lists.postgresql.org; Mon, 14 Mar 2022 23:04:29 +0000 Received: by mail-pj1-x102d.google.com with SMTP id z12-20020a17090ad78c00b001bf022b69d6so800895pju.2 for ; Mon, 14 Mar 2022 16:04:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=dJSgjyWSuTbInosN5FP3f80jF9aRwsPHDjems4F8NXc=; b=bhnNiJX8XKgEWRdsTEOqoF+UXIYvrxLh+eCQ7UzDw/jhYdkRrwIoXRtklh79FvuXF+ 7MZ9YF9EZ1LJN3XtsGCHVs5HYxeOqJoUI2f2hqr7eVkRMePW/UNkRQy4RtK1Sf4zLcp1 Lpr4GRHYNCTa48X42epf4yxSWgLdHP1IP6N5dXx5geKtBIsPuutHeXmLDYEPUz48MbqG Th1MycAm93v4AAB4LdtBCSCBhdb23ZEYy2X+bEGhDspQnK37180b6Kjfq3Ew8MdZMdAo E7F1JxU5ywU9RI97Oh6yBLFcDkCe5iQeQM5aX0mdK3sW6/r5WnSBZ9aa+w8Gu4jNV1nq T5Iw== 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; bh=dJSgjyWSuTbInosN5FP3f80jF9aRwsPHDjems4F8NXc=; b=Juo7Qt7xe7lupRNMPY6XkEnEAlv96Xd3YbLhJmz0s8vqNbm0qFa9pwOQcWejOPCnpC IrYQ/vllmtcDtPTcPKcHDaD70gXk6vu1XnpzghbEv/8mhX6X/CoBRFPttiClu6RV3uX7 nNeASggsg8ynw7lP70veFFxfWhddgBWdOHLXCa1sAlDcrxDak9s+jhNv3RAgtKAy0TpF eTAR3IV3PMsGl67mlA3Vd6RQjTEeMcGJyzFJ+q0cbY5xFDYafD7XyR/eakC4sMa3vedc TLpoOVsV/GUCeT4o+wvJgp+2re3QLnFFEhmOkTt2OUX3LxpPt4SQ18/aF33Gp/tH40AB QMfg== X-Gm-Message-State: AOAM531IeCwoOmaDFaE7gt76jo5EgvisU0UhIkzSho+gnC7mQ59czzQF yfa4YwzRHH2SyBW7eIrhyGo= X-Google-Smtp-Source: ABdhPJzfvxeLScWodPTh4Rhp5Pea6/yktkVFoyCwhvO/RuRC2YQ6kKRE5LqqkRs11iwfJsIH5U+KjA== X-Received: by 2002:a17:902:c106:b0:151:a54f:b14c with SMTP id 6-20020a170902c10600b00151a54fb14cmr25250461pli.103.1647299066678; Mon, 14 Mar 2022 16:04:26 -0700 (PDT) Received: from nathanxps13 ([50.54.155.70]) by smtp.gmail.com with ESMTPSA id x135-20020a62868d000000b004f7550f7f60sm21044272pfd.110.2022.03.14.16.04.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Mar 2022 16:04:26 -0700 (PDT) Date: Mon, 14 Mar 2022 16:04:24 -0700 From: Nathan Bossart To: "osumi.takamichi@fujitsu.com" Cc: 'Amit Kapila' , Masahiko Sawada , Peter Smith , "tanghy.fnst@fujitsu.com" , "wangw.fnst@fujitsu.com" , vignesh C , Greg Nancarrow , Mark Dilger , "Smith, Peter" , PostgreSQL Hackers Subject: Re: Optionally automatically disable logical replication subscriptions on error Message-ID: <20220314230424.GA1085716@nathanxps13> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline My compiler is worried that syncslotname may be used uninitialized in start_table_sync(). The attached patch seems to silence this warning. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com --ibTvN161/egqYuK8 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="v1-0001-silence-compiler-warning.patch" From 05e4e03af5afa1658ede8d78b31c1c999b5c7deb Mon Sep 17 00:00:00 2001 From: Nathan Bossart Date: Mon, 14 Mar 2022 16:00:18 -0700 Subject: [PATCH v1 1/1] silence compiler warning --- src/backend/replication/logical/worker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/replication/logical/worker.c b/src/backend/replication/logical/worker.c index a1fe81b34f..03e069c7cd 100644 --- a/src/backend/replication/logical/worker.c +++ b/src/backend/replication/logical/worker.c @@ -3387,7 +3387,7 @@ TwoPhaseTransactionGid(Oid subid, TransactionId xid, char *gid, int szgid) static void start_table_sync(XLogRecPtr *origin_startpos, char **myslotname) { - char *syncslotname; + char *syncslotname = NULL; Assert(am_tablesync_worker()); -- 2.25.1 --ibTvN161/egqYuK8--