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 1l1nB4-0003Qb-LR for pgsql-admin@arkaria.postgresql.org; Tue, 19 Jan 2021 09:19:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1l1nB3-0001A7-Jb for pgsql-admin@arkaria.postgresql.org; Tue, 19 Jan 2021 09:19:53 +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 1l1nB3-0001A0-9G for pgsql-admin@lists.postgresql.org; Tue, 19 Jan 2021 09:19:53 +0000 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1l1nB0-0000FL-Tm for pgsql-admin@postgresql.org; Tue, 19 Jan 2021 09:19:52 +0000 Received: by mail-ej1-x62e.google.com with SMTP id ke15so19796254ejc.12 for ; Tue, 19 Jan 2021 01:19:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sP17Eel/6QFv6xVUxsj4y8rVDDm4CrR1nkREDkP4mr8=; b=uj/sNGUN68dEmo/T1HNP5LON64ZXjIXNrgxEagy8iK1k9xVCfG4uYopxPPWgSOzTwp ldUHb+Q5+/q//UQ5LCniypZOcBRyHPNEH9NHvGPs8PGoz8jX4TfIcC3dk/qhuG0a2q3O dGtFwYZDaaT3XMe0rRMq9c/ICXj9h/p/Mq+hkHS/fmijR8xgt+Z43/wHmD8uF9NLUkT1 FKGuoG/ZL6vAuQr0AigmTFfGUQUPbmEkI/ieYu4U8YGgWdrSMemr7H9rWFDDYUk0Lx8Y ke23ejzaz9MCd43jMdxDwr6JpsND1iMF4mCm/O7DYfWuhhUWiAAzZhDIbswWZTE9aki7 CZVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sP17Eel/6QFv6xVUxsj4y8rVDDm4CrR1nkREDkP4mr8=; b=t95tZ7ulkqQ3qQkEnTS0tUlYBqEpQ0dFOH+ppVWMnqUfGKL0heMn3rUXehKpY+x4mn /B2XXLLiv+ydmHqY0VQnpkE5vC3F95PwUB5dc7A4XdXy4luK+iYVQ912EXCPAsKAvZW5 c+UgALby2WtMDZBW2z8uxIE6AtHBoYdRJ59gusjkG0VG/kg/ptHYdmTH7lbIqIbYdAQy jyihQ2GfspJlWcUZ9y3rvm215nuBr7nfJy6nqbUW+60rEjX8LBlWUy1KjUqfL+pft74a 9ShY4JWGNoLVppvYtk8SGxmEExzOlavC/j6esQI9+B9+W/4oaUPpHkGvhs1BxfzE4F5v ediA== X-Gm-Message-State: AOAM533fhGZb47EmuljKzkXhMN6MSMSDn23qDdxwrpBFEyiiU1W90IY6 ouEtWFIgouywTQmYGbwO46/pbQnRNxobUkz8qtI= X-Google-Smtp-Source: ABdhPJzlWtNvcOlnNDljMu/9l6PQQW2EpnTqlzcosjrqbVAQ37y1u9neaXgiHsdaQgg3+sVaT5L2M0WMp9aEdmJY/sw= X-Received: by 2002:a17:906:f85:: with SMTP id q5mr2432961ejj.105.1611047989322; Tue, 19 Jan 2021 01:19:49 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ganesh Korde Date: Tue, 19 Jan 2021 14:49:37 +0530 Message-ID: Subject: Re: hot standby in Postgresql 12 To: Ankush Chawla Cc: pgsql-admin Content-Type: multipart/alternative; boundary="0000000000001ea5dc05b93d5722" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --0000000000001ea5dc05b93d5722 Content-Type: text/plain; charset="UTF-8" Looks like you have mentioned "hot_standby= on" on both places i.e recovery.conf and postgresql.conf. keep it at only one place and check. On Tue, 19 Jan 2021, 8:51 am Ankush Chawla, wrote: > Preparing hot standby in PostgreSQL 12 > > I have created a standby.signal file and added the parameter > hot_standby='on' in postgresql.conf file but i am still not able to query > the standby database > Database is not getting open for reading. > > postgres@ip-172-31-31-150:/u01/db10/pg_wal> psql -p 5490 > psql: error: FATAL: the database system is starting up > > -- > Best Regards, > Ankush Chawla > > --0000000000001ea5dc05b93d5722 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Looks like you have mentioned "hot_standby=3D on&quo= t; on both places i.e=C2=A0 recovery.conf and postgresql.conf. keep it at o= nly one place and check.

On Tue, 19 Jan 2021, 8:51 am Ankush Chawla, <ankushchawla03@gmail.com> w= rote:
Prepari= ng hot standby in PostgreSQL 12

I have created a s= tandby.signal file and added the parameter hot_standby=3D'on' in po= stgresql.conf file but i am still not able to query the standby database=C2= =A0
Database=C2=A0is not getting open for reading.

=
postgres@ip-172-31-31-150:/u01/db10/pg_wal> psql -p 5490
p= sql: error: FATAL: =C2=A0the database system is starting up

<= /div>--
Best Regards,
Ankush C= hawla

--0000000000001ea5dc05b93d5722--