X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A12D7329C7B for ; Sun, 12 Sep 2004 21:33:42 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 21544-01 for ; Sun, 12 Sep 2004 20:33:38 +0000 (GMT) Received: from lakermmtao06.cox.net (lakermmtao06.cox.net [68.230.240.33]) by svr1.postgresql.org (Postfix) with ESMTP id 85911329C63 for ; Sun, 12 Sep 2004 21:33:38 +0100 (BST) Received: from [10.0.1.186] (really [68.13.146.225]) by lakermmtao06.cox.net (InterMail vM.6.01.03.02.01 201-2131-111-104-103-20040709) with ESMTP id <20040912203336.UTXI10360.lakermmtao06.cox.net@[10.0.1.186]>; Sun, 12 Sep 2004 16:33:36 -0400 Message-ID: <4144B2A2.2070506@cox.net> Date: Sun, 12 Sep 2004 15:33:38 -0500 From: =?ISO-8859-1?Q?m=D8ntar3?= Reply-To: m0ntar3@cox.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040608 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Michael Glaesemann Cc: pgsql-sql@postgresql.org Subject: Re: create unique index schema.index_name on table (column)? References: <8rJ0d.57642$nk.2844@okepread05> <64E33C90-047F-11D9-9715-000A95C88220@myrealbox.com> In-Reply-To: <64E33C90-047F-11D9-9715-000A95C88220@myrealbox.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=FROM_HAS_MIXED_NUMS X-Spam-Level: X-Archive-Number: 200409/98 X-Sequence-Number: 18944 I'm working with a closed source application that reads an ASCII file and as it does it (via ODBC) creates tables and indexes, inserting as it goes. Like so: CREATE TABLE bgsuser.CAXCTRLD ( CTRLS INTEGER, INTVL INTEGER); CREATE UNIQUE INDEX bgsuser.PRIMARY_CAXCTRLD ON bgsuser.CAXCTRLD (CTRLS,INTVL); INSERT ... INSERT ... The application is designed to work through ODBC and psqlODBC does a great job. My problem is the username (schema qualifier) on the create index statement. I've decided it's easiest to copy/paste/modify the create statements from the ODBC trace logs.. oh, well. Michael Glaesemann wrote: > > On Sep 12, 2004, at 5:42 AM, m0ntar3@cox.net wrote: > >> Is the syntax "schema_name.index_name" for create unique index wrong, >> unsupported or what? I know is doesn't work as postgres kicks me back >> a syntax error each time (version 7.3.2 & 7.4.5). -sigh- > > > Could you give a full example (including the error) of what you're > doing? It's kind of hard to give a suggestion based on your brief > description. > > Michael > >