Re: [GENERAL] pg_temp implicit search path: functions vs. tables

2010-10-20 Thread Josh Kupershmidt
On Thu, Oct 21, 2010 at 12:47 AM, Tom Lane wrote: > Josh Kupershmidt writes: >> pg_temp is being implicitly included in the default search path when >> looking for tables, but not for functions. Is there a reason for this >> difference? > > Yes.  They used to be the same, but awhile back we decid

Re: [GENERAL] pg_temp implicit search path: functions vs. tables

2010-10-20 Thread Tom Lane
Josh Kupershmidt writes: > pg_temp is being implicitly included in the default search path when > looking for tables, but not for functions. Is there a reason for this > difference? Yes. They used to be the same, but awhile back we decided it was a security hole to look for functions or operator

[GENERAL] pg_temp implicit search path: functions vs. tables

2010-10-20 Thread Josh Kupershmidt
Hi all, I notice slightly different handling of the implicit search_path for temporary tables and temporary functions. Consider: (with a default search path): # SHOW search_path; search_path "$user",public (1 row) BEGIN; CREATE TABLE pg_temp.bar(); CREATE FUNCTION pg_t