On Sat, Mar 14, 2015 at 7:21 PM, Denver Timothy wrote:
> In 9.4.1, I do this:
>
> CREATE TYPE my_test_type as (part1 text, part2 text);
>
> \pset null NULL
>
> WITH test_table(test_col) AS (
> VALUES (NULL::my_test_type), (ROW(NULL, NULL)::my_test_type)
> )
> SELECT *, (test_col).part1, (test_
In 9.4.1, I do this:
CREATE TYPE my_test_type as (part1 text, part2 text);
\pset null NULL
WITH test_table(test_col) AS (
VALUES (NULL::my_test_type), (ROW(NULL, NULL)::my_test_type)
)
SELECT *, (test_col).part1, (test_col).part2, test_col IS NULL AS is_null FROM
test_table;
And I get this