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 1sexK9-00EpXQ-D9 for pgsql-admin@arkaria.postgresql.org; Fri, 16 Aug 2024 13:49:01 +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 1sexK7-005WVW-Vi for pgsql-admin@arkaria.postgresql.org; Fri, 16 Aug 2024 13:48:59 +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 1sexK7-005WVO-Jt for pgsql-admin@lists.postgresql.org; Fri, 16 Aug 2024 13:48:59 +0000 Received: from mail-oa1-x2c.google.com ([2001:4860:4864:20::2c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sexK5-0059tN-Eg for pgsql-admin@postgresql.org; Fri, 16 Aug 2024 13:48:59 +0000 Received: by mail-oa1-x2c.google.com with SMTP id 586e51a60fabf-27018df4ff3so780521fac.1 for ; Fri, 16 Aug 2024 06:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1723816136; x=1724420936; 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=OSvM/lury8OH3hyHf2boFBScTXDaw/on6/k0OEcEKTI=; b=FhHT18Vtvl3S+Po6pQFiWxSBSQUHEU9sVdJGM0NT/oHPD8wzR6POyeY/Fix0mq+/3A LOoVl1OChmnXau8jrMam8uoLUk/4RwsmgChjCwYF4MEa761Pzy3aqngT9mFL7zySkkfW Fzglssn/7AsRUCftmG9NX1zd1VLMAuJg8dSrPU5ymx5Tb+lw8pIyiRQFWuqJ5dYdyMCf maWwb3+18eHv6b5opwQRQ9PNjtJ5pIW3K+Z455/JrU8QSYT3RcUqh0oWBz8X7J/CEHuI diZ9GOgDVLfvhGvJIlngFYxYhiQi6HE83BCrpHFtPxnQJsjGA1BHU6tmOV8Az91g3AbG Obzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1723816136; x=1724420936; 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=OSvM/lury8OH3hyHf2boFBScTXDaw/on6/k0OEcEKTI=; b=UOsPJ3p9iL9MK3JAxdDKXLui3Y+MbSCslksKz0QgiOgktRxc1fSvECMXMOR4OGdFT0 tATSEWBKCV4jIyZv9jyV6IFbWH/MPnLY30cpHiVFkcgYXB+ZTzXMx5Bf1il/zoFr6HK1 SoA9MzDn4j/rLhBNg+IOSXiQEyn37FuiZ8YcDyr87Msy8nMD9LRmSA9uaPgYqUdrV4CJ saaRxtX/fmbv6DWWWP2VyOzw2P5RERt3MqVM8vXNM5YTK8ZyYZPIUkQNGhkVAB8ie7Mg CVKDeBx11IJMEy1W52iRUokETsSBvLsOVbSOl2OQ1nABwbjeTOE1JvO51Hg62MAgAY7e fhvw== X-Gm-Message-State: AOJu0Yw3L7uwedj+vWWNFsp9nrIn08oPXJRVqOrRy3VWQOqH/+inistt LK9VeoSEL8qi14+gPBgnhVWbXiZpvxZs0nyLQ/IjDVUecnVHuhKIBpggcG/wj+xb9Bc7Z8CUovN yl/y0cq2B7EgJZoyIRkGsba/bF184oA== X-Google-Smtp-Source: AGHT+IF7TyArIsWq8KcqZdSjlOBWrZCRDg1n/LGYQZoVSNsgoAFIADHtef1Tc5vkSwEkMnXjrxUKs76cK1oUufmGPI0= X-Received: by 2002:a05:6871:3a28:b0:269:2708:afe7 with SMTP id 586e51a60fabf-2701c407558mr3355639fac.27.1723816135890; Fri, 16 Aug 2024 06:48:55 -0700 (PDT) MIME-Version: 1.0 References: <4A474738-14C3-46DA-AE54-BF9A308D0A85@elevated-dev.com> In-Reply-To: <4A474738-14C3-46DA-AE54-BF9A308D0A85@elevated-dev.com> From: Mohammed Afsar Date: Fri, 16 Aug 2024 19:18:44 +0530 Message-ID: Subject: =?UTF-8?Q?Re=3A_Reindex_doesn=E2=80=99t_not_working_replica_nodes?= To: Scott Ribe Cc: pgsql-admin Content-Type: multipart/alternative; boundary="000000000000702157061fcd381c" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000702157061fcd381c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Got it thanks for the deep dive explanation.Scott =F0=9F=91=8D=F0=9F=8F=BB And parallel we got below error also included OS incompatibility? postgres[265938]: segfault at 18 ip 00000000004cf11b Regards, Mohammed Afsar On Fri, 16 Aug 2024 at 6:49=E2=80=AFPM, Scott Ribe wrote: > > On Aug 16, 2024, at 7:08=E2=80=AFAM, Mohammed Afsar wrote: > > > > We are using streaming replications but still reindex is not working > source db has 11.15replica has 11.11 PostgreSQL version. > > This is not your problem. > > As you understand, I think, with streaming replication all files, > including indexes, are exactly duplicated on the replica. If the OS on th= e > two sides have different glibc versions which have different collations, > then the index structure of the primary will be a corrupted index on the > replica. You have to fix your OS version incompatibility, or move to a > version of postgres which can use ICU collations and make sure that libra= ry > is compatible on both sides. > > --000000000000702157061fcd381c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Got it thanks for the deep dive explanation.Scott = =F0=9F=91=8D=F0=9F=8F=BB

And parallel =C2=A0we got below error also included OS incompatibility?

postgres[265938]: segfault at 18 ip 000= 00000004cf11b

Regards,
Mohammed Afsar


On Fri, 16 Aug 2024 at 6:49=E2=80=AFPM, Scott Ribe <scott_ribe@ele= vated-dev.com> wrote:
> O= n Aug 16, 2024, at 7:08=E2=80=AFAM, Mohammed Afsar <vmdapsar@gmail.com> wrote:
>
> We are using streaming replications but still reindex is not working s= ource db has 11.15replica has 11.11 PostgreSQL version.

This is not your problem.

As you understand, I think, with streaming replication all files, including= indexes, are exactly duplicated on the replica. If the OS on the two sides= have different glibc versions which have different collations, then the in= dex structure of the primary will be a corrupted index on the replica. You = have to fix your OS version incompatibility, or move to a version of postgr= es which can use ICU collations and make sure that library is compatible on= both sides.

--000000000000702157061fcd381c--