"Maksym Boguk" <maxim(dot)boguk(at)gmail(dot)com> writes:
> Somehow pg_database_size producing results which are 2 more then reality.
I can't reproduce any such problem here. I suspect you overlooked some
tablespaces in your manual "du" commands.
regards, tom lane