File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -15814,8 +15814,8 @@ postgres=# SELECT * FROM pg_xlogfile_name_offset(pg_stop_backup());
1581415814 <para>
1581515815 <function>pg_filenode_relation</> is the reverse of
1581615816 <function>pg_relation_filenode</>. Given a <quote>tablespace</> OID and
15817- a <quote>filenode</> it returns the associated relation. The default
15818- tablespace can be specified as 0.
15817+ a <quote>filenode</>, it returns the associated relation's OID. For a table
15818+ in the database's default tablespace, the tablespace can be specified as 0.
1581915819 </para>
1582015820
1582115821 </sect2>
Original file line number Diff line number Diff line change @@ -760,13 +760,14 @@ pg_relation_filenode(PG_FUNCTION_ARGS)
760760 * Get the relation via (reltablespace, relfilenode)
761761 *
762762 * This is expected to be used when somebody wants to match an individual file
763- * on the filesystem back to its table. Thats not trivially possible via
764- * pg_class because that doesn't contain the relfilenodes of shared and nailed
763+ * on the filesystem back to its table. That's not trivially possible via
764+ * pg_class, because that doesn't contain the relfilenodes of shared and nailed
765765 * tables.
766766 *
767767 * We don't fail but return NULL if we cannot find a mapping.
768768 *
769- * Instead of knowing DEFAULTTABLESPACE_OID you can pass 0.
769+ * InvalidOid can be passed instead of the current database's default
770+ * tablespace.
770771 */
771772Datum
772773pg_filenode_relation (PG_FUNCTION_ARGS )
Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
210210
211211 while (HeapTupleIsValid (ntp = systable_getnext (scandesc )))
212212 {
213- bool isnull ;
213+ bool isnull PG_USED_FOR_ASSERTS_ONLY ;
214214
215215 if (found )
216216 elog (ERROR ,
You can’t perform that action at this time.
0 commit comments