-- no into
SELECT 0;
\set i debug(0)
-- into with ;
SELECT 1;
   \into a
\set i debug(:a)
-- into without ;
SELECT 2
\into b
\set i debug(:b)
-- into in compound
SELECT 3 \;         
\into c
SELECT 4 ;
\set i debug(:c)
-- into in compoun
SELECT 5 \; SELECT 4 \; 
\into c
SELECT 6 ;
\set i debug(:c)
-- into in compound
SELECT 4 \; SELECT 5 \; 
\into c
SELECT 6 \;
\into d
SELECT 7 ;
\set i debug(:c+:d-6)
-- interrupted select
SELECT i \into x
FROM generate_series(6, 6) AS i;
\set i debug(:x)
SELECT 1 ; \into a
SELECT i\into b
FROM generate_series(2, 2) AS i \;
SELECT 'lost';
SELECT 3 \; \into c
SELECT 4 \; \into d
\set i debug(:a + :b + :c + :d - 3)
VALUES (8) \; \into h
VALUES (9) ;  \into g
\set i debug(:h)
\set i debug(:g)
