Re: Simple list tables question - Mailing list pgsql-novice

From Tom Lane
Subject Re: Simple list tables question
Date
Msg-id 25781.1079886290@sss.pgh.pa.us
Whole thread Raw
In response to Simple list tables question  (Mihai Tanasescu <Mihai.Tanasescu@skyraven.pcnet.ro>)
Responses Re: Simple list tables question
List pgsql-novice
Mihai Tanasescu <Mihai.Tanasescu@skyraven.pcnet.ro> writes:
>     If I login with user bbstatus to database bbstatus then I can do a
> "\dt" and show the tables it contains but if I login with user postgres
> which is a superuser and I try a "\dt" I get no results.

It's got nothing to do with permissions --- it has to do with your
search path.  Schema bbstatus isn't in postgres' default search path
and so by default \dt doesn't show its contents.

You could see 'em with \dt *.* or \dt bbstatus.*, or you could set
search_path to include bbstatus.

            regards, tom lane

pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: Creating Functions & Triggers
Next
From: Kevin Lohka
Date:
Subject: Re: Creating Functions & Triggers