Re: Per-function search_path => per-function GUC settings

From: John DeSoi <desoi(at)pgedit(dot)com>
To: Brendan Jurd <direvus(at)gmail(dot)com>
Cc: "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Per-function search_path => per-function GUC settings
Date: 2007-09-01 19:56:29
Message-ID: 0FDD47E1-D9F7-4479-B829-32947EBC7DB4@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Sep 1, 2007, at 1:36 PM, Brendan Jurd wrote:

> So if we integrated the GUC settings into CREATE FUNCTION, we'd end up
> writing something like
>
> CREATE FUNCTION foo(int) RETURNS int AS $$
> ...
> $$
> LANGUAGE plpgsql
> STABLE
> STRICT
> SECURITY DEFINER
> RESET search_path
> SET regex_flavor = 'cinnamon';
>
> That doesn't seem especially horrible. In what way do you feel it is
> inconsistent with existing syntax?

I like this and would really like to see way to set everything using
CREATE FUNCTION. Using ALTER only requires maintaining a separate
copy of of function arguments which can be a hassle for large
argument lists.

John DeSoi, Ph.D.
http://pgedit.com/
Power Tools for PostgreSQL

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian G. Pflug 2007-09-01 21:13:08 Re: [PATCH] Lazy xid assingment V2
Previous Message Florian G. Pflug 2007-09-01 19:52:55 Re: [PATCH] Lazy xid assingment V2