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 1nCIfj-0003hX-8v for pgsql-general@arkaria.postgresql.org; Tue, 25 Jan 2022 10:03:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nCIfi-0005L4-21 for pgsql-general@arkaria.postgresql.org; Tue, 25 Jan 2022 10:03:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCBmp-00020x-9s for pgsql-general@lists.postgresql.org; Tue, 25 Jan 2022 02:42:23 +0000 Received: from sonic313-21.consmr.mail.gq1.yahoo.com ([98.137.65.84]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nCBmm-0007Ha-IS for pgsql-general@postgresql.org; Tue, 25 Jan 2022 02:42:22 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643078536; bh=xhk6HJwrv3y+72xEnJlt7PCshvV49y1zU0uFRZeumIM=; h=Date:From:To:Subject:References:From:Subject:Reply-To; b=gEQNduVINyLO8h7qgMFkbi2fOBaKgNtTvxsP2R+P50RN2Tjdy0nOdqt25yWPZNG9GjdHyvTvGMK7DhqkaKYJlcG78IJ1a6qrAjmlLQH13VtmK8Jo49pTUF8qyuuxjw5qUOPHlCs5+BBxD/qda2whqlUvsUO3wFp3NvtMJAJLcRpvS2G5aRtLGmk1FK2TNvVUKIKP+Ppcj+CBIXAkFy2WRxWXlVhKqHoyrXRA6l4saIJtTXG029n+g5u/M+noy/peovMRuMP45hy9vVjPrVSoMr7Nu3t/f6Lo67v+Rf/0hA3MX73Mx055O7WUEd07AoAYYpO8UONs02RAVc50I55XqQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1643078536; bh=kx9ZFt08uCJjXp0nGTCfvkyXA7+6C2Dj69ks1g62imV=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=AOOTEQA2rpLoDUcB25P0nO9ZlB9L0lk5KsrXrXqEVpjxhmklm6nh15z2luO2B41w/OX55KFHoD217TzB/ST7UO0vr1but7ciivSoeXNX5hTTrKLwJHC7Kjd54ap4VY9qoLUQItlV76ZAwa3JC2DklSor3/+04twJQFG+QOSzr043b1XbsWI+EGpAIB4J93PgHXmnicf38mx6eeGBeAEugv4lHeDgz4CaocIUtE7Om2GC6ENi8ef547fR/c8UVrP9v9p/5dWT1OQ00frIigSP0T9FtxT9TVOYqB1A9J5QJAtF2DTe7VLGZ9ncUpH3lNtuLFZ4gwSvdiGzl192/kAzug== X-YMail-OSG: SKGoB6AVM1kTeTAlxPDnS609rEsh_t4UsTlBBgEBorYI_IWBeFWAIQjvyY8ditE 4xw5sa6lLpTLi7gGBnNLe02GHZVvFMhm2iLBpM9ZxYL5OsOtHqbmZ7msWiJEBvbHLaPlfnojOHrc cnQkRlXWf96ePMRzVk0Lp_kDCOL8g5Yi3t24fklfpUKrlJnCStTX5U_sAkOJzk7TdYn3tsAck0s6 DChkI9J6MhbnMxWWu_a2vhdBFRm.NyCNaA6MWlU0qcGZz1qSHpEedWl3jcsmjkPodzhfAiYx_mEU gIsRUj1Zcm5t6p6IS0nHEBpSMsWYU9lzGHZrWV3p06MWgMH5ADPzXNVgHGYHgXGbcyoTdDMFcTk3 5Nfs24MjrDGx26k98.HA.ZXEdfnCnDjk1d66GEV1Dm3geCMJUOebTKtIwhNPMePW6yjk3Dp831bF wYAKEQErrmo.uT.IBKULzyGLgRIX4I6D.nopuhYF_wHpfO1acNpBMIFqxyTHO0Mn.QlhhrHNfacz uoBfQAkpCdTgBv4qTxChC8.45EMQVqPK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.wtk1dEmbADA_tqRI.lxik3x9KStG2ns3ALmyEn XDVwezijOcS4bipZxuqffPivlKgHJ6S7E.bv0_scqrinHvbnxsfB5ZkGUlb0W6_SQH5rN4MmKMXF G7MRKm_WbSQL_zsHymBtNZCNOLxGf3oZxdosSHEQynrrVXQZRlESr1zNPdRF.BOVV6lsgG_gBNZA _6EKvWgMcwPTHijhlF1tJsgRZ3jo2yCLxPWSkLEUqHYq9X24WedMu96mkDnOhpKncJnrywHQDe5w GX4sfEDgzuMxre74w3H9ignKxgWfbmenLDG.LKhPMErityd88QMNu4PXByw.sL1HsDrEj7fef8MC yFmclGP3F_v.OQdNr3PIB8u.ZSiAVYWnMinKopswlxif6USGLHYhlQ3CStajFrzium2AXzzAcJV1 144xmIGP5aitV.mtOBAb9efZgxVKwT0ePKklKcckac7z3_32So.O7d5Uaymych8tIJQ4NRIcgU1e ggEeAF6TMhqRag3dwSUfqmMUO0R_LF5KI0hCPfxe.ypkpbCMRhR7Ub6uvqMxzL5kLzd5._jMMKpv _6LWGcMJhGOAl6pdg1ZlOVc1A4TqVjf_vEblxdHsy9C_WAP12t7SyKg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic313.consmr.mail.gq1.yahoo.com with HTTP; Tue, 25 Jan 2022 02:42:16 +0000 Date: Tue, 25 Jan 2022 02:42:14 +0000 (UTC) From: "huangning290@yahoo.com" To: "pgsql-general@postgresql.org" Message-ID: <147894193.1340405.1643078534794@mail.yahoo.com> Subject: GIN index MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1340404_1487163976.1643078534793" References: <147894193.1340405.1643078534794.ref@mail.yahoo.com> X-Mailer: WebService/1.1.19615 YMailNorrin Content-Length: 2237 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk ------=_Part_1340404_1487163976.1643078534793 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi:I created a new variable-length data type, and now I want to create a GI= N index for it. According to the rules of GIN index, I created three functi= ons: extractValue, extractQuery, and compare. I made sure that the return v= alue of the first two functions is the address of the array, but when using= the index query, the GIN tuple data obtained by calling PG_GETARG_DATUM in= the compare function is incorrect, and it is misplaced! In memory the size= of the data header becomes something else, and the position of the first b= yte is not the header, it becomes the fourth byte. So there is a high proba= bility that the function called is wrong or my return value is wrong when c= reating the index or the error is somewhere else?=C2=A0 regards! ------=_Part_1340404_1487163976.1643078534793 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi:
I created a new variable-length data type, and now I= want to create a GIN index for it. According to the rules of GIN index, I = created three functions: extractValue, extractQuery, and compare. I made su= re that the return value of the first two functions is the address of the a= rray, but when using the index query, the GIN tuple data obtained by callin= g PG_GETARG_DATUM in the compare function is incorrect, and it is misplaced= ! In memory the size of the data header becomes something else, and the pos= ition of the first byte is not the header, it becomes the fourth byte. So t= here is a high probability that the function called is wrong or my return v= alue is wrong when creating the index or the error is somewhere else? =

regards!
------=_Part_1340404_1487163976.1643078534793--