Make pg_relation_size() and friends return NULL if the object doesn't exist.
Heikki Linnakangas <heikki.linnakangas@iki.fi>
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
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/func.sgml | modified | +5 −0 |
| src/backend/utils/adt/dbsize.c | modified | +84 −35 |