Please, correct (bug) loading of RPgSQL library to connect to PostgreSQL

I use ROOT 5.34.36 and PostgreSQL database. But when I try to connect to the PostgreSQL database in my executable (compiled, not CINT) app via the following line:

It causes the following error:
Error in TUnixSystem::DynamicPathName: PgSQL[.so | .dll | .dylib | .sl | .dl | .a] does not exist in …
If I change it to connect to MySQL database “mysql://another_server/db_name”, it works well.
The problem is that PostgreSQL library in ROOT is named RPgSQL, not PgSQL.
I searched in the ROOT source and found that root/etc/plugins/TSQLServer/P020_TPgSQLServer.C file has the following line

but it seems it should be:

After the modification it works well now.
Please, correct this error.
Thank you.

Thanks for reporting the problem and the fix. Change committed to 5.34 branch.