I am getting an error in pgadmin as "unrecognized configuration parameter "lc_collate" " how to fix this?
Asked Answered
B

6

5

Refer this!

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 !

Bedding answered 11/2 at 5:17 Comment(1)
1) Do not use images, copy and paste text into your question. 2) Look at the Postgres log and see what command is hitting the database and what the complete error message is.Welldefined
W
9

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).

Winou answered 12/2 at 6:49 Comment(5)
Are you sure about that? CREATE DATABASE PG 16 select version(); PostgreSQL 16.2 then create database collate_test lc_collate 'en_US.UTF-8'; CREATE DATABASE.Welldefined
@AdrianKlaver What about 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
The question was about creating a database and getting a lc_collate error. You can 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
@AdrianKlaver My comment tried to explain to you why the parameter was removed, even though you have 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 PG admin 4 to latest or PostgreSQL v16 supported. This works for meGrubb
P
2

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.

Planetstruck answered 20/2 at 16:29 Comment(0)
S
0

Check to see if you have an older verison of SQL installed, and delete it. This fixed the problem for me.

Surprint answered 12/2 at 7:55 Comment(0)
O
0

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

Oberammergau answered 15/3 at 17:52 Comment(2)
It appears [to me] that your "answer" is actually a comment to this answer. If so, then you should not post comments as answers simply because you do not yet have enough reputation points to post comments. If you feel that it is an answer (and not a comment) then I suggest that you edit your answer and add a link to the "documentation" that you are referring to. By the way (and pardon my ignorance), who is Peter Eisentraut ?Driscoll
@Driscoll postgresql.org/docs/16/release-16.htmlLilienthal
D
0

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.

Dimercaprol answered 1/4 at 0:47 Comment(0)
B
0

Update pgadmin, it will resolve the issue. I also faced same, it got resolved after updating it.

Bioastronautics answered 1/8 at 11:18 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Gere

© 2022 - 2024 — McMap. All rights reserved.