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

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

Thanks,
will this be fixed on the next release?

-----Original Message-----
From: pgsql-general-owner(at)postgresql(dot)org
[mailto:pgsql-general-owner(at)postgresql(dot)org]On Behalf Of Tom Lane
Sent: Sunday, November 04, 2001 9:02 PM
To: Command Prompt, Inc.; Jeff Lu; Postgresql General
Subject: Re: [GENERAL] Got error on CREATE TABLE AS (+Bug?)

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

---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Lu 2001-11-05 17:23:59 Re: Got error on CREATE TABLE AS (+Bug?)
Previous Message Eric Day 2001-11-05 17:22:24 Re: Stored procedures