I got this error When I'm trying to run the Code.
I searched the site like this problem
But It couldn't solve my problem.
When I'm trying to create superuser with my username (which is TCOYUKSEL) , It create another one with "tcoyuksel"
ozgur.py Line 9 db = psycopg2.connect("dbname=news")
ozgur.py Line 73 get_pop_articles(), str("views"))
init.py Line 130 conn = _connect(dsn, connection_factory=connection_factory, **kwasync)
–I didn't do anything with this file–
Best Answer
The role name is case sensitive, but with your queries it gets translated to lower case
tcoyuksel
,as key words and unquoted identifiers are case insensitive (4.1.1. Identifiers and Key Words).
You need to use the quotes to bypass the normalization i.e. use
TCOYUKSEL
as delimited identifier:If you run it directly from the command line, you need to double the quotes: