Re: Got error on CREATE TABLE AS (+Bug?) - Mailing list pgsql-general

From Tom Lane
Subject Re: Got error on CREATE TABLE AS (+Bug?)
Date
Msg-id 18665.1004936547@sss.pgh.pa.us
Whole thread Raw
In response to Re: Got error on CREATE TABLE AS (+Bug?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Got error on CREATE TABLE AS (+Bug?)  ("Jeff Lu" <jklcom@mindspring.com>)
List pgsql-general
Tom Lane <tgl@sss.pgh.pa.us> writes:
> "Command Prompt, Inc." <pgsql-general@commandprompt.com> writes:
>> lx=# CREATE TABLE abc (a char, b char, c char);
>> CREATE
>> lx=# CREATE TABLE xyz (x, y, z) AS SELECT * FROM abc;
>> ERROR:  CREATE TABLE/AS SELECT has mismatched column count
>> lx=# CREATE TABLE xyz (x, y, z) AS SELECT a, b, c FROM abc;
>> SELECT

> Looks like a bug to me too.  Will look into it.

Fix committed for 7.2.

            regards, tom lane

pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: My new job
Next
From: "Eric Ridge"
Date:
Subject: query parsing bug?