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>, 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 05:02:27
Message-ID: 18665.1004936547@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
> "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.

Fix committed for 7.2.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message ananth 2001-11-05 05:31:38 how to return more than one item from function?
Previous Message Bruce Momjian 2001-11-05 04:39:23 Re: My new job