Re: [Fwd: Schema Question] - Mailing list pgsql-general

From Jim C. Nasby
Subject Re: [Fwd: Schema Question]
Date
Msg-id 20060304033623.GQ82012@pervasive.com
Whole thread Raw
In response to [Fwd: Schema Question]  (Oisin Glynn <me@oisinglynn.com>)
List pgsql-general
On Thu, Mar 02, 2006 at 03:45:01PM -0500, Oisin Glynn wrote:
> I have a seperate schema with a function and table. The function does a
> select on the table.
> The table  and function exist in public schema and betteridea schema. I
> have a user betteridea who owns the betteridea schema.
<snip>
> If I connect as postgres user and do select * from
> betteridea.zfunc_get_employee('1234');
> or
> select * from zfunc_get_employee('1234');
>
> with no schema in front of it.
> It is returning the data from the public.employee_list in both cases!

Take a look at searh_path in the manual.
--
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461

pgsql-general by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: Solaris 10 ZFS Postgresql request for comments
Next
From: Michael Fuhr
Date:
Subject: Re: record OID to table