pgsql: Simplify signature of RewriteTable

From: Álvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Simplify signature of RewriteTable
Date: 2025-01-09 13:17:49
Message-ID: E1tVsQ1-000fCF-OC@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2025-01-09 20:17:04 pgsql: Use @extschema:name@ notation in contrib transform modules.
Previous Message Fujii Masao 2025-01-09 12:06:15 pgsql: doc: Clarify synchronous_standby_names parameter.