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 1oLm5F-0007Nz-KR for pgsql-general@arkaria.postgresql.org; Wed, 10 Aug 2022 13:49:17 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oLm5E-0006lI-Ja for pgsql-general@arkaria.postgresql.org; Wed, 10 Aug 2022 13:49:16 +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 1oLm5E-0006l3-9D for pgsql-general@lists.postgresql.org; Wed, 10 Aug 2022 13:49:16 +0000 Received: from mail.hjp.at ([212.17.106.138] helo=rorschach.hjp.at) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oLm57-0001hs-Ik for pgsql-general@lists.postgresql.org; Wed, 10 Aug 2022 13:49:14 +0000 Received: by rorschach.hjp.at (Postfix, from userid 1000) id 3294E77A7; Wed, 10 Aug 2022 15:49:06 +0200 (CEST) Date: Wed, 10 Aug 2022 15:49:06 +0200 From: "Peter J. Holzer" To: pgsql-general@lists.postgresql.org Subject: Re: index row size 2720 exceeds btree version 4 Message-ID: <20220810134906.5npdr3xtbpprdnqn@hjp.at> Mail-Followup-To: pgsql-general@lists.postgresql.org References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u4t4fk243zhpxicx" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --u4t4fk243zhpxicx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2022-08-10 10:27:46 +0530, Daulat wrote: > Error: >=20 > " index row size 2720 exceeds btree version 4 maximum 2704 for index > ""uk_gvoa_gi_ad"" 54000" > uk_gvoa_gi_ad >=20 > Index: >=20 > UNIQUE INDEX pk_gvoa_id ON test.groupedvuln_asset USING btree > (groupedvuln_orphanasset_id)" >=20 > UNIQUE INDEX uk_gvoa_gi_ad ON test.groupedvuln_asset USING btree (group_i= d, > hostip, macaddress, fqdn, scanid)" How are those fields defined? I would expect a group id to be 4 or 8 bytes, a host ip 16 bytes, a mac address 6 bytes and an fqdn at most 255 bytes. So without the scan id we are at 285 bytes. maybe a bit more due to overhead. That leaves about 2400 bytes for the scan id. I don't know what a scanid is, but 2000+ bytes for an id seems excessive. hp --=20 _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | hjp@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!" --u4t4fk243zhpxicx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEETtJbRjyPwVTYGJ5k8g5IURL+KF0FAmLzt0sACgkQ8g5IURL+ KF3GfxAAkqRowftqFnAncQxB9FbUfVlpMGdFEY5vNqOndRN0BtPQ0jEr7rDWHqyf 4VJ2NAGlTvg6Sb8oOj73c8VKvSYOmwcY+MAJcLRZjnfllEtXgaTn5nlPFt/BwlIh 4aMUh0ctnfXNFvGKznJw/GycqAVj7vLNu5QjPOHLdTWPB9OAV5wislYWrRVfPHS6 nBybNrQ8cyHfRU7iPHdV3nVZJYMGzUf44HVvp3Dd9BrAZB1fdML95OOGsif/Bc8V ex7TtOBunFIxzP9AOIGGLLveJzWVbJTwpQhhPdQnTQ0tkmDgbTWFH60uBo46dKWo HBTQmuXe3tFSt+vFGfB1O9TsZOLxOlup+3mWRJDLXotRGko59ZCL9GYevIXux1gD r5PdmNgvvzZ9bmnLa1wY/OGBgKHeprbZbo/7ixuSZ33uxAQbnJR1s6Z+eMUwY4zw Vmn4UtmwB6zjO/yuBMJ5+kAs+k1r/mu1bnW+ZEePYhNAFYIniqF2xWo6Ti+8QqsY geceV9FCcpusmNpP3HgTG94Ry1kOFzPsCgrfK/0TjCY3XShyGcFODtC8nvQ4y06/ Vg4uyfRYGcuVPt/hsK9JM+AOmAImbuH05TDFpUnbr2pNXK2Inuy+dAejejqTaZ5H XzKS4xIr4GOou3A9QE73oeLNU8c7P6rVjVLtapEkMahLRnwRWY4= =TBJZ -----END PGP SIGNATURE----- --u4t4fk243zhpxicx--