I am trying to execute this query using Postgresql 9.2
WITH udetail as (select(regexp_split_to_array('user@domain', E'\\@+')))
select * from udetail[1];
Buy it gives me a syntax error near where the start of '['. This same query is working fine under version 9.3. So I'm wonder if there's an alternative way of writing the query to get the same result.