Re: [PATCH] Refactoring: rename md5Salt to pwsalt

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Refactoring: rename md5Salt to pwsalt
Date: 2016-09-30 12:40:56
Message-ID: 16236.1475239256@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru> writes:
> Suggested patch (first of many, I hope) renames `md5Salt` to more
> general `pwsalt`.
> Does it sound reasonable?

I'm dubious. The main problem with supposing that port->md5Salt
can serve other purposes is its fixed size. I think you're likely
going to have to change that representation at some point (eg
make it a separately-palloc'd field). My inclination would be to
do the field renaming at the same time you change the representation,
since that provides a convenient way to ensure you've caught every
place that has to change.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2016-09-30 12:58:54 Re: [PATCH] Refactoring: rename md5Salt to pwsalt
Previous Message Aleksander Alekseev 2016-09-30 12:15:39 [PATCH] Refactoring: rename md5Salt to pwsalt