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 1qqpxm-001Hlf-1x for pgsql-general@arkaria.postgresql.org; Thu, 12 Oct 2023 07:18:29 +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 1qqpxi-004DBM-C2 for pgsql-general@arkaria.postgresql.org; Thu, 12 Oct 2023 07:18:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qqpxh-004DBE-Tt for pgsql-general@lists.postgresql.org; Thu, 12 Oct 2023 07:18:26 +0000 Received: from mail-ej1-x634.google.com ([2a00:1450:4864:20::634]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qqpxb-0005Eg-UJ for pgsql-general@lists.postgresql.org; Thu, 12 Oct 2023 07:18:25 +0000 Received: by mail-ej1-x634.google.com with SMTP id a640c23a62f3a-9ba1eb73c27so100912966b.3 for ; Thu, 12 Oct 2023 00:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1697095098; x=1697699898; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=fFYpYCB2SmSW7pLePuf/rRuRqhNDrdD41pEaMPYBxuM=; b=GAsqVZeFQSmg33bmwXKL5hrXm/ing9leJc6/4rv2ufyTHMZ5C9fXHY1jbR/psQ27Wr +zsdm4Zv3W8JO7bP01DXHJi5RM0xdVau8RtXXHBOp5uPr+yQjLeByunS+amMq53M6cEw /oq7zIL8d1/GofScRPQ2hWYsxT33x9RnaSNe++/Dwgky6tJY0PfVe5I8U/GCjtr0xfce DXDy3f0kf9TkBPA18zs3aAps+ctEDaYcxLYro92TkbmXmjSjTVLjaq00n5b0cpmPzsF8 ZbZFsOXXxfapvLscijP//VcEQ6Hzqod15U6W8wPKcSfBu0iqKlsc3r5wUN/txW0JrE0E FcRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697095098; x=1697699898; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=fFYpYCB2SmSW7pLePuf/rRuRqhNDrdD41pEaMPYBxuM=; b=F356iJ7dwoCSY0QNt0j3TFiFdMFcprDea0l96HsM08PtOg2UsUG1QajVgoIym+u+ip Qdc7dhTHcTKtAMpcc+vRRUYnscsT79bsJbCo8lMnojNcRPrJxZdnPS+7r1SqlVQKColb 449ROqk1F+ThKfQ53RghtuFWA0ZotOY2PrlndpjuqMOhbWKQXvGJTr3IXj7ZbeG3DIcx o6k4mfq/CeqUGnISLXnVzIJiFtx4e7Kd0nAs9b5hRb+tbVNkiCenWx6W9cvGeYgr1M0K I5TB616utWmB99WVIJGCzBYfZgbWdHUHwGgB6sKRvDQhQ32x/i902hHj7vjyFUTnegH3 xy4w== X-Gm-Message-State: AOJu0Yyot0P989HbwMvqWsvIa5xdnWxk9xOkM+7Ab6cN/hktA4kYEav1 StelWV+rJLXScQYKxTF8moQC7w== X-Google-Smtp-Source: AGHT+IEhMCtFnIATyDh82fNBc5+ezm5ph7Yyg4B1Q+1SaCJgy+nyQ0+HYWvk14NTOiSierbQEGqAIw== X-Received: by 2002:a17:906:10b:b0:9ae:50c4:4df9 with SMTP id 11-20020a170906010b00b009ae50c44df9mr21194556eje.61.1697095097588; Thu, 12 Oct 2023 00:18:17 -0700 (PDT) Received: from localhost.localdomain ([2001:871:5e:6b73:9abf:5952:b5f4:6ea2]) by smtp.gmail.com with ESMTPSA id gz19-20020a170906f2d300b009b2ca104988sm10658302ejb.98.2023.10.12.00.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 00:18:17 -0700 (PDT) Message-ID: <56f149e58524ddb251dc18cf9b56e25da9c82263.camel@cybertec.at> Subject: Re: log wal file transfer in error logs From: Laurenz Albe To: Atul Kumar , pgsql-general Date: Thu, 12 Oct 2023 09:18:16 +0200 In-Reply-To: References: <6202ad1fa40598dd6c0dc25e7d9cd52ca1a462ae.camel@cybertec.at> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, 2023-10-11 at 23:20 +0530, Atul Kumar wrote: > Yes, I meant streamed, I need to log those wal files that are getting str= eamed > and replayed on standby=C2=A0servers in error=C2=A0logs of primary as wel= l as standby servers. >=20 > So that I can cross check that whichever file is streamed has been replay= ed on standby. >=20 > I need to keep a track of these wal files in db error logs. I don't think you can do that, and it seems like a strange requirement to m= e. Instead, you should monitor pg_stat_replication. Yours, Laurenz Albe