Postgresql Assign Select Result To Variable Resistor