Re: [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFE support for functions missing

From: Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>
To: Dave Page <dave(dot)page(at)enterprisedb(dot)com>
Cc: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFE support for functions missing
Date: 2017-02-03 13:59:06
Message-ID: CAFOhELdfheYVqBeW_7M1_gnS-cw=HhYd7sJffc6F8ittP0moog@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers

On Fri, Feb 3, 2017 at 7:02 PM, Dave Page <dave(dot)page(at)enterprisedb(dot)com>
wrote:

> I doubt the order matters, but feel free to change it if it bugs you :-)
>
>
I have tried to create the function with both SQL commands.
There is no bug, its just in pgAdmin4, if its not leakproof then we
mentioned 'NOT LEAKPROOF' in the SQL.
So, I am not sure, we should remove it or not.

On Fri, Feb 3, 2017 at 12:54 PM, Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com
> > wrote:
>
>> Hi Dave
>>
>> I have reviewed the patch and after applying it output in pgAdmin4
>>
>> CREATE OR REPLACE FUNCTION public.st_intersects(geom1 geometry, geom2
>> geometry)
>> RETURNS boolean
>> LANGUAGE 'sql'
>> COST 100.0
>> *IMMUTABLE NOT LEAKPROOF *
>> * PARALLEL SAFE*
>> AS $function$
>> SELECT $1 OPERATOR(public.&&) $2 AND public._ST_Intersects($1,$2)
>> $function$;
>>
>> but as per psql it should be
>>
>> CREATE OR REPLACE FUNCTION public.st_intersects(geom1 geometry, geom2
>> geometry)
>>
>> RETURNS boolean
>>
>> LANGUAGE sql
>>
>> *IMMUTABLE PARALLEL SAFE*
>>
>> AS $function$SELECT $1 OPERATOR(public.&&) $2 AND
>> public._ST_Intersects($1,$2)$function$
>>
>>
>> is this behaviour correct??
>>
>>
>>
>> On Fri, Feb 3, 2017 at 5:31 PM, Khushboo Vashi <
>> khushboo(dot)vashi(at)enterprisedb(dot)com> wrote:
>>
>>> Hi,
>>>
>>> Please find the attached patch to fix RM 2089 : PARALLEL SAFE support
>>> for functions missing.
>>>
>>> Fix: Incorporated the PARALLEL SAFE support for the functions and
>>> procedures for PostgreSQL 9.6.
>>>
>>> Thanks,
>>> Khushboo
>>>
>>>
>>>
>>> --
>>> Sent via pgadmin-hackers mailing list (pgadmin-hackers(at)postgresql(dot)org)
>>> To make changes to your subscription:
>>> http://www.postgresql.org/mailpref/pgadmin-hackers
>>>
>>>
>>
>>
>> --
>> *Akshay Joshi*
>> *Principal Software Engineer *
>>
>>
>>
>> *Phone: +91 20-3058-9517 <+91%2020%203058%209517>Mobile: +91 976-788-8246
>> <+91%2097678%2088246>*
>>
>
>
>
> --
> Dave Page
> VP, Chief Architect, Tools & Installers
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
> Blog: http://pgsnake.blogspot.com
> Twitter: @pgsnake
>

In response to

Responses

Browse pgadmin-hackers by date

  From Date Subject
Next Message Dave Page 2017-02-03 14:19:25 pgAdmin 4 commit: Handle saved directories that no longer exist gracefu
Previous Message Dave Page 2017-02-03 13:52:10 Re: [pgAdmin4][PATCH] To fix the issue in handling of timestamp type