1
0
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:
Alvaro Herrera
2013-07-22 13:15:13 -04:00
parent f01d1ae3a1
commit 0aeb5ae204
3 changed files with 7 additions and 6 deletions

View File

@ -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,