Re: Got error on CREATE TABLE AS (+Bug?)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Command Prompt, Inc(dot)" <pgsql-general(at)commandprompt(dot)com>
Cc: Jeff Lu <jklcom(at)mindspring(dot)com>, Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Got error on CREATE TABLE AS (+Bug?)
Date: 2001-11-05 01:01:54
Message-ID: 10454.1004922114@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Command Prompt, Inc." <pgsql-general(at)commandprompt(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-11-05 01:04:11 Re: Table definitions using CHECK and DEFAULT
Previous Message Dr. Evil 2001-11-05 00:43:45 Re: newbie question