Set search_path - Mailing list pgsql-novice

From Michael A Weber
Subject Set search_path
Date
Msg-id 20040515190019.AC0B3CF696A@www.postgresql.com
Whole thread Raw
Responses Re: Set search_path
Re: Set search_path
List pgsql-novice

I am attempting to change my schema search path to my newly-created schema, which isn’t functioning correctly.

 

When I initially show search_path, it gives me $Users, public, which is expected.

 

When I perform set search_path TO newpath, I am told that it was performed correctly.

 

When I then show search_path, it shows me newpath, which is correct and expected.

 

If I attempt to do a query of, say Select * from Users, it fails with ‘relation “users” does not exist.

 

Show search_path still returns newpath

 

If I open a new SQL query window and show search_path, I see $users, public returned.

 

Is there a way to make it ‘stick’ as it seems that it isn’t sticking?  Or, am I missing something completely?  Please help!

 

Michael A Weber

Weber Racing Equipment, Inc.

440-327-7702

440-327-6899 fax

mweber@4wre.com

 

pgsql-novice by date:

Previous
From: joseph speigle
Date:
Subject: Re: timestamp error
Next
From: "Nick Allan"
Date:
Subject: Problem with public schema