Well, what should the poor thing do? There is no index on "LucrareBugetDateId".
Rather, you have two indexes on ("LucrareBugetVersiuneId", "LucrareBugetDateId"), one of which should be dropped.
Try with an index on "LucrareBugetDateId". Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com
pgsql-performance by date:
Соглашаюсь с условиями обработки персональных данных