Re: [HACKERS] union problem version 6.5.3

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] union problem version 6.5.3
Дата
Msg-id 7219.942605233@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] union problem version 6.5.3  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] My bits moved right off the end of the world...
Следующее
От: Adriaan Joubert
Дата:
Сообщение: Help with SPI and oids