mirror of
https://github.com/postgres/postgres.git
synced 2025-06-25 01:02:05 +03:00
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.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user