pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
R: [INTERFACES] DefineIndex fails
3+ messages / 2 participants
[nested] [flat]

* R: [INTERFACES] DefineIndex fails
@ 1999-03-13 10:12  Nicholas Boretos <nicolasb@maich.gr>
  0 siblings, 0 replies; 3+ messages in thread

From: Nicholas Boretos @ 1999-03-13 10:12 UTC (permalink / raw)
  To: Michael Davis <michael.davis@prevuenet.com>; pgsql-interfaces

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






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* R: [INTERFACES] DefineIndex fails
@ 1999-03-15 09:20  Nicholas Boretos <nicolasb@maich.gr>
  0 siblings, 1 reply; 3+ messages in thread

From: Nicholas Boretos @ 1999-03-15 09:20 UTC (permalink / raw)
  To: Ben Gunter <bgunter@alef.gcsu.edu>; pgsql-interfaces

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
>
>






^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: R: [INTERFACES] DefineIndex fails
@ 1999-03-15 18:41  Michael Meskes <meskes@postgresql.org>
  parent: Nicholas Boretos <nicolasb@maich.gr>
  0 siblings, 0 replies; 3+ messages in thread

From: Michael Meskes @ 1999-03-15 18:41 UTC (permalink / raw)
  To: pgsql-interfaces

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!



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~1999-03-15 18:41 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-03-13 10:12 R: [INTERFACES] DefineIndex fails Nicholas Boretos <nicolasb@maich.gr>
1999-03-15 09:20 R: [INTERFACES] DefineIndex fails Nicholas Boretos <nicolasb@maich.gr>
1999-03-15 18:41 ` Michael Meskes <meskes@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox