BUG #5460: Search path not being used in function return type

From: "Karl Walbrecht" <kwalbrecht(at)cghtech(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5460: Search path not being used in function return type
Date: 2010-05-13 11:55:16
Message-ID: 201005131155.o4DBtGui033586@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5460
Logged by: Karl Walbrecht
Email address: kwalbrecht(at)cghtech(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Erwin Brandstetter 2010-05-13 13:19:38 Re: BUG #5460: Search path not being used in function return type
Previous Message Peter Eisentraut 2010-05-13 11:50:33 Re: BUG #5447: VPATH install postgres.bki