Re: No Relations Found Error

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: Carlos Mennens <carlos(dot)mennens(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: No Relations Found Error
Date: 2010-09-30 19:43:11
Message-ID: 4CA4E84F.9000901@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 30/09/2010 20:33, Carlos Mennens wrote:
> On Thu, Sep 30, 2010 at 3:31 PM, Raymond O'Donnell<rod(at)iol(dot)ie> wrote:
>> Are the tables in a schema other than "public"? Enter "\dn" at the psql
>> prompt to see what schemas are there.
>
> Perhaps not. I wasn't aware of that. When I created the database
> before I created and tables, I used the following command:
>
> "createlang plpgsql wiki"
>
> Could that be why I don't see them?

No, not at all - that just installs the pl/pgsql language in the
database. However....

> wiki=# \dn
> List of schemas
> Name | Owner
> --------------------+----------
> information_schema | postgres
> mediawiki | wiki

...it looks as if MediaWiki has created a schema for itself during the
installation procedure, and that's where the tables and stuff are.

If you're not familiar with schemas, here's the section of the docs you
need to read:

http://www.postgresql.org/docs/9.0/static/ddl-schemas.html

Have a look at section 5.3.7 on the search path in particular, as this
will make your life much easier when using psql. :-)

Ray.

--
Raymond O'Donnell :: Galway :: Ireland
rod(at)iol(dot)ie

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2010-09-30 19:44:09 Re: No Relations Found Error
Previous Message Carlos Mennens 2010-09-30 19:33:44 Re: No Relations Found Error