/* postgres can not */ $x = a.0; SELECT count(*) FROM $x as a;