Postgresql Declare Variable For Angular Momentum Problems