Re: Why is table not found?

From: Egon Frerich <egon(at)frerich(dot)eu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Why is table not found?
Date: 2017-01-31 14:17:52
Message-ID: cedc3721-e792-0b1e-a328-51108fc05aed@frerich.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you all for your answers.

You see: it is a newbie question.

Egon

Am 31.01.2017 um 14:45 schrieb Egon Frerich:
>
> I created a db 'Hausrat' with a table "Raum". If I look in pgadmin I
> find the the table. In sql field is shown:
>
> > -- Table: "Raum"
>
> > -- DROP TABLE "Raum";
>
> > CREATE TABLE "Raum"
> > (
> > "RaumID" serial NOT NULL, -- Automatisch vergebenes
> Identifizierungsmerkmal für den Raum
> > "Raum" character varying(15), -- Bezeichnung des Raums
> > CONSTRAINT "Raum_pkey" PRIMARY KEY ("RaumID")
> > )
> > WITH (
> > OIDS=FALSE
> > );
> > ALTER TABLE "Raum"
> > OWNER TO egon;
> > COMMENT ON COLUMN "Raum"."RaumID" IS 'Automatisch vergebenes
> Identifizierungsmerkmal für den Raum';
> > COMMENT ON COLUMN "Raum"."Raum" IS 'Bezeichnung des Raums';
>
>
> > -- Index: "Raum_RaumID_idx"
>
> > -- DROP INDEX "Raum_RaumID_idx";
>
> > CREATE INDEX "Raum_RaumID_idx"
> > ON "Raum"
> > USING btree
> > ("RaumID");
>
> But psql tells me "Raum" is not existent:
>
> > egon(at)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;
> > ^
> > Hausrat=#
>
> Why?
>
> Egon
>
> > > >

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Andres Freund 2017-01-31 16:51:22 Re: Causeless CPU load waves in backend, on windows, 9.5.5 (EDB binary).
Previous Message Alban Hertroys 2017-01-31 14:00:43 Re: Why is table not found?