SQL Server and PostgreSQL provide RADIANS function that converts degrees to radians.
SQL Server:
-- Get radians SELECT RADIANS(90.0); # 1.570796326794896558 -- Note that rounded integer is returned if operand is an integer (!) SELECT RADIANS(90); # 1
PostgreSQL:
-- Get radians SELECT RADIANS(90.0); # 1.5707963267948966 SELECT RADIANS(90); # 1.5707963267948966
For more information, see SQL Server to PostgreSQL Migration.