Variable renaming in dbcommands.c

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Variable renaming in dbcommands.c
Date: 2024-08-09 07:21:24
Message-ID: e5bce225-ee04-40c7-a280-ea7214318048@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In dbcommands.c function createdb(), there are several sets of very
similar local variable names, such as "downer" and "dbowner", which is
very confusing and error-prone. The first set are the DefElem nodes
from the parser, the second set are the local variables with the values
extracted from them. This patch renames the former to "ownerEl" and so
on, similar to collationcmds.c and typecmds.c, to improve clarity.

Attachment Content-Type Size
0001-Variable-renaming-in-dbcommands.c.patch text/plain 11.4 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Daniel Gustafsson 2024-08-09 07:43:37 Re: Variable renaming in dbcommands.c
Previous Message Dmitry Koval 2024-08-09 07:18:29 Re: Add SPLIT PARTITION/MERGE PARTITIONS commands