Re: SET WITHOUT CLUSTER patch - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SET WITHOUT CLUSTER patch
Date
Msg-id 20541.1079676758@sss.pgh.pa.us
Whole thread Raw
In response to SET WITHOUT CLUSTER patch  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Responses Re: SET WITHOUT CLUSTER patch  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
List pgsql-hackers
Christopher Kings-Lynne <chriskl@familyhealth.com.au> writes:
> This is the new grammar that I added:

> | ALTER TABLE relation_expr SET WITHOUT CLUSTER

> Now, I have to change that relation_expr to qualified_name.  However, 
> this causes shift/reduce errors. (Due to ALTER TABLE relation_expr SET 
> WITHOUT OIDS.)

Well, seems like what you have to do is leave it as relation_expr
as far as bison is concerned, but test in the C-code action and error
out if "*" was specified.  (Accepting ONLY seems alright to me.)

You could possibly find a solution at the grammar level but it'd
probably be a much worse kluge ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Christopher Kings-Lynne
Date:
Subject: SET WITHOUT CLUSTER patch
Next
From: Tom Lane
Date:
Subject: Re: Authentication drop-down?