Re: Event trigger bugs (was Re: Repeated crashes in GENERATED ... AS IDENTITY tests)

2018-04-20 Thread Tom Lane
I wrote: > Hence, two questions: > * Should EventTriggerTableRewrite do > if (!currentEventTriggerState || > currentEventTriggerState->commandCollectionInhibited) > return; > like most of the other functions, or should it just check for null > currentEventTriggerState? After cl

Re: Event trigger bugs (was Re: Repeated crashes in GENERATED ... AS IDENTITY tests)

2018-04-19 Thread Alvaro Herrera
Tom Lane wrote: > Hence, two questions: > > * Should EventTriggerTableRewrite do > > if (!currentEventTriggerState || > currentEventTriggerState->commandCollectionInhibited) > return; > > like most of the other functions, or should it just check for null > currentEventTrigge

Re: Repeated crashes in GENERATED ... AS IDENTITY tests

2018-04-19 Thread Andrew Gierth
> "Alvaro" == Alvaro Herrera writes: Alvaro> I can't look further into this now -- maybe next week if nobody Alvaro> has beaten me into it. My guess is that the identity stuff is Alvaro> not setting state like event triggers expect. I think this is unrelated to the identity stuff. I suspe

Event trigger bugs (was Re: Repeated crashes in GENERATED ... AS IDENTITY tests)

2018-04-19 Thread Tom Lane
I wrote: > I'm inclined to say that whether or not there's a bug here (and there > well may be, it doesn't seem like a crash is a good thing), this is > bad test design and we need to change it. So my suspicion was aroused by the fact that, unlike almost every other function in event_trigger.c, Ev

Re: Repeated crashes in GENERATED ... AS IDENTITY tests

2018-04-19 Thread Tom Lane
Alvaro Herrera writes: > Of the machines you listed, conchuela has gdb installed, which gives us > a nice backtrace of the crash, pasted below, which seems to blame event > triggers. Of the tests in the same parallel group as identity, the test > fast_default seems to be the only one with an even

Re: Repeated crashes in GENERATED ... AS IDENTITY tests

2018-04-19 Thread Alvaro Herrera
Tom Lane wrote: > The test case that's failing, in identity.sql, has been there since > early February; the lack of any crashes till more recently suggests > that something committed in mid-to-late March broke it. > > I have no idea what's going on there, but I think this is clearly > something w

Repeated crashes in GENERATED ... AS IDENTITY tests

2018-04-17 Thread Tom Lane
woodlouse just showed a failure that looked a bit familiar: https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=woodlouse&dt=2018-04-17%2016%3A42%3A43 I trawled the buildfarm logs for similar failures, and there are several: sysname | snapshot | stage |