Re: some last patches breaks plan cache - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: some last patches breaks plan cache
Date
Msg-id a9b9e308-bd14-3460-b61b-b06d4b7b1e17@2ndquadrant.com
Whole thread Raw
In response to some last patches breaks plan cache  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: some last patches breaks plan cache  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
List pgsql-hackers
On 03/31/2018 07:38 PM, Pavel Stehule wrote:
> Hi
> 
> CREATE OR REPLACE PROCEDURE public.proc(a integer, INOUT b integer, c
> integer)
>  LANGUAGE plpgsql
> AS $procedure$
> begin
>   b := a + c;
> end;
> $procedure$
> 
> CREATE OR REPLACE PROCEDURE public.testproc()
>  LANGUAGE plpgsql
> AS $procedure$
> declare r int;
> begin
>   call proc(10, r, 20);
> end;
> $procedure$
> 
> postgres=# call testproc();
> CALL
> postgres=# call testproc();
> ERROR:  SPI_execute_plan_with_paramlist failed executing query "CALL
> proc(10, r, 20)": SPI_ERROR_ARGUMENT
> CONTEXT:  PL/pgSQL function testproc() line 4 at CALL
> postgres=#
> 
> second call fails

Yeah.

d92bc83c48bdea9888e64cf1e2edbac9693099c9 seems to have broken this :-/

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: some last patches breaks plan cache
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS][PATCH] adding simple sock check for windows