From keith@e-magine.com.au Tue Aug 15 11:08:18 2000 Received: from mail-pop04.one.net.au (mail-pop04.one.net.au [203.101.17.173]) by hub.org (8.10.1/8.10.1) with SMTP id e7FB8In90959 for ; Tue, 15 Aug 2000 07:08:18 -0400 (EDT) Received: (qmail 3895 invoked from network); 15 Aug 2000 11:08:06 -0000 Received: from unknown (HELO darthvader.e-magine.com.au) (203.101.65.124) by mail-pop04.one.net.au with SMTP; 15 Aug 2000 11:08:06 -0000 Message-Id: <4.3.2.7.0.20000815212429.00b0eda0@mail.e-magine.com.au> X-Sender: e-magine@mail.e-magine.com.au X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 15 Aug 2000 21:29:33 +1000 To: pgsql-sql@postgresql.org From: Keith Wong Subject: 8K Limit, whats the best strategy? In-Reply-To: <3999029A.1E39AAAB@abas.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200008/102 Hi everyone, Just wondering what strategies people have used to get around the 8K row limit in Postgres. If anyone has been troubled by this limitation before and has a nice solution around it, I would love to hear it. My application is a web-based system in which needs to store large amounts of text. The text stored needs to searchable as well. Cheers, Keith. From tswan@olemiss.edu Tue Aug 15 15:39:34 2000 Received: from tangent.ics.olemiss.edu (IDENT:root@tangent.ics.olemiss.edu [130.74.31.3]) by hub.org (8.10.1/8.10.1) with ESMTP id e7FFdYn14540 for ; Tue, 15 Aug 2000 11:39:34 -0400 (EDT) Received: from Betelgeuse.olemiss.edu (wsp000771wss.ics.olemiss.edu [130.74.31.251]) by tangent.ics.olemiss.edu (8.9.3/8.8.7) with ESMTP id KAA17522; Tue, 15 Aug 2000 10:37:52 -0500 Message-Id: <5.0.0.11.2.20000815103331.01f24460@sunset.backbone.olemiss.edu> X-Sender: tswan@sunset.backbone.olemiss.edu X-Mailer: QUALCOMM Windows Eudora Version 5.0.0.11 (Beta) Date: Tue, 15 Aug 2000 10:37:50 -0500 To: Keith Wong , pgsql-sql@postgresql.org From: Thomas Swan Subject: Re: 8K Limit, whats the best strategy? In-Reply-To: <4.3.2.7.0.20000815212429.00b0eda0@mail.e-magine.com.au> References: <3999029A.1E39AAAB@abas.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_30944234==_.ALT" X-Archive-Number: 200008/111 --=====================_30944234==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed At 06:29 AM 8/15/2000, Keith Wong wrote: >Hi everyone, > >Just wondering what strategies people have used to get around the 8K row >limit in Postgres. >If anyone has been troubled by this limitation before and has a nice >solution around it, I would love to hear it. > >My application is a web-based system in which needs to store large amounts >of text. >The text stored needs to searchable as well. You can you the type LZTEXT which is compressed text so your mileage will vary. The other option is to go in and recompile for a larger row size. Most of the people I have talked to had no problems with this route. I move the size limit on an x86 Linux box to 32K (the max) and have not had any problems. In the next release, I don't believe the row size limit will exist (correct me if I'm wrong). Let me know the system your on, and I will try to help if I can. - - Thomas Swan - Graduate Student - Computer Science - The University of Mississippi - - "People can be categorized into two fundamental - groups, those that divide people into two groups - and those that don't." --=====================_30944234==_.ALT Content-Type: text/html; charset="us-ascii" At 06:29 AM 8/15/2000, Keith Wong wrote:
Hi everyone,

Just wondering what strategies people have used to get around the 8K row limit in Postgres.
If anyone has been troubled by this limitation before and has a nice solution around it, I would love to hear it.

My application is a web-based system in which needs to store large amounts of text.
The text stored needs to searchable as well.

You can you the type LZTEXT which is compressed text so your mileage will vary.

The other option is to go in and recompile for a larger row size.  Most of the people I have talked to had no problems with this route.  I move the size limit on an x86 Linux box to 32K (the max) and have not had any problems.   In the next release, I don't believe the row size limit will exist (correct me if I'm wrong).

Let me know the system your on, and I will try to help if I can.

-
- Thomas Swan                                   
- Graduate Student  - Computer Science
- The University of Mississippi
-
- "People can be categorized into two fundamental
- groups, those that divide people into two groups
- and those that don't." --=====================_30944234==_.ALT-- From aalang@rutgersinsurance.com Tue Aug 15 15:47:15 2000 Received: from bush.rutgersinsurance.com (IDENT:root@rutgersinsurance.com [38.138.71.194]) by hub.org (8.10.1/8.10.1) with ESMTP id e7FFlDn18195 for ; Tue, 15 Aug 2000 11:47:15 -0400 (EDT) Received: from Adam ([10.10.10.51]) by bush.rutgersinsurance.com (8.9.3/8.9.3) with SMTP id LAA02922 for ; Tue, 15 Aug 2000 11:50:41 -0400 Message-ID: <00a801c006d0$36eadde0$330a0a0a@Adam> From: "Adam Lang" To: References: <3999029A.1E39AAAB@abas.de> <5.0.0.11.2.20000815103331.01f24460@sunset.backbone.olemiss.edu> Subject: Re: 8K Limit, whats the best strategy? Date: Tue, 15 Aug 2000 11:48:10 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Archive-Number: 200008/112 I believe you are correct. Version 7.1 will supposedly eliminate the row size. Adam Lang Systems Engineer Rutgers Casualty Insurance Company ----- Original Message ----- From: "Thomas Swan" To: "Keith Wong" ; Sent: Tuesday, August 15, 2000 11:37 AM Subject: Re: [SQL] 8K Limit, whats the best strategy? > At 06:29 AM 8/15/2000, Keith Wong wrote: > >Hi everyone, > > > >Just wondering what strategies people have used to get around the 8K row > >limit in Postgres. > >If anyone has been troubled by this limitation before and has a nice > >solution around it, I would love to hear it. > > > >My application is a web-based system in which needs to store large amounts > >of text. > >The text stored needs to searchable as well. > > You can you the type LZTEXT which is compressed text so your mileage will vary. > > The other option is to go in and recompile for a larger row size. Most of > the people I have talked to had no problems with this route. I move the > size limit on an x86 Linux box to 32K (the max) and have not had any > problems. In the next release, I don't believe the row size limit will > exist (correct me if I'm wrong). > > Let me know the system your on, and I will try to help if I can. > > - > - Thomas Swan > - Graduate Student - Computer Science > - The University of Mississippi > - > - "People can be categorized into two fundamental > - groups, those that divide people into two groups > - and those that don't." From plc@faroenet.fo Tue Aug 15 17:49:21 2000 Received: from faroenet.fo ([212.55.59.140]) by hub.org (8.10.1/8.10.1) with SMTP id e7FHnKn79404 for ; Tue, 15 Aug 2000 13:49:21 -0400 (EDT) Received: (qmail 25225 invoked by uid 7719); 15 Aug 2000 18:52:41 -0000 Received: from unknown (HELO faroenet.fo) (192.168.1.21) by 192.168.1.1 with SMTP; 15 Aug 2000 18:52:41 -0000 Message-ID: <399982B7.69A41FA4@faroenet.fo> Date: Tue, 15 Aug 2000 18:49:43 +0100 From: "Poul L. Christiansen" X-Mailer: Mozilla 4.71 [en] (WinNT; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Keith Wong CC: pgsql-sql@postgresql.org Subject: Re: 8K Limit, whats the best strategy? References: <4.3.2.7.0.20000815212429.00b0eda0@mail.e-magine.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200008/117 I've just split the text up (in 8 pieces), so it fits into 8K rows. But thats only a viable solution if your text is less than a couple of 100K's. You could try to be a daredevil and use the Toast code, even if it's beta. But I don't know how far the Toast project has come. Keith Wong wrote: > Hi everyone, > > Just wondering what strategies people have used to get around the 8K row > limit in Postgres. > If anyone has been troubled by this limitation before and has a nice > solution around it, I would love to hear it. > > My application is a web-based system in which needs to store large amounts > of text. > The text stored needs to searchable as well. > > Cheers, > Keith. From plc@faroenet.fo Mon Aug 21 15:20:14 2000 Received: from faroenet.fo ([212.55.59.140]) by hub.org (8.10.1/8.10.1) with SMTP id e7LFKDT80543 for ; Mon, 21 Aug 2000 11:20:14 -0400 (EDT) Received: (qmail 23433 invoked by uid 7719); 21 Aug 2000 16:25:14 -0000 Received: from unknown (HELO faroenet.fo) (192.168.1.21) by 192.168.1.1 with SMTP; 21 Aug 2000 16:25:14 -0000 Message-ID: <39A148B7.7D67B0BD@faroenet.fo> Date: Mon, 21 Aug 2000 16:20:24 +0100 From: "Poul L. Christiansen" Reply-To: pgsql-sql@postgresql.org X-Mailer: Mozilla 4.71 [en] (WinNT; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Jan Wieck CC: Keith Wong , pgsql-sql@postgresql.org Subject: Re: 8K Limit, whats the best strategy? References: <200008211541.KAA02852@jupiter.greatbridge.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200008/202 Jan Wieck wrote: > Poul L. Christiansen wrote: > > I've just split the text up (in 8 pieces), so it fits into 8K rows. But thats > > only a viable solution if your text is less than a couple of 100K's. > > > > You could try to be a daredevil and use the Toast code, even if it's beta. But > > I don't know how far the Toast project has come. > > TOAST is finished and will be shipped with 7.1. It's not a > solution for huge items, but medium sized text up to some > hundred K works fine. What do you mean by "..not a solution for huge items"? Does TOAST have a size limit? > > > Jan > > > > > Keith Wong wrote: > > > > > Hi everyone, > > > > > > Just wondering what strategies people have used to get around the 8K row > > > limit in Postgres. > > > If anyone has been troubled by this limitation before and has a nice > > > solution around it, I would love to hear it. > > > > > > My application is a web-based system in which needs to store large amounts > > > of text. > > > The text stored needs to searchable as well. > > > > > > Cheers, > > > Keith. > > > > -- > > #======================================================================# > # It's easier to get forgiveness for being wrong than for being right. # > # Let's break this rule - forgive me. # > #================================================== JanWieck@Yahoo.com # From janwieck@Yahoo.com Mon Aug 21 14:38:30 2000 Received: from ns1.engrs.org (ns1.engrs.org [216.54.29.10]) by hub.org (8.10.1/8.10.1) with ESMTP id e7LEcUT66527 for ; Mon, 21 Aug 2000 10:38:30 -0400 (EDT) Received: (from uucp@localhost) by ns1.engrs.org (8.9.3/8.9.3) id KAA01565; Mon, 21 Aug 2000 10:51:33 -0400 Received: from UNKNOWN(216.54.52.157), claiming to be "jupiter.greatbridge.com" via SMTP by ns1.engrs.org, id smtpdvXRCZc; Mon Aug 21 14:51:32 2000 Received: (from janwieck@localhost) by jupiter.greatbridge.com (8.9.3/8.9.3) id KAA02852; Mon, 21 Aug 2000 10:41:08 -0500 From: Jan Wieck Message-Id: <200008211541.KAA02852@jupiter.greatbridge.com> Subject: Re: 8K Limit, whats the best strategy? In-Reply-To: <399982B7.69A41FA4@faroenet.fo> from "Poul L. Christiansen" at "Aug 15, 2000 06:49:43 pm" To: "Poul L. Christiansen" Date: Mon, 21 Aug 2000 10:41:08 -0500 (EST) CC: Keith Wong , pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200008/215 Poul L. Christiansen wrote: > I've just split the text up (in 8 pieces), so it fits into 8K rows. But thats > only a viable solution if your text is less than a couple of 100K's. > > You could try to be a daredevil and use the Toast code, even if it's beta. But > I don't know how far the Toast project has come. TOAST is finished and will be shipped with 7.1. It's not a solution for huge items, but medium sized text up to some hundred K works fine. Jan > > Keith Wong wrote: > > > Hi everyone, > > > > Just wondering what strategies people have used to get around the 8K row > > limit in Postgres. > > If anyone has been troubled by this limitation before and has a nice > > solution around it, I would love to hear it. > > > > My application is a web-based system in which needs to store large amounts > > of text. > > The text stored needs to searchable as well. > > > > Cheers, > > Keith. > -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com # From janwieck@Yahoo.com Mon Aug 21 19:52:31 2000 Received: from ns1.engrs.org (ns1.engrs.org [216.54.29.10]) by hub.org (8.10.1/8.10.1) with ESMTP id e7LJqVT51289 for ; Mon, 21 Aug 2000 15:52:31 -0400 (EDT) Received: (from uucp@localhost) by ns1.engrs.org (8.9.3/8.9.3) id PAA02362; Mon, 21 Aug 2000 15:58:01 -0400 Received: from UNKNOWN(216.54.52.157), claiming to be "jupiter.greatbridge.com" via SMTP by ns1.engrs.org, id smtpd97YHl4; Mon Aug 21 19:57:52 2000 Received: (from janwieck@localhost) by jupiter.greatbridge.com (8.9.3/8.9.3) id PAA03170; Mon, 21 Aug 2000 15:47:24 -0500 From: Jan Wieck Message-Id: <200008212047.PAA03170@jupiter.greatbridge.com> Subject: Re: 8K Limit, whats the best strategy? In-Reply-To: <39A148B7.7D67B0BD@faroenet.fo> from "Poul L. Christiansen" at "Aug 21, 2000 04:20:24 pm" To: pgsql-sql@postgresql.org Date: Mon, 21 Aug 2000 15:47:24 -0500 (EST) CC: Jan Wieck , Keith Wong X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200008/211 Poul L. Christiansen wrote: > Jan Wieck wrote: > > > Poul L. Christiansen wrote: > > > I've just split the text up (in 8 pieces), so it fits into 8K rows. But thats > > > only a viable solution if your text is less than a couple of 100K's. > > > > > > You could try to be a daredevil and use the Toast code, even if it's beta. But > > > I don't know how far the Toast project has come. > > > > TOAST is finished and will be shipped with 7.1. It's not a > > solution for huge items, but medium sized text up to some > > hundred K works fine. > > What do you mean by "..not a solution for huge items"? Does TOAST have a size limit? > Not an explicit one. But imagine you really want to store an MP3 of - let's say 9M in the database. 1. Your client application must quote it somehow to put it into an INSERT querystring. The quoting makes it a 10MB thing (think positive). 2. The query is sent to the backend. Now you have this string a second time in memory. 3. The query is parsed and a 10MB text datum is built for the querytrees Const node. 4. The query is executed, builds a 10MB tuple to store. 5. Toast jumps in and moves it out of the tuple again. So if the client and DB are running on the same system, you'll have the MP3 four times in memory. Now do it concurrent with 20 backends and you'll need 800+ ... you see why I said it's "not a solution for huge"? Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com #