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 1rPyDc-00FXot-Q0 for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jan 2024 05:12:05 +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 1rPyDb-00Av7p-DG for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Jan 2024 05:12:03 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rPyDb-00Av7h-3w for pgsql-hackers@lists.postgresql.org; Wed, 17 Jan 2024 05:12:03 +0000 Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rPyDU-002Eq8-Jz for pgsql-hackers@postgresql.org; Wed, 17 Jan 2024 05:12:02 +0000 Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2cd928a1d58so51294021fa.3 for ; Tue, 16 Jan 2024 21:11:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705468315; x=1706073115; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=WeqkljVbfUwnkmRGlODFilrJvUag7aY4h7Bbzz58Tq8=; b=CS18nLG8y9pO3vq1oNsV+5uwyKZVBmT4+E+Xa/LS8sNkxvPRml1gQ5SrBIXp7Xsfwn Widh8MQDaTeE0/IHiEuH8WMcVhbelj+6WVs5ypg0RCEBIsOJgWDmuuuRqx0LTuh5TEEQ KXjups9hcV5tT6WQOj7BkXs06631rPVXoK8q89zRlq546blOPHLejLK/wokYTpJAekge qAeNIFUKLHOdRcjYAWdlWw9xjAvvA/F9H/sZDTtRXiTw/iy3GDDB8+57hcfP35g4a5qt dRhpTNN6pflsRk2e1ovqOufI/hKykX+g/U95WBW5SnGdsVdXnO2g4AyENJ4OBbOJjRAz 8gmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705468315; x=1706073115; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=WeqkljVbfUwnkmRGlODFilrJvUag7aY4h7Bbzz58Tq8=; b=ck/nfojEkaSs3JFGsyhIDPbAWty7YI9ufk+FKsbyAJIAk2SjWEBpjlQ5KmbRDkSNOU sd4HReRHQgZPg3emzlm4liOBJPZjKInRIy3EZ8qdhsEjicuACljeP8KaBfQkj/kCwqPE JVuEucWw6Hz/t+lOMbPY4Q2CPSbfFfsNKgo+DzXnKStedUJgiQCo0tKnpCc0LQtNA6zb lQtI2Atgcqc1GZhJP/5X9bzzahxvZe3ZF4T2tmvWrrpF9IgDIitOpU8iw6Nnu9dt6E0h HIAFeygCT2NEfNwDDOmLtBAz+dJM3V0pebnxTVH4ixLCSvOQfS0VrB7jBc54ajEpy7jq vezw== X-Gm-Message-State: AOJu0YxNoIqjbFwzSRPgo/oAotX0O6c54zXmiAMULxgrzFSqTdZMXttk YWe1TO8xLIQiKEKIP9ldzy2TlIrbjPqIUw8tYA== X-Google-Smtp-Source: AGHT+IHuUhKW9jXEY6XfhUug0gZKQyluhyzDSXJm7d+qsU6spY1zSlRv0nsHzx1aIr5DRcs40UYxvyKCxHuI+Icnt/s= X-Received: by 2002:a2e:880f:0:b0:2cc:7b19:1b05 with SMTP id x15-20020a2e880f000000b002cc7b191b05mr4364922ljh.48.1705468314423; Tue, 16 Jan 2024 21:11:54 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Nisha Moond Date: Wed, 17 Jan 2024 10:41:42 +0530 Message-ID: Subject: Re: Synchronizing slots from primary to standby To: Masahiko Sawada Cc: shveta malik , Amit Kapila , "Zhijie Hou (Fujitsu)" , Dilip Kumar , Bertrand Drouvot , Peter Smith , "Hayato Kuroda (Fujitsu)" , Bharath Rupireddy , Peter Eisentraut , Bruce Momjian , Ashutosh Sharma , Andres Freund , pgsql-hackers , Ajin Cherian , Alvaro Herrera Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk A review on v62-006: failover-ready validation steps doc - + Next, check that the logical replication slots identified above exist on + the standby server. This step can be skipped if + standby_slot_names has been correctly configured. + +test_standby=# SELECT bool_and(synced AND NOT temporary AND conflict_reason IS NULL) AS failover_ready + FROM pg_replication_slots + WHERE slot_name in ('sub'); + failover_ready +---------------- + t +(1 row) This query does not ensure that all the logical replication slots exist on standby. Due to the 'IN ('slots')' check, it will return 'true' even if only one or a few slots exist.