Variable renaming in dbcommands.c

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-08-09T07:21:24Z
Lists: pgsql-hackers

Attachments

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.

Commits

  1. Variable renaming in dbcommands.c