Thread: R: [INTERFACES] DefineIndex fails

R: [INTERFACES] DefineIndex fails

From
"Nicholas Boretos"
Date:
Thanx for suggestions,
I was able to resolve this by changing table and field names all to lower
case letters.
In psql, on a linux box I would get the relation to capitoli not found
whether I typed "Capitoli" of "capitoli" for the table name. Seems that psql
does not differentiate between caps and lower case. Same for field names.
The only thingI can think of is that I load an Italian keyboard map?
Anyway, we sahall continue like this for now.
Thanx to all:-)
Nicolas Boretos
-----Messaggio originale-----
Da: Ben Gunter <bgunter@alef.gcsu.edu>
A: PostgreSQL Interfaces <pgsql-interfaces@postgreSQL.org>
Data: domenica 14 marzo 1999 4.02
Oggetto: Re: [INTERFACES] DefineIndex fails


Ben Gunter wrote:

This may sound like an assinine suggestion, but stranger things have
happened...  Are you sure you're connecting to database you think you're
connecting to?  Are you typing this in at the psql prompt or doing it
some other way?  Can you show us a pg_dump of the database schema?

-Ben

Michael Davis wrote:
>
> I have no idea what to check next.
>
>         -----Original Message-----
>         From:   Nicholas Boretos [SMTP:nicolasb@maich.gr]
>         Sent:   Saturday, March 13, 1999 3:13 AM
>         To:     Michael Davis; pgsql-interfaces@postgreSQL.org
>         Subject:        R: [INTERFACES] DefineIndex fails
>
>         Thank you,
>         The spelling is correct and the tables exist; just checked again.
> Anything
>         else I should check?
>         Sincerely,
>         Nicolas Boretos
>         -----Messaggio originale-----
>         Da: Michael Davis <michael.davis@prevuenet.com>
>         A: pgsql-interfaces@postgreSQL.org
<pgsql-interfaces@postgreSQL.org>
>         Data: venerdì 12 marzo 1999 22.46
>         Oggetto: RE: [INTERFACES] DefineIndex fails
>
>         The spelling and/or case of the table name used in the create
index
>         statement.  Make sure the table exists in your Postgres database.
>
>         -----Original Message-----
>         From: Nicholas Boretos [SMTP:nicolasb@maich.gr]
>         Sent: Friday, March 12, 1999 1:52 PM
>         To: pgsql-interfaces@postgreSQL.org
>         Subject: [INTERFACES] DefineIndex fails
>
>         Hello,
>         Managed to figure out my read-only problem using ODBC with Access,
>         and import tables with data. Trying to recreate the keys with
>         CREATE UNIQUE INDEX idx ON table (field)
>
>         fails with DefineIndex: table relation not found.
>         Any clues?
>         tia,
>         Nicolas Boretos
>
>




Re: R: [INTERFACES] DefineIndex fails

From
Michael Meskes
Date:
On Mon, Mar 15, 1999 at 10:20:39AM +0100, Nicholas Boretos wrote:
> Thanx for suggestions,
> I was able to resolve this by changing table and field names all to lower
> case letters.

SQL standard says that case doesn't matter. This is a very common source for
problems when accessing relational database systems through Access since
in Access case matters. You can access a lower case table name by putting it
between two ". That is select * from "a" will access table a, while seelct *
from a will access "A".

Michael

--
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael.Meskes@gmx.net          | Use PostgreSQL!