Received: from davinci.ethosmedia.com (davinci.ethosmedia.com [209.10.40.250]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f29GnCx82818 for ; Fri, 9 Mar 2001 11:49:12 -0500 (EST) (envelope-from josh@agliodbs.com) Received: from [209.10.40.250] (account ) by davinci.ethosmedia.com (CommuniGate Pro WebUser 3.4.1) with HTTP id 22755; Fri, 09 Mar 2001 08:49:08 -0800 From: "Josh Berkus" Subject: Re: cannot get CREATE TABLE AS to work To: "Creager, Robert S" Cc: pgsql-sql@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.3.4.1 Date: Fri, 09 Mar 2001 08:49:08 -0800 Message-ID: In-Reply-To: <10FE17AD5F7ED31188CE002048406DE8514CDD@lsv-msg06.stortek.com> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit X-Archive-Number: 200103/197 X-Sequence-Number: 1851 Robert, I can't help you with your performance problem, but I can help you with CREATE TABLE AS. You've mistaken the syntax; CREATE TABLE AS does not use column definitions other than the query. Thus, the correct syntax should be: > create table observationsII > AS select o.ra, o.decl, o.mag, o.smag, o.file_id from > observations o; -Josh Berkus ______AGLIO DATABASE SOLUTIONS___________________________ Josh Berkus Complete information technology josh@agliodbs.com and data management solutions (415) 565-7293 for law firms, small businesses fax 621-2533 and non-profit organizations. San Francisco