:      CREATE OR REPLACE FUNCTION getRecords()     RETURNS INTEGER AS $$     DECLARE       total INTEGER;     BEGIN       SELECT COUNT(*) INTO total FROM warehouse_tbl;       RETURN total;     END;     $$ LANGUAGE plpgsql;  