Variable renaming in AllocSetContextCreate (will commit soon, no functional impact)

Поиск
Список
Период
Сортировка
Искать

Variable renaming in AllocSetContextCreate (will commit soon, no functional impact)

От:
Jeff Davis <pgsql@j-davis.com>
Дата:
Вложения:
This is just to make the variable names in this function consistent with
the rest of the file (and less confusing). No functional impact, so I'll
commit soon unless someone objects.

Previously, this was part of the memory accounting patch, but that
hasn't made it in yet. Might as well commit the cleanup at least.

Regards,
	Jeff Davis

Re: Variable renaming in AllocSetContextCreate (will commit soon, no functional impact)

От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
Jeff Davis  writes:
> This is just to make the variable names in this function consistent with
> the rest of the file (and less confusing). No functional impact, so I'll
> commit soon unless someone objects.

If I'm reading this right, this creates two different variables pointing
at the same object.  That does not sound like an improvement from a
readability standpoint.

If you want to have just *one* variable but change its name and type,
I'd be ok with that.
		regards, tom lane


Re: Variable renaming in AllocSetContextCreate (will commit soon, no functional impact)

От:
Jeff Davis <pgsql@j-davis.com>
Дата:
On Sun, 2015-02-22 at 00:07 -0500, Tom Lane wrote:
> If you want to have just *one* variable but change its name and type,
> I'd be ok with that.

Thank you for taking a quick look. Committed as a simple rename from
"context" to "set".

Regards,Jeff Davis




FAQ