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 10454.1004922114@sss.pgh.pa.us
Whole thread Raw
In response to Re: Got error on CREATE TABLE AS (+Bug?)  ("Command Prompt, Inc." <pgsql-general@commandprompt.com>)
Responses Re: Got error on CREATE TABLE AS (+Bug?)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
"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.

            regards, tom lane

pgsql-general by date:

Previous
From: "Dr. Evil"
Date:
Subject: Re: newbie question
Next
From: Tom Lane
Date:
Subject: Re: Table definitions using CHECK and DEFAULT