Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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(-)

pgsql-committers by date

Next:From: Andrew DunstanDate: 2011-07-03 14:38:33
Subject: pgsql: Fix bat file quoting of %ENV.
Previous:From: Tom LaneDate: 2011-07-03 05:35:39
Subject: pgsql: Fix EXPLAIN to handle gating Result nodes withininner-indexscan

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group