X-Original-To: pgsql-sql@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 47D17475925 for ; Sun, 23 Feb 2003 18:00:02 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 37059-01 for ; Sun, 23 Feb 2003 17:59:51 -0500 (EST) Received: from davinci.ethosmedia.com (unknown [209.10.40.251]) by postgresql.org (Postfix) with ESMTP id 3D587474E53 for ; Sun, 23 Feb 2003 17:58:31 -0500 (EST) Received: from [63.195.55.98] (HELO spooky) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 2853932; Sun, 23 Feb 2003 14:58:32 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Organization: Aglio Database Solutions To: , Subject: Re: SQL Statements question, why I get errors... Date: Sun, 23 Feb 2003 14:57:47 -0800 User-Agent: KMail/1.4.3 References: <1519.192.168.100.1.1046038673.squirrel@mail.horistjr.com> In-Reply-To: <1519.192.168.100.1.1046038673.squirrel@mail.horistjr.com> MIME-Version: 1.0 Message-Id: <200302231457.47596.josh@agliodbs.com> Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/518 X-Sequence-Number: 11916 "Plist," > I work a software company and our software is run on databases.. We have > no problem using MS SQL, DB2, ect... One of my customers wanted to try > and use POSTGRESQL.. He tried it and is having problems, so I downloaded > it and am running it on my Red Hat 7.3 box.. I am running version 7.3.2 > of Postgresql.. I hope this is the right place to ask this.. When we > first launch our program we create several tables... Here is an example > of one table we create: You're in for a long, painful process if you think you can port a productio= n=20 application to PostgreSQL (or between *any* two database platforms) without= =20 an expert DBA. Perhaps you should consider a consultant? > create table test (f1 int, f2 char(30), f3 char(30), f4 char(30)) > create unique index itest on test (f1 asc) Some databases (MSSQL) require seperate indexes for ascending (ASC) and=20 descending (DESC) sorts. Postgresql does not; since 7.2.0, we have been ab= le=20 to use the same index for both types of sorts. As such, Postgresql does no= t=20 support the "ASC" syntax in index creation. Simply change your statement t= o: create unique index itest on test (f1); ... and it will work. --=20 Josh Berkus Aglio Database Solutions San Francisco