Re: TRAP: BadArgument - mcxt.c, Line: 813 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: TRAP: BadArgument - mcxt.c, Line: 813
Date
Msg-id 13811.1427650519@sss.pgh.pa.us
Whole thread Raw
In response to TRAP: BadArgument - mcxt.c, Line: 813  ("Erik Rijkers" <er@xs4all.nl>)
List pgsql-hackers
"Erik Rijkers" <er@xs4all.nl> writes:
> I get a crash while restoring a trgm GIN index.

Hm, interesting: this seems to be the first negative fallout from
commit eaa5808e8ec4e82ce1a87103a6b6f687666e4e4c, which made
MemoryContextReset() delete not reset child contexts.  ginbuild()
is creating a funcCtx as a child of its tmpCtx but then supposing
that it can reset the tmpCtx without damaging the other one.

Easy enough to fix, but it's a bit worrisome that we did not find
this in regression testing.  Apparently the regression tests do
not exercise the "early dump" code path in ginBuildCallback...
        regards, tom lane



pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: proposal: row_to_array function
Next
From: Pavel Stehule
Date:
Subject: Re: Providing catalog view to pg_hba.conf file - Patch submission