Skip site navigation (1) Skip section navigation (2)

Re: Created objects not visible

From: Kretschmer Andreas <andreas_kretschmer(at)despammed(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: Created objects not visible
Date: 2005-08-27 06:46:12
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
Alex du Plessis <alxdp(at)telkomsa(dot)net> schrieb:

> Hi - I'm very new to pgsql and still very stupid. Can someone point me in 
> the right direction pls.
> I run server v8.0 on an XP box and when I create new schems and tables in a 
> database with PGAdminIII they seem to create ok.  Unfortunately, everything 
> created is not visible outside of PGAdminIII. can't even see anything with 
> psql. What am I doing wrong?

I guess, you must set the search_path to the correct schema. A little

test=> create schema foo;
test=> create table foo.footest (id int);
test=> \d footest
Did not find any relation named "footest".
-- the schema foo is not in the search_path
-- you must specify the path
test=> \d foo.footest
     Table "foo.footest"
 Column |  Type   | Modifiers
 id     | integer |

-- now i set the search_path
test=> set search_path=foo,public;

-- and now i have the schema foo in my search_path
test=> \d footest
     Table "foo.footest"
 Column |  Type   | Modifiers
 id     | integer |

Regards, Andreas
Diese Message wurde erstellt mit freundlicher Unterstützung eines freilau-
fenden Pinguins aus artgerechter Freilandhaltung.   Er ist garantiert frei
von Micro$oft'schen Viren. (#97922     GPG 7F4584DA
Was, Sie wissen nicht, wo Kaufbach ist? Hier: N 51.05082°, E 13.56889° ;-)

In response to


pgsql-novice by date

Next:From: Tom LaneDate: 2005-08-27 14:40:04
Subject: Re: Created objects not visible
Previous:From: Michael FuhrDate: 2005-08-27 05:19:06
Subject: Re: LOG entries: "could not receive data from client" ?

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group