pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: emuser20140816@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15435: Infinite-recursive SQL procedure can crash a database server
Date: Wed, 17 Oct 2018 10:12:15 -0400
Message-ID: <30131.1539785535@sss.pgh.pa.us> (raw)
In-Reply-To: <15435-299488dd5221754d@postgresql.org>
References: <15435-299488dd5221754d@postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> CREATE PROCEDURE proc1() LANGUAGE sql AS 'CALL proc1();';
> CALL proc1(); -- crash

Works for me in 11.0, no doubt as a result of this last-minute fix:
https://git.postgresql.org/gitweb/?p=postgresql.git;a=commitdiff;h=db9034bf7653fa527e2531e1a713dbbd3...

=# CALL proc1();
ERROR:  stack depth limit exceeded
HINT:  Increase the configuration parameter "max_stack_depth" (currently 2048kB), after ensuring the platform's stack depth limit is adequate.
CONTEXT:  SQL function "proc1" statement 1
	SQL function "proc1" statement 1
	SQL function "proc1" statement 1
	SQL function "proc1" statement 1
	SQL function "proc1" statement 1
	SQL function "proc1" statement 1
	... lots more ...

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <30131.1539785535@sss.pgh.pa.us>
Permalink:  ../30131.1539785535@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/30131.1539785535@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, emuser20140816@gmail.com
  Subject: Re: BUG #15435: Infinite-recursive SQL procedure can crash a database server
  In-Reply-To: <30131.1539785535@sss.pgh.pa.us>
  References: <15435-299488dd5221754d@postgresql.org> <30131.1539785535@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox