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 VAA05023 for postgres-redist; Mon, 26 Sep 1994 21:09:27 -0700
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199409270409.VAA05023@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from oahu.cs.ucla.edu (Oahu.CS.UCLA.EDU [131.179.128.12]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id VAA05012 for <postgres@postgres.berkeley.edu>; Mon, 26 Sep 1994 21:09:25 -0700
Received: by oahu.cs.ucla.edu
	(Sendmail 4.1/3.26) id AA01234;
	Mon, 26 Sep 94 21:09:17 PDT
Date: Mon, 26 Sep 94 21:09:17 PDT
From: raj@CS.UCLA.EDU (Raj Vadakkencherry)
Message-Id: <9409270409.AA01234@oahu.cs.ucla.edu>
To: postgres@postgres.Berkeley.EDU
Subject: Re: Failure of append
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Mon, 26 Sep 94 21:09:27 -0700
Resent-XMts: smtp

> X-Mts: smtp
> 
> 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.
> 
> that's a good point, though he won't have tripped over that problem
> yet.
> 
> george hartzell once did a recursive grep for 8192, changing every
> instance of 8192 to something much larger, and that somehow worked.
> 
> the better solution is large objects, which do not have to be loaded
> through a query interface and do not have to be stored on one page.
> --
>   Paul M. Aoki          |  University of California at Berkeley
>   aoki@CS.Berkeley.EDU  |  Dept. of EECS, Computer Science Division (#1776) 
>                         |  Berkeley, CA 94720-1776
> 

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.

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". Here are some examples, if you would excuse the voluminous
output :-)

Here's an append that works (append string length 216)

append foo "(landuse="11"::int4,location="(-1.95e+06,-1.55e+05,-1.55e+05,-1.95e+06,-1.95e+06,-1.55e+05,-1.55e+05,-1.95e+06,-1.95e+06,-1.55e+05,-1.55e+05,-1.95e+06,-1.95e+06,-1.55e+05,-1.55e+05,-1.95e+06)"::polygon)


Here's an append that dosen't work: (string length 8580)

Error msg: WARN:Sep 26 20:23:39:*** scanner error: Unterminated char/string constant


append foo (landuse="11"::int4,location="(-1.95e+06,-4.68e+05,-4.68e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.59e+05,-4.59e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+06,-4.6e+05,-4.6e+05,-1.95e+06,-1.95e+!
06,-4.6e+05,-4.6e+05,-1.95e+06,-1


Since there are fewer than 500 points I think I will not hit the 8K limit, in either case. What else is the problem ?

Thanks,
Raj















==============================================================================
   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.
==============================================================================
