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 1shVM0-002qos-Vv for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2024 14:33: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 1shVLx-00E9fi-H4 for pgsql-general@arkaria.postgresql.org; Fri, 23 Aug 2024 14:33:26 +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 1shVLx-00E9fU-5v for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2024 14:33:25 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1shVLv-0014ba-AI for pgsql-general@lists.postgresql.org; Fri, 23 Aug 2024 14:33:24 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-5becd359800so2484253a12.0 for ; Fri, 23 Aug 2024 07:33:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724423600; x=1725028400; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=3cvM2JyC+Tfuw5ceqZsqPc6qps53gC45JpwxOlwh3oc=; b=IxSEvWEO6I3nR+Rtxw181wFwxX2CQ8UM9YQ4c7scN6MsyAJwgMHJb1iROGyU8M3Y0D 7001TfpH8zHhU1ux5Cyny8ClFs9PTOOQZvV14j33r8cF5G9t7gAX8qItmrfZg7RzpiNi jDVarchjFSgBofMSZ6DaVpPNeFQbFRsYKv/uosYEfEqLg1TH6V0zgheJ2/JxKiDQ1TL0 shgE1twORqWNu6Vh6saAMCCKZ8vnvM9YUS2eLrkKWUlAclwRmjAlgjcXUW6ZTKI29qEQ tD88mZlUCNeAn/8qSV8STEu5CkPpzsOGUhgQAvAvtKdxTrtHvYl47agO6++dPLuINjDb X21Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724423600; x=1725028400; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3cvM2JyC+Tfuw5ceqZsqPc6qps53gC45JpwxOlwh3oc=; b=thBXHu6YZOOkB7OC8phJ0iuYmUsaYd/ot/b6hUSd7uVZPVeHEwJyenvlwEYVzNvZB6 5+G/uwFFzmzYZNBcZ9IgJVhDr2+inFYO69RMivwMgZVANqS5MivB0Dcf2WWZVXI0NtXo 2Qy9DDur8h6VzPgthikaKva3/gcdiOT5IgY/2gW6bbAQzaqXATKxnN3hECUJuDnIA+ny uM0/aHBKqaNUlNh/SMFnPNOrGqqFwqwoZu0+dDwtaJLpc1BUATBbQ8MIgqzx3fBt4J26 fXVl5mNSpxkHawwQxXsu58rkMVaE7KKD/yFUPC3V1jPqTi1niQjpZkwVeFeumGHwlIm9 sVBg== X-Gm-Message-State: AOJu0Yys1dGzDkPRsmvTuT1BD4uHHIUnLru7CzPoOHpaYdkOc+00UHOh 6Zgj9/64pnG/wDpxTHmktA88fyuLeV6y9FSt1jb1LapMQcheZ7cI0nN76f/Yv7LDn9QAOyU36iR qK6aRwKPgFWGi8vxA8z34fR4lxhCYz3gs X-Google-Smtp-Source: AGHT+IHULnXekjLKxCRi/dYpsD5XWklwB0dn/d5COXBmSOTLnok1B8Y+5pfFI2/aSXpR42TU71VdDPtGkUQyR2Pag8E= X-Received: by 2002:a17:907:7d89:b0:a7a:b73f:7582 with SMTP id a640c23a62f3a-a86a5168f06mr179840566b.2.1724423599978; Fri, 23 Aug 2024 07:33:19 -0700 (PDT) MIME-Version: 1.0 From: Koen De Groote Date: Fri, 23 Aug 2024 16:33:08 +0200 Message-ID: Subject: On a subscriber, why is last_msg_send_time in pg_stat_subscription sometimes null? To: PostgreSQL General Content-Type: multipart/alternative; boundary="0000000000001e80f206205aa816" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000001e80f206205aa816 Content-Type: text/plain; charset="UTF-8" I'm running this query: SELECT subname, received_lsn, latest_end_lsn, last_msg_send_time, last_msg_receipt_time FROM pg_catalog.pg_stat_subscription; And "last_msg_send_time" will sometimes be null. All I can find in the documentation is that this value represents: "Send time of last message received from origin WAL sender; NULL for parallel apply workers" But I have no context for what parallel apply workers are or why they are NULL sometimes and other times not. Can anyone explain? Regards, Koen De Groote --0000000000001e80f206205aa816 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm running this query:

= SELECT subname, received_lsn,=C2=A0latest_end_lsn,
last_msg_send_time, l= ast_msg_receipt_time
FROM pg_catalog.pg_stat_subscription;
And "last_msg_send_time" will sometimes be null. All = I can find in the documentation is that this value represents: "Send time of last message received from= origin WAL sender; NULL for parallel apply workers"

<= div>But I have no context for what parallel apply workers are or why they a= re NULL sometimes and other times not.

Can anyone = explain?

Regards,
Koen De Groote
--0000000000001e80f206205aa816--