Thread: pgsql: Simplify signature of RewriteTable

pgsql: Simplify signature of RewriteTable

From
Álvaro Herrera
Date:
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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ebd8fc7e47fdad6adb68aad341d95c541d7325c3

Modified Files
--------------
src/backend/commands/tablecmds.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)