Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id VAA05190 for postgres-redist; Mon, 26 Sep 1994 21:46:50 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199409270446.VAA05190@nobozo.CS.Berkeley.EDU>
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from faerie.CS.Berkeley.EDU (faerie.CS.Berkeley.EDU [128.32.37.53]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with ESMTP id VAA05180 for <postgres@postgres.Berkeley.EDU>; Mon, 26 Sep 1994 21:46:50 -0700
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by faerie.CS.Berkeley.EDU (8.6.9/8.1B) with SMTP id VAA00726; Mon, 26 Sep 1994 21:46:41 -0700
Message-Id: <199409270446.VAA00726@faerie.CS.Berkeley.EDU>
X-Authentication-Warning: faerie.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
From: aoki@cs.berkeley.edu (Paul M. Aoki)
To: raj@CS.UCLA.EDU (Raj Vadakkencherry)
Cc: postgres@postgres.Berkeley.EDU
Subject: Re: Failure of append 
Reply-To: aoki@cs.berkeley.edu (Paul M. Aoki)
In-reply-to: Your message of Mon, 26 Sep 94 21:09:17 PDT 
	     <9409270409.AA01234@oahu.cs.ucla.edu> 
Date: Mon, 26 Sep 94 21:46:35 -0700
X-Sender: aoki@postgres.Berkeley.EDU
Resent-To: postgres-redist@postgres.Berkeley.EDU
X-Mts: smtp
Resent-Date: Mon, 26 Sep 94 21:46:50 -0700
Resent-XMts: smtp

raj@CS.UCLA.EDU (Raj Vadakkencherry) writes:
> > Paul Brown <pbrown@postgres.Berkeley.EDU> writes:
> > >   I sent this guy a note with the following observation;
> > >    8192 - ( <<n ) / ( 2 * sizeof(double)) = number of points per page.
> > >   At about 500 points  - given that a point is two doubles - you
> > >   hit page size limits. He says he's got 1000 point polygons.
> Sorry for mis-stating my problem - I meant 1000 doubles or 500
>  x,y pairs. In other words all my polygons have <= 500 points,
>  so I guess the 8K limit should not apply.

8KB == 8192B is the limit for the whole page, including the page
header/trailer, the line pointers on the page, tuple header(s), plus
any padding space.  the exact amount of this overhead depends on the
type of computer you have since the size of various C structures will
be different on different architectures.  500 points == 16B * 500 ==
8000B which is reasonably close to the limit.  if you are at or under
500, you are probably safe.

> I'm reading polygon data from the regional data set (S2K benchmark)
> and writing it to another postgres class. The failure of append
> occurs for some really long strings. The error message is
> "unterminated char/string constant"

like i said, i would guess that you hit the 8KB query buffer limit.
edit the files mentioned before, recompile/reinstall and see what
happens.
--
  Paul M. Aoki          |  University of California at Berkeley
  aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
                        |  Berkeley, CA 94720-1776

==============================================================================
   To add/remove yourself to/from the POSTGRES mailing list: send mail with 
   the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU"

   If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
   a human will deal with it.  DO NOT post to the "postgres" mailing list.
==============================================================================
