On Sun, Jun 13, 2010 at 8:45 AM, Andre Lopes <lopes80andre(at)gmail(dot)com> wrote:
> But I'am not getting how to generate the SALT. Can someone give me a clue on
> how to do this.
The salt() function you posted returns 10 random hexadecimal digits.
You could mimic it with something like:
SELECT substr(md5(RANDOM()::text), 0, 11);
Josh