1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-30 06:01:21 +03:00

Fix assorted confusion between Oid and int32.

In passing, also make some debugging elog's in pgstat.c a bit more
consistently worded.

Back-patch as far as applicable (9.3 or 9.4; none of these mistakes are
really old).

Mark Dilger identified and patched the type violations; the message
rewordings are mine.
This commit is contained in:
Tom Lane
2014-12-11 15:41:15 -05:00
parent 10eb7dfa9b
commit 06d5803ffa
4 changed files with 11 additions and 11 deletions

View File

@@ -821,7 +821,7 @@ lockTableNoWait(ArchiveHandle *AH, TocEntry *te)
" pg_class.relname "
" FROM pg_class "
" JOIN pg_namespace on pg_namespace.oid = relnamespace "
" WHERE pg_class.oid = %d", te->catalogId.oid);
" WHERE pg_class.oid = %u", te->catalogId.oid);
res = PQexec(AH->connection, query->data);