Simplify signature of RewriteTable
authorÁlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 9 Jan 2025 13:17:12 +0000 (14:17 +0100)
committerÁlvaro Herrera <alvherre@alvh.no-ip.org>
Thu, 9 Jan 2025 13:17:12 +0000 (14:17 +0100)
commitebd8fc7e47fdad6adb68aad341d95c541d7325c3
tree11d69ed7b478eb15fff0a883924f9771c16f1db9
parent6313a76b355e3640aba4cc80456a65c2bbc55a80
Simplify signature of RewriteTable

This function doesn't need the lockmode to be passed: it was being used
to lock the new heap, but that's bogus, because the only caller has
already obtained the appropriate lock on the new heap (which is
unimportant anyway, because the relation's creation is not yet committed
and so no other session can see it).

Noticed while reviewed Antonin Houska's patch to add VACUUM FULL
CONCURRENTLY.
src/backend/commands/tablecmds.c