Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
345 views
in Technique[技术] by (71.8m points)

postgresql - FATAL: database "dbname" does not exist

I drop one database from production primary server. Still I'm getting error in postgresql error log on secondary server.

FATAL: database "dbname" does not exist User: postgres

I checked, this DB is not used from our any application or monitoring tools. This error occurred 192 times in 1 hour. That means the request comes to this DB every 3.2 sec. Any idea how to get from where this request comes ?

question from:https://stackoverflow.com/questions/65842310/fatal-database-dbname-does-not-exist

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Change the log_line_prefix parameter to contain %h, then the IP address of the client that tried to connect will be logged.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...