Re: [GENERAL] Why is table not found? - Mailing list pgsql-general

From Alban Hertroys
Subject Re: [GENERAL] Why is table not found?
Date
Msg-id 48F2DECC-86EF-48C4-BD59-FBD390F5B472@gmail.com
Whole thread Raw
In response to [GENERAL] Why is table not found?  (Egon Frerich <egon@frerich.eu>)
List pgsql-general
> On 31 Jan 2017, at 14:45, Egon Frerich <egon@frerich.eu> wrote:
>>
>> CREATE TABLE "Raum"
>> (
>>  "RaumID" serial NOT NULL, -- Automatisch vergebenes

> But psql tells me "Raum" is not existent:
>
>> egon@xfEinzel ~ $ psql Hausrat
>> psql (9.3.15)
>> Type "help" for help.
>>
>> Hausrat=# SELECT * FROM Raum;
>> ERROR:  relation "raum" does not exist
>> LINE 1: SELECT * FROM Raum;

Instead of adding quotes to your select statement (as others suggested), IMHO the better thing to do is to remove them
fromyour create statements. Most of the time there is no benefit creating case-sensitive identifiers in a database. 

Alban Hertroys
--
If you can't see the forest for the trees,
cut the trees and you'll find there is no forest.



pgsql-general by date:

Previous
From: John McKown
Date:
Subject: Re: [GENERAL] Why is table not found?
Next
From: Egon Frerich
Date:
Subject: Re: [GENERAL] Why is table not found?