PASSWORD vs. md5('somepass') - Mailing list pgsql-general

From Alexander Reichstadt
Subject PASSWORD vs. md5('somepass')
Date
Msg-id 76DAC5AD-C0C7-423E-A70C-E7147607104A@mac.com
Whole thread Raw
Responses Re: PASSWORD vs. md5('somepass')
List pgsql-general
Hi,

I look for a way to reproduce the encrypted string stored as a password by means other than using the CREATE ROLE
command.

When using CREATE ROLE........PASSWORD 'somepass' the resulting string for rolpassword in pg_authid always starts with
md5,suggesting it would create some md5 string. So I thought to use SELECT md5('somepass') to get the same. 

But the two strings differ. Is there a function that does that outside the create role context?

Thanks
Alex

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: WHERE IN (subselect) versus WHERE IN (1,2,3,)
Next
From: Josh Kupershmidt
Date:
Subject: Re: PASSWORD vs. md5('somepass')