As far as I know PostgreSQL does only OUTER JOIN Elimination, with inner join
it doesn't work.
See this thread:
https://www.postgresql.org/message-id/flat/VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0%40tc7-visena#VisenaEmail.2b.7dfa64bdab147c49.1600d1d9df0@tc7-visena