This file provides backward compatibility and should be loaded by default in order to ease db restore from previous postgis versions. eg /usr/share/postgresql/9.5/contrib/postgis-2.3/legacy.sql