From: Peter J. Holzer <hjp-pgsql@hjp.at>
To: pgsql-general@lists.postgresql.org
Subject: Re: index row size 2720 exceeds btree version 4
Date: Wed, 10 Aug 2022 15:49:06 +0200
Message-ID: <20220810134906.5npdr3xtbpprdnqn@hjp.at> (raw)
In-Reply-To: <CALfOM6L9PvHBRJX-0ojdKoBXpJjU6az8Ne1x=xSFjrCbiPg4=A@mail.gmail.com>
References: <CALfOM6L9PvHBRJX-0ojdKoBXpJjU6az8Ne1x=xSFjrCbiPg4=A@mail.gmail.com>
On 2022-08-10 10:27:46 +0530, Daulat wrote:
> Error:
>
> " index row size 2720 exceeds btree version 4 maximum 2704 for index
> ""uk_gvoa_gi_ad"" 54000"
> uk_gvoa_gi_ad
>
> Index:
>
> UNIQUE INDEX pk_gvoa_id ON test.groupedvuln_asset USING btree
> (groupedvuln_orphanasset_id)"
>
> UNIQUE INDEX uk_gvoa_gi_ad ON test.groupedvuln_asset USING btree (group_id,
> 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
--
_ | Peter J. Holzer | Story must make more sense than reality.
|_|_) | |
| | | hjp@hjp.at | -- Charles Stross, "Creative writing
__/ | http://www.hjp.at/ | challenge!"
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: hjp-pgsql@hjp.at
Subject: Re: index row size 2720 exceeds btree version 4
In-Reply-To: <20220810134906.5npdr3xtbpprdnqn@hjp.at>
References: <CALfOM6L9PvHBRJX-0ojdKoBXpJjU6az8Ne1x=xSFjrCbiPg4=A@mail.gmail.com> <20220810134906.5npdr3xtbpprdnqn@hjp.at>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox