From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu> |
Cc: | Postgres Hackers List <hackers(at)postgreSQL(dot)org>, Jan Wieck <jwieck(at)debis(dot)com> |
Subject: | Re: [HACKERS] gram.y foreign keys |
Date: | 2000-02-19 09:07:28 |
Message-ID: | 200002190907.EAA03479@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Let me know if you want to discussed this over the phone for ideas.
> OK, I've put in fixes to get Jan up and running on column foreign
> keys. The current fix forces NOT NULL arguments to be near the
> beginning of a column constraint list, and enforces the SQL92
> requirement that the DEFAULT clause occur nearly first in a column
> constraint.
>
> As Jan probably already knows, the shift/reduce conflicts all happened
> as a result of NOT NULL and NOT DEFERRABLE clauses; removing either
> eliminated the conflicts.
>
> I poked at it for *hours*, and have not yet stumbled on the correct
> layout to give full flexibility while allowing the new constraint
> attributes. Jan was thinking that he needed some token lookahead to do
> this, but I'll be suprised if that is required to solve this for the
> SQL92 case: it would be the first and only instance of syntax which
> can not be solved by our yacc parser and istm that the spec would try
> to stay away from that. The successful technique for fixing this will
> likely involve unrolling more clauses to allow yacc to juggle more
> clauses simultaneously before forcing a shift/reduce operation.
>
> I'm leaving town through next weekend (back the 28th) and can pick
> this up for more work then.
>
> btw, regression tests pass except for the rules test with known
> formatting differences.
>
> - Thomas
>
> --
> Thomas Lockhart lockhart(at)alumni(dot)caltech(dot)edu
> South Pasadena, California
>
> ************
>
--
Bruce Momjian | http://www.op.net/~candle
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2000-02-19 12:01:55 | Re: UESQLC |
Previous Message | Thomas Lockhart | 2000-02-19 08:34:11 | gram.y foreign keys |