Re: BUG #18694: DISCARD ALL does not reset execution counters for plpgsql functions - Mailing list pgsql-bugs

From David G. Johnston
Subject Re: BUG #18694: DISCARD ALL does not reset execution counters for plpgsql functions
Date
Msg-id CAKFQuwYU3NO2Tq8z_ZGou4+8KN8NKu86y1+m7LcyZFtLVwknZw@mail.gmail.com
Whole thread Raw
In response to BUG #18694: DISCARD ALL does not reset execution counters for plpgsql functions  (PG Bug reporting form <noreply@postgresql.org>)
Responses Re: BUG #18694: DISCARD ALL does not reset execution counters for plpgsql functions
List pgsql-bugs
On Thursday, November 7, 2024, PG Bug reporting form <noreply@postgresql.org> wrote:
The following bug has been logged on the website:

Bug reference:      18694
Logged by:          David Pavlíček
Email address:      pavlicek.david@gmail.com
PostgreSQL version: 13.13
Operating system:   Linux
Description:       

In my opinion, the DISCARD ALL command should reset the internal
execution counters of plpgsql functions.


To my knowledge there is no user-exposed way to reset those counters.  Thus discard all cannot reset them.  It is a missing feature, not a bug.  One that I agree makes sense to add.

David J.
 

pgsql-bugs by date:

Previous
From: PG Bug reporting form
Date:
Subject: BUG #18696: Compatibility Query for Updating zlib1.dll in PostgreSQL 10.2 to Address Security Vulnerabilities
Next
From: Tom Lane
Date:
Subject: Re: TimestampTz->Text->TimestampTz casting fails with DateStyle 'Postgres'