aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/dbsize.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2013-07-22 13:15:13 -0400
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2013-07-22 13:15:13 -0400
commit0aeb5ae2041520f02cabbc7083aec46733689bce (patch)
tree9e5d0515932c7f2efbb05c2396ee6a69c7b55f3d /src/backend/utils/adt/dbsize.c
parentf01d1ae3a104019d6d68aeff85c4816a275130b3 (diff)
downloadpostgresql-0aeb5ae2041520f02cabbc7083aec46733689bce.tar.gz
postgresql-0aeb5ae2041520f02cabbc7083aec46733689bce.zip
Silence compiler warning on an unused variable
Also, tweak wording in comments (per Andres) and documentation (myself) to point out that it's the database's default tablespace that can be passed as 0, not DEFAULTTABLESPACE_OID. Robert Haas noticed the bug in the code, but didn't update the accompanying prose.
Diffstat (limited to 'src/backend/utils/adt/dbsize.c')
-rw-r--r--src/backend/utils/adt/dbsize.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/utils/adt/dbsize.c b/src/backend/utils/adt/dbsize.c
index 21d1c946abe..868474680df 100644
--- a/src/backend/utils/adt/dbsize.c
+++ b/src/backend/utils/adt/dbsize.c
@@ -760,13 +760,14 @@ pg_relation_filenode(PG_FUNCTION_ARGS)
* Get the relation via (reltablespace, relfilenode)
*
* This is expected to be used when somebody wants to match an individual file
- * on the filesystem back to its table. Thats not trivially possible via
- * pg_class because that doesn't contain the relfilenodes of shared and nailed
+ * on the filesystem back to its table. That's not trivially possible via
+ * pg_class, because that doesn't contain the relfilenodes of shared and nailed
* tables.
*
* We don't fail but return NULL if we cannot find a mapping.
*
- * Instead of knowing DEFAULTTABLESPACE_OID you can pass 0.
+ * InvalidOid can be passed instead of the current database's default
+ * tablespace.
*/
Datum
pg_filenode_relation(PG_FUNCTION_ARGS)