mirror of
https://github.com/postgres/postgres.git
synced 2025-07-02 09:02:37 +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:
2
src/backend/utils/cache/relfilenodemap.c
vendored
2
src/backend/utils/cache/relfilenodemap.c
vendored
@ -210,7 +210,7 @@ RelidByRelfilenode(Oid reltablespace, Oid relfilenode)
|
||||
|
||||
while (HeapTupleIsValid(ntp = systable_getnext(scandesc)))
|
||||
{
|
||||
bool isnull;
|
||||
bool isnull PG_USED_FOR_ASSERTS_ONLY;
|
||||
|
||||
if (found)
|
||||
elog(ERROR,
|
||||
|
Reference in New Issue
Block a user