Re: [HACKERS] union problem version 6.5.3

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Frans Van Elsacker <fve(at)atbib(dot)be>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] union problem version 6.5.3
Date: 1999-11-14 18:47:13
Message-ID: 7219.942605233@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

>>> Hmm, the grammar has
>>>
>>> CreateAsStmt: CREATE OptTemp TABLE relation_name OptCreateAs AS SubSelect
>>>
>>> and SubSelect doesn't allow unions. This is overly restrictive,

As far as I can tell, it should work to just change the above line in
src/backend/parser/gram.y to

CreateAsStmt: CREATE OptTemp TABLE relation_name OptCreateAs AS SelectStmt

I am doing this in current sources right now. I have not tried it in
REL6_5, but if the problem is getting in your way then give it a try...

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Adriaan Joubert 1999-11-14 19:17:33 Help with SPI and oids
Previous Message Peter Eisentraut 1999-11-14 18:34:26 Re: [HACKERS] Status of sql_help.h