Re: [HACKERS] Bug? CREATE TABLE AS (... UNION ...)

2007-01-30 Thread Tom Lane
Gregory Stark <[EMAIL PROTECTED]> writes: > Hm, it appears I have this wrong somehow since I can create tables using > CREATE TABLE AS specifying tablespaces just fine. But I do't see how it can > work. Look at the first few lines of transformSetOperationStmt. regards, tom

Re: [HACKERS] Bug? CREATE TABLE AS (... UNION ...)

2007-01-30 Thread Gregory Stark
"Gregory Stark" <[EMAIL PROTECTED]> writes: > Should I just copy the same code over or is anyone interested in refactoring > this? Or do I have it wrong somehow? Hm, it appears I have this wrong somehow since I can create tables using CREATE TABLE AS specifying tablespaces just fine. But I do't s

[HACKERS] Bug? CREATE TABLE AS (... UNION ...)

2007-01-30 Thread Gregory Stark
I think I found a bug, or at least a discrepancy. Afaict the transformSetOperationsStmt function should have identical code to transformSelectStmt outside of the operations affected by set operations. If that's the case then the SELECT INTO/CREATE TABLE AS code was not updated when last it was to