Return-Path: aoki
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA00268; Tue, 3 Aug 93 12:25:59 -0700
Message-Id: <9308031925.AA00268@postgres.Berkeley.EDU>
From: aoki@postgres.berkeley.edu (Paul M. Aoki)
Subject: Re: sort by-clause in PG4.0.1
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
In-Reply-To: Your message of Tue, 3 Aug 93 15:52:14 MET DST 
	     <9308031345.AA18804@postgres.Berkeley.EDU> 
Date: Tue, 03 Aug 93 12:32:59 -0700
Sender: aoki@postgres.Berkeley.EDU
X-Mts: smtp

SEP Lutz <gesamic@isa.informatik.th-darmstadt.de> writes:
> Is this a bug in version 4.0.1 or a problem specific to the
> Linux port of POSTGRES (perhaps because of incompatibilities between
> lex/flex or yacc/bison versions)?

kai's linux ports have substantial parser hacks to make the postgres
parser work with flex/byacc.   by an amazing coincidence, his 4.1 port 
contains the following change to gram.y :

> +       /*
> +        * kai:
> +        * this is a hack to make byacc work! (The order-reversed grammar
> +        * does never allow a SORT after a from_clause, and byacc fails to
> +        * early, if it reads SORT!).
> +        */
> +       | FROM from_list SORT
> +               {
> +                       $$ = $2;
> +                       SkipBackToTlist(1);
> +               }
> 	| /*empty*/                             { NULLTREE ; }
> 	;

so i would advise you to get his 4.1 port.  (it's in the same
linux archives as the 4.0.1 port.)

> If it is a bug in PG 4.0.1, would you please be so kind to mail me
> me which files were changed to 4.1 and a copy of these changes.

this is not a reasonable thing to do.  the source tree structure 
changed too much from 4.0.1 to 4.1.

> If it is a problem of the Linux port, please also send me a short notice,
> and I will contact Kai Petzke about the problem.

if you have any other problems with the linux port, you had best do 
this in any case.  i'm in the process of folding in kai's changes but 
we do not support the linux ports here.
--
  Paul M. Aoki  |  CS Div., Dept. of EECS, UCB  |  aoki@postgres.Berkeley.EDU
                |  Berkeley, CA 94720           |  ...!uunet!ucbvax!aoki
