X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E3FC952802; Thu, 2 Jun 2005 08:13:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48940-09; Thu, 2 Jun 2005 11:13:49 +0000 (GMT) Received: from ausimss.pervasive.com (ausimss.pervasive.com [66.45.103.246]) by svr1.postgresql.org (Postfix) with ESMTP id 8C12B52816; Thu, 2 Jun 2005 08:13:37 -0300 (ADT) Received: from ausbayes1.aus.pervasive.com ([172.16.8.6]) by ausimss.pervasive.com with InterScan Messaging Security Suite; Thu, 02 Jun 2005 06:13:40 -0500 Received: from BLRMAIL1.aus.pervasive.com ([10.3.16.60]) by ausbayes1.aus.pervasive.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 2 Jun 2005 06:13:38 -0500 content-class: urn:content-classes:message Subject: Re: [SQL] index row size 2728 exceeds btree maximum, 2713 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C56764.1D66E1EF" Date: Thu, 2 Jun 2005 16:43:33 +0530 Message-ID: <02767D4600E59A4487233B23AEF5C5992A4090@blrmail1.aus.pervasive.com> X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] index row size 2728 exceeds btree maximum, 2713 Thread-Index: AcVnQWMS5ZegD05mSvW9iHeSQj1olwAFBl9wZcJ2XzBlv12uwA== From: "Ramakrishnan Muralidharan" To: , , "PostgreSQL" X-OriginalArrivalTime: 02 Jun 2005 11:13:39.0204 (UTC) FILETIME=[20A59440:01C56764] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200506/78 X-Sequence-Number: 78786 This is a multi-part message in MIME format. ------_=_NextPart_001_01C56764.1D66E1EF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=20 =20 It is not advisable to add a variable length data field in = the Index key, since it is very difficult predict the size of the field = which may vary from record to record. =20 =20 are you included this field for Full text search on data = field? =20 Regards, R.Muralidharan -----Original Message----- From: pgsql-sql-owner@postgresql.org = [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Dinesh Pandey Sent: Thursday, January 01, 2004 3:14 PM To: Ramakrishnan Muralidharan; pgsql-general@postgresql.org; = 'PostgreSQL' Subject: Re: [SQL] index row size 2728 exceeds btree maximum, 2713 Hi, =20 One of the columns in primary key is of type "TEXT". I am able to insert = with small data, but for around 3000 characters it's failing. How to = handle that? =20 Thanks Dinesh Pandey _____ =20 From: Ramakrishnan Muralidharan = [mailto:ramakrishnanm@pervasive-postgres.com]=20 Sent: Thursday, June 02, 2005 3:11 PM To: dpandey@secf.com; pgsql-general@postgresql.org; PostgreSQL Subject: RE: [SQL] index row size 2728 exceeds btree maximum, 2713 =20 Hi, =20 The issue looks like your Index width exceeds the maximum = width of the index key limit, Please review the keys used in the index. =20 Regards, R.Muralidharan =20 =20 -----Original Message----- From: pgsql-sql-owner@postgresql.org = [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Dinesh Pandey Sent: Thursday, June 02, 2005 12:35 PM To: pgsql-general@postgresql.org; 'PostgreSQL' Subject: [SQL] index row size 2728 exceeds btree maximum, 2713 TABLE=20 -----------+-----------------------+----------- Column | Type =20 -----------+-----------------------+----------- scan_id | bigint =20 host_ip | character varying(15)=20 port_num | integer =20 plugin_id | integer =20 severity | character varying(50)=20 data | text =20 Indexes: "pk_scanned_port_info" PRIMARY KEY, btree (scan_id, host_ip, = port_num, plugin_id, severity, data) =20 =20 On inserting record I am getting this error "index row size 2728 exceeds = btree maximum, 2713" =20 How to solve this problem? =20 =20 =20 ------_=_NextPart_001_01C56764.1D66E1EF Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
         Hi =
 
          &nbs= p; =20 It is not advisable to add a variable length data field in the Index = key, since=20 it is very difficult predict the size of the field which may vary from = record to=20 record. 
 
          &nbs= p; =20 are you included this field for Full text search on data=20 field?
 
Regards,
R.Muralidharan
-----Original Message-----
From:=20 pgsql-sql-owner@postgresql.org = [mailto:pgsql-sql-owner@postgresql.org]On=20 Behalf Of Dinesh Pandey
Sent: Thursday, January 01, 2004 = 3:14=20 PM
To: Ramakrishnan Muralidharan; = pgsql-general@postgresql.org;=20 'PostgreSQL'
Subject: Re: [SQL] index row size 2728 exceeds = btree=20 maximum, 2713

Hi,

 

One of = the columns=20 in primary key is of type “TEXT”. I am able to insert with = small data, but for=20 around 3000 characters it’s failing. How to handle=20 that?

 

Thanks
Dinesh=20 Pandey


From:=20 Ramakrishnan Muralidharan = [mailto:ramakrishnanm@pervasive-postgres.com]=20
Sent: Thursday, = June 02,=20 2005 3:11 PM
To:=20 dpandey@secf.com;=20 pgsql-general@postgresql.org; PostgreSQL
Subject:
RE: [SQL] index row = size 2728=20 exceeds btree maximum, 2713

 

        =20 Hi,

 

           =  =20 The issue looks like your Index width exceeds the maximum width=20  of the = index key=20 limit, Please review the keys used in the index.

 

Regards,

R.Muralidharan

 

     

-----Original=20 Message-----
From:=20 pgsql-sql-owner@postgresql.org=20 [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Dinesh = Pandey
Sent:
Thursday, June 02, 2005 = 12:35=20 PM
To:=20 pgsql-general@postgresql.org; 'PostgreSQL'
Subject: [SQL] index row size = 2728=20 exceeds btree maximum, 2713

TABLE=20

-----------+-----------------------+-----------

  = Column  =20  |        =20 Type       =

-----------+-----------------------+-----------

 scan_id  =20  |=20 = bigint           &= nbsp;   =20

 host_ip  =20  | character varying(15)

 port_num |=20 = integer           =    =20

 plugin_id =  |=20 integer =20 =             &= nbsp;

 severity  =  |=20 character varying(50)

 data     =20  | text           &nbs= p;     =20

Indexes:

   =20 "pk_scanned_port_info" PRIMARY KEY, btree (scan_id, host_ip, = port_num,=20 plugin_id, severity, data)

 

 

On=20 inserting record I am getting this error = “index=20 row size 2728 exceeds btree maximum, 2713”

 

How=20 to solve this problem?

 

 

 

= ------_=_NextPart_001_01C56764.1D66E1EF--