Re: BUG #18831: Particular queries using gin-indexes are not interruptible, resulting is resource usage concerns.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vinod Sridharan <vsridh90(at)gmail(dot)com>
Cc: niek(dot)brasa(at)hitachienergy(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #18831: Particular queries using gin-indexes are not interruptible, resulting is resource usage concerns.
Date: 2025-04-12 03:00:31
Message-ID: 1098251.1744426831@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Vinod Sridharan <vsridh90(at)gmail(dot)com> writes:
> -- create textops operator class without triconsistent

OK, got it, and I concur that we need to make shimTriConsistentFn()
restore the state of the entryRes array before it returns. But
I don't understand why you're concerned about "However, this would
also reset it during the regular triConsistent check per tuple"?
I think the point is basically that this function is violating
the expectation that triconsistent functions not change the state
of that array. That expectation doesn't depend on what the call
site is.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Vinod Sridharan 2025-04-12 03:30:43 Re: BUG #18831: Particular queries using gin-indexes are not interruptible, resulting is resource usage concerns.
Previous Message PG Bug reporting form 2025-04-12 02:34:15 BUG #18892: When the view already exists, CREATE OR REPLACE VIEW does not check whether the table exists.