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 1nIL9d-0007sF-CC for pgsql-general@arkaria.postgresql.org; Fri, 11 Feb 2022 01:55:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nIL9c-0007vL-8O for pgsql-general@arkaria.postgresql.org; Fri, 11 Feb 2022 01:55:20 +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 1nIL9b-0007v3-SL for pgsql-general@lists.postgresql.org; Fri, 11 Feb 2022 01:55:19 +0000 Received: from mail-oo1-xc33.google.com ([2607:f8b0:4864:20::c33]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nIL9Z-0000Gt-IG for pgsql-general@lists.postgresql.org; Fri, 11 Feb 2022 01:55:18 +0000 Received: by mail-oo1-xc33.google.com with SMTP id f11-20020a4abb0b000000b002e9abf6bcbcso8685772oop.0 for ; Thu, 10 Feb 2022 17:55:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=hjER9ccW3RBa4GERkblqBdhaf7CR5ARUWWbJUNTQL+0=; b=EOzhP6lfzD38gbanjwUIm/JLH57v/CbdEs+R8ydtqDjyIj+ixGp56qhAxNX5yj+dss YndmMDZVN5f+6G/8s+od76OjrE2297BmlZgz8cDtpi4+ijeU4p/cLNMbIWMPw8r07Y1g 9teTHwq7xVPoxlMuW6UEiClj0xL2z+C3v8mZOOskGfbbRH1FtsFjl9cVCz2FqM00cSXU btj8SfSZkrPd4Q4ew+JEZDsTZl0lzu7vjy6KoOlFSkDspXAi+pAXt4g1TqiPtQiC4gmM 5JV0R3o5+6BAmmdMR8IQSHT7M2gCIFJMenfmWusBps5bLJrp7JHhdhoR9bLjbJ1GR/hO emtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=hjER9ccW3RBa4GERkblqBdhaf7CR5ARUWWbJUNTQL+0=; b=EYHszmEaHZhVp+MF1cm9oizBPuftDWWNtSByKcS1zRe97BPkFe5V4LRG8cvGoUI20P kSEaJCqjUeJJGzEhhgGf48VwrkPDXOsRUTOSN6iRnmwisvVtKqIkM5qViVgPFfXD/sOk T94WozJUVyC66ki/kh2dvGVWdt1wHVvYDZaG738Bokvj95IIkTwCuyxh6sD/Aenvr4b/ aSQHZgeXa//IwEoNtLzse1ZPIKLfz2R/xfL3wso+EgwIGYB7GcWNY90cRa3+JFd4gu5V eZ8zkO2b5x7VaovwM57FPaDTnWeud6+A1vqV113HkGRFH19+f9GLR4h1A6RAL5HiFTll wyow== X-Gm-Message-State: AOAM532zeg5yPif7v2wFHp2qyqClm+5M11ktUk5h4zqtYGdX6j0NxcAb kHXu6ON4y29GejF4qOnyyJgf9pAFMuI= X-Google-Smtp-Source: ABdhPJzwfAhYhYTlC2lCsIN2LcDDnAeraljhWpJNQ0EkFtH0IOra3ewYUTO6nnelBF5l5ZInpwJi+g== X-Received: by 2002:a05:6870:7a19:: with SMTP id hf25mr65145oab.171.1644544516743; Thu, 10 Feb 2022 17:55:16 -0800 (PST) Received: from [192.168.88.10] (ip68-11-68-85.no.no.cox.net. [68.11.68.85]) by smtp.googlemail.com with ESMTPSA id l38sm8965164otl.45.2022.02.10.17.55.16 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 10 Feb 2022 17:55:16 -0800 (PST) Subject: Re: How to determine whether I'm running on a standby? To: pgsql-general@lists.postgresql.org References: <45425911-b002-4c2d-256c-49877eca7457@gmail.com> From: Ron Message-ID: <4738d106-3944-44f7-bb50-9eaa598ea0fd@gmail.com> Date: Thu, 10 Feb 2022 19:55:15 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------3706AF91A4C4E81E0A1A23CA" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------3706AF91A4C4E81E0A1A23CA Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit On 2/10/22 1:56 PM, David G. Johnston wrote: > On Thu, Feb 10, 2022 at 12:54 PM Mladen Gogala > wrote: > > The procedure works fine on the primary but reports a bunch of errors > on the read-only standbys. > > A standby is in perpetual recovery mode. (Just like in SQL Server.) -- Angular momentum makes the world go 'round. --------------3706AF91A4C4E81E0A1A23CA Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit On 2/10/22 1:56 PM, David G. Johnston wrote:
On Thu, Feb 10, 2022 at 12:54 PM Mladen Gogala <gogala.mladen@gmail.com> wrote:

The procedure works fine on the primary but reports a bunch of errors on the read-only standbys.

A standby is in perpetual recovery mode.

(Just like in SQL Server.)

--
Angular momentum makes the world go 'round.
--------------3706AF91A4C4E81E0A1A23CA--