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: (view raw, whole thread or download thread mbox)
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.



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-2017 The PostgreSQL Global Development Group