BUG #5460: Search path not being used in function return type - Mailing list pgsql-bugs

From Karl Walbrecht
Subject BUG #5460: Search path not being used in function return type
Date
Msg-id 201005131155.o4DBtGui033586@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #5460: Search path not being used in function return type  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
The following bug has been logged online:

Bug reference:      5460
Logged by:          Karl Walbrecht
Email address:      kwalbrecht@cghtech.com
PostgreSQL version: 8.4.3
Operating system:   Solaris x86 64 bit
Description:        Search path not being used in function return type
Details:

# show search_path;
   search_path
------------------
 security, public

-- This works
CREATE OR REPLACE FUNCTION sec_authorization_check_all(
    v_entity_name varchar
) RETURNS setof security.entities AS

-- This does not
CREATE OR REPLACE FUNCTION sec_authorization_check_all(
    v_entity_name varchar
) RETURNS setof entities AS

psql:./functions/sec_authorization_check_all.sql:41: ERROR:  type "entities"
does not exist

pgsql-bugs by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: BUG #5447: VPATH install postgres.bki
Next
From: Erwin Brandstetter
Date:
Subject: Re: BUG #5460: Search path not being used in function return type