Thread: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFE support for functions missing
[pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFE support for functions missing
Attachment
Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFEsupport for functions missing
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??
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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers

Mobile: +91 976-788-8246
Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFEsupport for functions missing
Hi DaveI have reviewed the patch and after applying it output in pgAdmin4CREATE OR REPLACE FUNCTION public.st_intersects(geom1 geometry, geom2 geometry)RETURNS booleanLANGUAGE 'sql'COST 100.0IMMUTABLE NOT LEAKPROOFPARALLEL SAFEAS $function$SELECT $1 OPERATOR(public.&&) $2 AND public._ST_Intersects($1,$2)$function$;but as per psql it should beCREATE 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.vashi@enterprisedb.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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers --
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFEsupport for functions missing
I doubt the order matters, but feel free to change it if it bugs you :-)
--On Fri, Feb 3, 2017 at 12:54 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote: Hi DaveI have reviewed the patch and after applying it output in pgAdmin4CREATE OR REPLACE FUNCTION public.st_intersects(geom1 geometry, geom2 geometry)RETURNS booleanLANGUAGE 'sql'COST 100.0IMMUTABLE NOT LEAKPROOFPARALLEL SAFEAS $function$SELECT $1 OPERATOR(public.&&) $2 AND public._ST_Intersects($1,$2)$function$;but as per psql it should beCREATE 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)$f
unction$
is this behaviour correct??
On Fri, Feb 3, 2017 at 5:31 PM, Khushboo Vashi <khushboo.vashi@enterprisedb.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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers --Dave Page
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFEsupport for functions missing
On Fri, Feb 3, 2017 at 7:02 PM, Dave Page <dave.page@enterprisedb.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.joshi@enterprisedb.com> wrote: Hi DaveI have reviewed the patch and after applying it output in pgAdmin4CREATE OR REPLACE FUNCTION public.st_intersects(geom1 geometry, geom2 geometry)RETURNS booleanLANGUAGE 'sql'COST 100.0IMMUTABLE NOT LEAKPROOFPARALLEL SAFEAS $function$SELECT $1 OPERATOR(public.&&) $2 AND public._ST_Intersects($1,$2)$function$;but as per psql it should beCREATE 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)$f
unction$
is this behaviour correct??
On Fri, Feb 3, 2017 at 5:31 PM, Khushboo Vashi <khushboo.vashi@enterprisedb.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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers --Dave Page
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFEsupport for functions missing
On Fri, Feb 3, 2017 at 1:59 PM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote: On Fri, Feb 3, 2017 at 7:02 PM, Dave Page <dave.page@enterprisedb.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.Well we should be consistent - we either list the full set of all options, or just the non-default ones. The main thing is that we don't explicitly show options that are the default in some cases, but not in others.
--On Fri, Feb 3, 2017 at 12:54 PM, Akshay Joshi <akshay.joshi@enterprisedb.com> wrote: Hi DaveI have reviewed the patch and after applying it output in pgAdmin4CREATE OR REPLACE FUNCTION public.st_intersects(geom1 geometry, geom2 geometry)RETURNS booleanLANGUAGE 'sql'COST 100.0IMMUTABLE NOT LEAKPROOFPARALLEL SAFEAS $function$SELECT $1 OPERATOR(public.&&) $2 AND public._ST_Intersects($1,$2)$function$;but as per psql it should beCREATE 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)$f
unction$
is this behaviour correct??
On Fri, Feb 3, 2017 at 5:31 PM, Khushboo Vashi <khushboo.vashi@enterprisedb.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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgadmin-hackers --Dave Page
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake--Dave Page
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
Attachment
Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFEsupport for functions missing
Hi,Please find the attached updated patch.Thanks,KhushbooOn Fri, Feb 3, 2017 at 7:53 PM, Dave Page <dave.page@enterprisedb.com> wrote:On Fri, Feb 3, 2017 at 1:59 PM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote: On Fri, Feb 3, 2017 at 7:02 PM, Dave Page <dave.page@enterprisedb.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.Well we should be consistent - we either list the full set of all options, or just the non-default ones. The main thing is that we don't explicitly show options that are the default in some cases, but not in others.Agreed. Fixed for LEAKPROOF and PARALLEL options.
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFEsupport for functions missing
HiOn Fri, Feb 10, 2017 at 7:28 AM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote: Hi,Please find the attached updated patch.Thanks,KhushbooOn Fri, Feb 3, 2017 at 7:53 PM, Dave Page <dave.page@enterprisedb.com> wrote:On Fri, Feb 3, 2017 at 1:59 PM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote: On Fri, Feb 3, 2017 at 7:02 PM, Dave Page <dave.page@enterprisedb.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.Well we should be consistent - we either list the full set of all options, or just the non-default ones. The main thing is that we don't explicitly show options that are the default in some cases, but not in others.Agreed. Fixed for LEAKPROOF and PARALLEL options.This seems to work in edit mode, but not in create mode, where the PARALLEL option that's selected is simply ignored in the msql.
--Dave Page
VP, Chief Architect, Tools & Installers
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
Attachment
Re: [pgadmin-hackers] [pgAdmin4][Patch]: RM 2089 - PARALLEL SAFEsupport for functions missing
Thanks, committed! On Fri, Feb 24, 2017 at 6:48 AM, Khushboo Vashi <khushboo.vashi@enterprisedb.com> wrote: > Hi, > > Please find the attached updated patch. > > Thanks, > Khushboo > > On Wed, Feb 15, 2017 at 8:57 PM, Dave Page <dave.page@enterprisedb.com> > wrote: >> >> Hi >> >> On Fri, Feb 10, 2017 at 7:28 AM, Khushboo Vashi >> <khushboo.vashi@enterprisedb.com> wrote: >>> >>> Hi, >>> >>> Please find the attached updated patch. >>> >>> Thanks, >>> Khushboo >>> >>> On Fri, Feb 3, 2017 at 7:53 PM, Dave Page <dave.page@enterprisedb.com> >>> wrote: >>>> >>>> >>>> >>>> On Fri, Feb 3, 2017 at 1:59 PM, Khushboo Vashi >>>> <khushboo.vashi@enterprisedb.com> wrote: >>>>> >>>>> >>>>> >>>>> On Fri, Feb 3, 2017 at 7:02 PM, Dave Page <dave.page@enterprisedb.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. >>>> >>>> >>>> Well we should be consistent - we either list the full set of all >>>> options, or just the non-default ones. The main thing is that we don't >>>> explicitly show options that are the default in some cases, but not in >>>> others. >>>> >>> >>> Agreed. Fixed for LEAKPROOF and PARALLEL options. >> >> >> This seems to work in edit mode, but not in create mode, where the >> PARALLEL option that's selected is simply ignored in the msql. >> > > Fixed >> >> -- >> Dave Page >> VP, Chief Architect, Tools & Installers >> EnterpriseDB: http://www.enterprisedb.com >> The Enterprise PostgreSQL Company >> >> Blog: http://pgsnake.blogspot.com >> Twitter: @pgsnake > > -- Dave Page VP, Chief Architect, Tools & Installers EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company Blog: http://pgsnake.blogspot.com Twitter: @pgsnake