Re: error context for vacuum to include block number - Mailing list pgsql-hackers

From Tom Lane
Subject Re: error context for vacuum to include block number
Date
Msg-id 15823.1582222226@sss.pgh.pa.us
Whole thread Raw
In response to Re: error context for vacuum to include block number  (Alvaro Herrera <alvherre@2ndquadrant.com>)
List pgsql-hackers
Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> Another point is that this patch seems to be leaking memory each time
> you set relation/index/namespace name, since you never free those and
> they are changed over and over.

One other point is that this code seems to be trying to ensure that
the error context callback itself won't need to touch the catalog cache or
relcache, which is an important safety feature ... but it's failing at
that goal, because RelationGetRelationName() is going to hand back a
pointer to a string in the relcache.  You need another pstrdup for that.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Removing obsolete configure checks
Next
From: Fabrízio de Royes Mello
Date:
Subject: Re: Bug in pg_restore with EventTrigger in parallel mode