[PATCH 2/2] Add a new function pg_relation_by_filenode to lookup up a relation given the tablespace and the filenode OIDs - Mailing list pgsql-hackers

From Andres Freund
Subject [PATCH 2/2] Add a new function pg_relation_by_filenode to lookup up a relation given the tablespace and the filenode OIDs
Date
Msg-id 1347833737-16484-3-git-send-email-andres@2ndquadrant.com
Whole thread Raw
In response to Add pg_relation_by_filenode(reltbspc, filenode) admin function  (Andres Freund <andres@2ndquadrant.com>)
Responses Re: [PATCH 2/2] Add a new function pg_relation_by_filenode to lookup up a relation given the tablespace and the filenode OIDs  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
This requires the previously added RELFILENODE syscache.
---
 doc/src/sgml/func.sgml         | 23 ++++++++++++-
 src/backend/utils/adt/dbsize.c | 78 ++++++++++++++++++++++++++++++++++++++++++
 src/include/catalog/pg_proc.h  |  2 ++
 src/include/utils/builtins.h   |  1 +
 4 files changed, 103 insertions(+), 1 deletion(-)


Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Add pg_relation_by_filenode(reltbspc, filenode) admin function
Next
From: Andres Freund
Date:
Subject: [PATCH 1/2] Add a new relmapper.c function RelationMapFilenodeToOid that acts as a reverse of RelationMapOidToFilenode