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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Karl Walbrecht" <kwalbrecht(at)cghtech(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5460: Search path not being used in function return type
Date: 2010-05-13 14:23:50
Message-ID: 29108.1273760630@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Karl Walbrecht" <kwalbrecht(at)cghtech(dot)com> writes:
> Description: Search path not being used in function return type

Works as expected for me ...

$ psql
psql (8.4.3)
Type "help" for help.

regression=# create schema security;
CREATE SCHEMA
regression=# create type security.entities as enum ('a','b');
CREATE TYPE
regression=# set search_path = security, public;
SET
regression=# CREATE OR REPLACE FUNCTION sec_authorization_check_all(
v_entity_name varchar
) RETURNS setof security.entities AS $$
select 'a'::security.entities$$ language sql;
CREATE FUNCTION
regression=# CREATE OR REPLACE FUNCTION sec_authorization_check_all(
v_entity_name varchar
) RETURNS setof entities AS $$
select 'a'::security.entities$$ language sql;
CREATE FUNCTION
regression=#

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-05-13 15:24:47 Re: Giant TOAST tables due to many almost empty pages
Previous Message Erwin Brandstetter 2010-05-13 13:19:38 Re: BUG #5460: Search path not being used in function return type