Variable renaming in dbcommands.c

Started by Peter Eisentrautover 1 year ago3 messageshackers
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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.

Attachments:

0001-Variable-renaming-in-dbcommands.c.patchtext/plain; charset=UTF-8; name=0001-Variable-renaming-in-dbcommands.c.patchDownload+89-90
#2Daniel Gustafsson
daniel@yesql.se
In reply to: Peter Eisentraut (#1)
Re: Variable renaming in dbcommands.c

On 9 Aug 2024, at 09:21, Peter Eisentraut <peter@eisentraut.org> wrote:

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.

No objections, patch LGTM.

--
Daniel Gustafsson

#3Peter Eisentraut
peter_e@gmx.net
In reply to: Daniel Gustafsson (#2)
Re: Variable renaming in dbcommands.c

On 09.08.24 09:43, Daniel Gustafsson wrote:

On 9 Aug 2024, at 09:21, Peter Eisentraut <peter@eisentraut.org> wrote:

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.

No objections, patch LGTM.

committed