Re: BUG #15378: SP-GIST memory context screwup?

From: Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk>
To: Alexander Korotkov <a(dot)korotkov(at)postgrespro(dot)ru>
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org, Teodor Sigaev <teodor(at)sigaev(dot)ru>
Subject: Re: BUG #15378: SP-GIST memory context screwup?
Date: 2018-09-11 16:31:24
Message-ID: 87tvmwov48.fsf@news-spur.riddles.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>>>>> "Andrew" == Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> writes:

Andrew> So the simplest fix would be to move the memory context reset
Andrew> to just after the freeScanStack in resetSpGistScanOpaque. And
Andrew> with retail freeing going on during the scan, it makes less
Andrew> sense to try and avoid it during rescan, double ugh.

Proposed patch attached.

--
Andrew (irc:RhodiumToad)

Attachment Content-Type Size
spgmem.patch text/x-patch 3.1 KB

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message kalyani kaniganti 2018-09-11 17:09:52 Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error The source cluster was not shut down cleanly.
Previous Message Bruce Momjian 2018-09-11 16:18:42 Re: BUG #15376: Postgres sql 9.4.19 pg_upgrade stops with error The source cluster was not shut down cleanly.