pgsql: Make pg_relation_size() and friends return NULL if the object do - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Make pg_relation_size() and friends return NULL if the object do
Date
Msg-id E1Rnq0S-0002zi-R3@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make pg_relation_size() and friends return NULL if the object doesn't exist.

That avoids errors when the functions are used in queries like "SELECT
pg_relation_size(oid) FROM pg_class", and a table is dropped concurrently.

Phil Sorber

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/fa352d662e57fa150158b9cb0a8f127250f8c97f

Modified Files
--------------
doc/src/sgml/func.sgml         |    5 ++
src/backend/utils/adt/dbsize.c |  119 ++++++++++++++++++++++++++++------------
2 files changed, 89 insertions(+), 35 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: PL/Python: Update example
Next
From: Magnus Hagander
Date:
Subject: pgsql: Separate state from query string in pg_stat_activity