pg_database_collation_actual_version ( oid ) → textReturns the actual version of the database's collation as it is currently installed in the operating system. If this is different from the value in
pg_database.datcollversion, then objects depending on the collation might need to be rebuilt. See also ALTER DATABASE.