1

When executing this postgres command:

EXECUTE 'CREATE USER myuser WITH UNENCRYPTED PASSWORD ''my+password''';

I see the error:

RoundhousE encountered an error.
Npgsql.PostgresException (0x80004005): 0A000: UNENCRYPTED PASSWORD is no longer supported

Is there a workaround for this, or will the password need to be manually encrypted and supplied without the UNENCRYPTED keyword?

4

2 回答 2

1

不,您所要做的就是省略UNENCRYPTED.

您可以通过这种方式提供加密和未加密的密码,PostgreSQL 可以自动区分。

于 2018-06-06T06:50:48.023 回答
0

PostgreSQL 10+ 不再支持使用 UNENCRYPTED 密码创建用户,使用 ENCRYPTED 创建它:

CREATE USER myuser WITH ENCRYPTED PASSWORD ''my+password''
于 2019-09-10T11:28:39.923 回答