I was creating a database and got this error i tried to uninstall and then reinstall postgresql-16 and pgadmin4 but it didn't work for me! It creates a database but gives this error i am worried that what if it would block my task when i am half done !
The parameter lc_collate
got removed in PostgreSQL v16, because it didn't reflect the actual collation any more.
Use a version of pgAdmin that supports PostgreSQL v16. According to the release notes, that should be 7.8 or better (but use the latest one).
select version(); PostgreSQL 16.2
then create database collate_test lc_collate 'en_US.UTF-8'; CREATE DATABASE
. –
Welldefined CREATE DATABASE xy LOCALE_PROVIDER icu ICU_LOCALE 'de-AT' LOCALE 'C' TEMPLATE template0
? If you ran SHOW lc_collate
, and the result is C
, is that meaningful? –
Winou CREATE DATABASE
with lc_collate
in PG 16 without an error. The issue is you cannot do SHOW lc_collate;
as it returns the error the OP is seeing ERROR: unrecognized configuration parameter "lc_collate"
. So it would seem the version of pgAdmin is issuing a SHOW lc_collate;
somewhere in the process. –
Welldefined lc_collate
in CREATE DATABASE
. Sure, pgAdmin should not look for that parameter, which is why my answer recommends to upgrade to a version of pgAdmin that understands about PostgreSQL v16. –
Winou Update to the latest version of
pgAdmin 4
to resolve this issue.
The version disparity between PostgreSQL
and pgAdmin 4
caused this problem and other issues such as the inability to Backup the database.
Check to see if you have an older verison of SQL installed, and delete it. This fixed the problem for me.
Re: "The parameter lc_collate got removed in PostgreSQL v16, because it didn't reflect the actual collation any more."
Clarification - the text of the PostgreSQL 16 Doc post speaks to only the "server" level variables having been removed, not the database level.
"Remove read-only server variables lc_collate and lc_ctype (Peter Eisentraut)"
Refer to: https://www.postgresql.org/docs/16/release-16.html
I had the same error. Right click the server and hit "refresh". The UI must be acting weird with the new update. Hopefully this helped if you're running into this again.
Update pgadmin, it will resolve the issue. I also faced same, it got resolved after updating it.
© 2022 - 2024 — McMap. All rights reserved.