/usr/share/doc/python-psycopg2-docs/html/_static/sidebar.js is in python-psycopg2-doc 2.4.5-1build5.
This file is owned by root:root, with mode 0o777.
It is a symlink to /usr/share/doc/python-psycopg2-docs/html/_static/../../../../javascript/sphinxdoc/1.0/sidebar.js