Re: Per-function configuration parameters loss

From: Dave Page <dpage(at)pgadmin(dot)org>
To: Dmitry Samokhin <sdld(at)mail(dot)ru>
Cc: pgadmin-support <pgadmin-support(at)postgresql(dot)org>
Subject: Re: Per-function configuration parameters loss
Date: 2009-10-06 02:42:25
Message-ID: 937d27e10910051942u380fbad0nd53bcba35dcd7f08@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

2009/10/2 Dmitry Samokhin <sdld(at)mail(dot)ru>:
> When any server configuration parameters (or variables) are set on a
> per-function basis, the script displayed in the pgAdmin SQL pane looks like
> this:
>
> CREATE OR REPLACE FUNCTION ... ;
> ALTER FUNCTION ... SET ...;
>
> If then I edit the function body and save my work, all variables are lost,
> since (it can be cheked easily) pgAdmin does not generate neither SET option
> in the CREATE OR REPLACE FUNCTION command nor separate ALTER FUNCTION ...
> SET ... one.
>
> This is critical since for security reasons functions with the SECURITY
> DEFINER option should contain appropriate 'search_path' variable setting.
> And now a DB developer/admin has to double-check per-function variables when
> editing functions using pgAdmin.

Thanks - fixed in SVN for 1.10.1

--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Ian Wood 2009-10-06 03:05:02 Availability of pgAdmin 1.10.0 for Sparc Solaris
Previous Message Dave Page 2009-10-06 02:42:19 Re: Foreign key to column on same table at table creation time