pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Paragon Corporation <lr@pcorp.us>
Cc: Robert Haas <robertmhaas@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #11902: PostgreSQL 9.5 crashes on alter table in function
Date: Thu, 6 Nov 2014 22:24:12 +0100
Message-ID: <20141106212412.GB12525@awork2.anarazel.de> (raw)
In-Reply-To: <16197.1415308515@sss.pgh.pa.us>
References: <20141106180115.26930.84739@wrigleys.postgresql.org>
	<20141106180617.GE12193@alap3.anarazel.de>
	<9D18BF962F7141868C3DF332C22F4C8B@O>
	<16197.1415308515@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2014-11-06 16:15:15 -0500, Tom Lane wrote:
> "Paragon Corporation" <lr@pcorp.us> writes:
> > I can pull from latest git and then run the tests again if you think the
> > issue is fixed.
> 
> No, the given test case crashes HEAD just fine.  Robert seems to have
> changed the invariants around the trigger query stack in some inconsistent
> fashion.

I think it's just a missing

if (depth < afterTriggers.maxquerydepth)
   continue;
or similar in AfterTriggerPendingOnRel, inside the second loop.

Alternatively we could make the for something like
depth = 0; depth <= Min(afterTriggers.query_depth, afterTriggers.query_depth - 1)
but that doesn't seem prettier.

Robert?

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (8+ messages)  latest in thread

Message-ID: <20141106212412.GB12525@awork2.anarazel.de>
Permalink:  ../20141106212412.GB12525@awork2.anarazel.de/
Also on:    postgresql.org/message-id/20141106212412.GB12525@awork2.anarazel.de

 · 

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: andres@2ndquadrant.com, tgl@sss.pgh.pa.us, lr@pcorp.us, robertmhaas@gmail.com
  Subject: Re: BUG #11902: PostgreSQL 9.5 crashes on alter table in function
  In-Reply-To: <20141106212412.GB12525@awork2.anarazel.de>
  References: <20141106180115.26930.84739@wrigleys.postgresql.org> <20141106180617.GE12193@alap3.anarazel.de> <9D18BF962F7141868C3DF332C22F4C8B@O> <16197.1415308515@sss.pgh.pa.us> <20141106212412.GB12525@awork2.anarazel.de>

* 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