pgsql: Mark pg_stat_reset_shared as strict

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Mark pg_stat_reset_shared as strict
Date: 2011-07-03 11:18:12
Message-ID: E1QdKgm-0001FO-Cx@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Mark pg_stat_reset_shared as strict

This is the proper fix for bug #6082 about
pg_stat_reset_shared(NULL) causing a crash, and it reverts
commit 79aa44536f3980d324f486504cde643ce23bf5c6 on head.

The workaround of throwing an error from inside the function is
left on backbranches (including 9.1) since this change requires
a new initdb.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/24e2d4b6ba99985d5b710983714f0133e94dc343

Modified Files
--------------
src/backend/utils/adt/pgstatfuncs.c | 14 +++-----------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.h | 2 +-
3 files changed, 5 insertions(+), 13 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2011-07-03 14:38:33 pgsql: Fix bat file quoting of %ENV.
Previous Message Tom Lane 2011-07-03 05:35:39 pgsql: Fix EXPLAIN to handle gating Result nodes within inner-indexscan