2 -- Tests for psql features that aren't closely connected to any
3 -- specific server features
8 invalid variable name: "invalid/name"
9 -- fail: invalid value for special variable
11 unrecognized value "foo" for "AUTOCOMMIT": Boolean expected
13 invalid value "foo" for "FETCH_COUNT": integer expected
14 -- check handling of built-in boolean variable
15 \echo :ON_ERROR_ROLLBACK
17 \set ON_ERROR_ROLLBACK
18 \echo :ON_ERROR_ROLLBACK
20 \set ON_ERROR_ROLLBACK foo
21 unrecognized value "foo" for "ON_ERROR_ROLLBACK"
22 Available values are: on, off, interactive.
23 \echo :ON_ERROR_ROLLBACK
25 \set ON_ERROR_ROLLBACK on
26 \echo :ON_ERROR_ROLLBACK
28 \unset ON_ERROR_ROLLBACK
29 \echo :ON_ERROR_ROLLBACK
32 SELECT 1 as one, 2 as two \g
43 SELECT 3 as three, 4 as four \gx
54 -- \gx should work in FETCH_COUNT mode too
56 SELECT 1 as one, 2 as two \g
67 SELECT 3 as three, 4 as four \gx
80 select 10 as test01, 20 as test02, 'Hello' as test03 \gset pref01_
81 \echo :pref01_test01 :pref01_test02 :pref01_test03
83 -- should fail: bad variable name
84 select 10 as "bad name"
86 invalid variable name: "bad name"
87 -- multiple backslash commands in one line
88 select 1 as x, 2 as y \gset pref01_ \\ \echo :pref01_x
90 select 3 as x, 4 as y \gset pref01_ \echo :pref01_x \echo :pref01_y
93 select 5 as x, 6 as y \gset pref01_ \\ \g \echo :pref01_x :pref01_y
100 select 7 as x, 8 as y \g \gset pref01_ \echo :pref01_x :pref01_y
107 -- NULL should unset the variable
109 select 1 as var1, NULL as var2, 3 as var3 \gset
110 \echo :var1 :var2 :var3
112 -- \gset requires just one tuple
113 select 10 as test01, 20 as test02 from generate_series(1,3) \gset
114 more than one row returned for \gset
115 select 10 as test01, 20 as test02 from generate_series(1,0) \gset
116 no rows returned for \gset
117 -- \gset should work in FETCH_COUNT mode too
119 select 1 as x, 2 as y \gset pref01_ \\ \echo :pref01_x
121 select 3 as x, 4 as y \gset pref01_ \echo :pref01_x \echo :pref01_y
124 select 10 as test01, 20 as test02 from generate_series(1,3) \gset
125 more than one row returned for \gset
126 select 10 as test01, 20 as test02 from generate_series(1,0) \gset
127 no rows returned for \gset
137 'foo'::varchar(4) as six,
141 --------+----------------------
147 five | double precision
148 six | character varying(4)
152 -- should work with tuple-returning utilities, such as EXECUTE
153 PREPARE test AS SELECT 1 AS first, 2 AS second;
161 EXPLAIN EXECUTE test \gdesc
167 -- should fail cleanly - syntax error
169 ERROR: syntax error at end of input
172 -- check behavior with empty results
174 The command has no result, or the result has no columns.
175 CREATE TABLE bububu(a int) \gdesc
176 The command has no result, or the result has no columns.
177 -- subject command should not have executed
178 TABLE bububu; -- fail
179 ERROR: relation "bububu" does not exist
180 LINE 1: TABLE bububu;
182 -- query buffer should remain unchanged
183 SELECT 1 AS x, 'Hello', 2 AS y, true AS "dirty\name"
186 ------------+---------
194 x | ?column? | y | dirty\name
195 ---+----------+---+------------
200 SELECT 3 AS x, 'Hello', 4 AS y, true AS "dirty\name" \gdesc \g
202 ------------+---------
209 x | ?column? | y | dirty\name
210 ---+----------+---+------------
215 create temporary table gexec_test(a int, b text, c date, d float);
216 select format('create index on gexec_test(%I)', attname)
218 where attrelid = 'gexec_test'::regclass and attnum > 0
221 create index on gexec_test(a)
222 create index on gexec_test(b)
223 create index on gexec_test(c)
224 create index on gexec_test(d)
225 -- \gexec should work in FETCH_COUNT mode too
226 -- (though the fetch limit applies to the executed queries not the meta query)
228 select 'select 1 as ones', 'select x.y, x.y*2 as double from generate_series(1,4) as x(y)'
230 select 'drop table gexec_test', NULL
232 select 'drop table gexec_test', 'select ''2000-01-01''::date as party_over'
240 select x.y, x.y*2 as double from generate_series(1,4) as x(y)
249 drop table gexec_test
250 drop table gexec_test
251 ERROR: table "gexec_test" does not exist
252 select '2000-01-01'::date as party_over
259 -- show all pset options
278 unicode_border_linestyle single
279 unicode_column_linestyle single
280 unicode_header_linestyle single
281 -- test multi-line headers, wrapping, and newline indicators
282 prepare q as select array_to_string(array_agg(repeat('x',2*n)),E'\n') as "ab
284 c", array_to_string(array_agg(repeat('y',20-2*n)),E'\n') as "a
285 bc" from generate_series(1,10) as n(n) group by n>1 order by n>1;
286 \pset linestyle ascii
290 \pset format unaligned
296 xx|yyyyyyyyyyyyyyyyyy
305 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
320 -------------------- ------------------
321 xx yyyyyyyyyyyyyyyyyy
322 xxxx +yyyyyyyyyyyyyyyy +
323 xxxxxx +yyyyyyyyyyyyyy +
324 xxxxxxxx +yyyyyyyyyyyy +
325 xxxxxxxxxx +yyyyyyyyyy +
326 xxxxxxxxxxxx +yyyyyyyy +
327 xxxxxxxxxxxxxx +yyyyyy +
328 xxxxxxxxxxxxxxxx +yyyy +
329 xxxxxxxxxxxxxxxxxx +yy +
338 -------------------- ------------------
339 xx yyyyyyyyyyyyyyyyyy
340 xxxx +yyyyyyyyyyyyyyyy +
341 xxxxxx +yyyyyyyyyyyyyy +
342 xxxxxxxx +yyyyyyyyyyyy +
343 xxxxxxxxxx +yyyyyyyyyy +
344 xxxxxxxxxxxx +yyyyyyyy +
345 xxxxxxxxxxxxxx +yyyyyy +
346 xxxxxxxxxxxxxxxx +yyyy +
347 xxxxxxxxxxxxxxxxxx +yy +
352 \pset format unaligned
358 xx|yyyyyyyyyyyyyyyyyy
367 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
382 ----------------------+--------------------
383 xx | yyyyyyyyyyyyyyyyyy
384 xxxx +| yyyyyyyyyyyyyyyy +
385 xxxxxx +| yyyyyyyyyyyyyy +
386 xxxxxxxx +| yyyyyyyyyyyy +
387 xxxxxxxxxx +| yyyyyyyyyy +
388 xxxxxxxxxxxx +| yyyyyyyy +
389 xxxxxxxxxxxxxx +| yyyyyy +
390 xxxxxxxxxxxxxxxx +| yyyy +
391 xxxxxxxxxxxxxxxxxx +| yy +
392 xxxxxxxxxxxxxxxxxxxx |
400 -------------------+--------------------
401 xx | yyyyyyyyyyyyyyyyyy
402 xxxx +| yyyyyyyyyyyyyyyy +
403 xxxxxx +| yyyyyyyyyyyyyy +
404 xxxxxxxx +| yyyyyyyyyyyy +
405 xxxxxxxxxx +| yyyyyyyyyy +
406 xxxxxxxxxxxx +| yyyyyyyy +
407 xxxxxxxxxxxxxx +| yyyyyy +
408 xxxxxxxxxxxxxxxx +| yyyy +
409 xxxxxxxxxxxxxxxxx.| yy +
416 \pset format unaligned
422 xx|yyyyyyyyyyyyyyyyyy
431 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
443 +----------------------+--------------------+
447 +----------------------+--------------------+
448 | xx | yyyyyyyyyyyyyyyyyy |
449 | xxxx +| yyyyyyyyyyyyyyyy +|
450 | xxxxxx +| yyyyyyyyyyyyyy +|
451 | xxxxxxxx +| yyyyyyyyyyyy +|
452 | xxxxxxxxxx +| yyyyyyyyyy +|
453 | xxxxxxxxxxxx +| yyyyyyyy +|
454 | xxxxxxxxxxxxxx +| yyyyyy +|
455 | xxxxxxxxxxxxxxxx +| yyyy +|
456 | xxxxxxxxxxxxxxxxxx +| yy +|
457 | xxxxxxxxxxxxxxxxxxxx | |
458 +----------------------+--------------------+
463 +-----------------+--------------------+
467 +-----------------+--------------------+
468 | xx | yyyyyyyyyyyyyyyyyy |
469 | xxxx +| yyyyyyyyyyyyyyyy +|
470 | xxxxxx +| yyyyyyyyyyyyyy +|
471 | xxxxxxxx +| yyyyyyyyyyyy +|
472 | xxxxxxxxxx +| yyyyyyyyyy +|
473 | xxxxxxxxxxxx +| yyyyyyyy +|
474 | xxxxxxxxxxxxxx +| yyyyyy +|
475 | xxxxxxxxxxxxxxx.| yyyy +|
477 | xxxxxxxxxxxxxxx.| |
479 | xxxxxxxxxxxxxxx.| |
481 +-----------------+--------------------+
487 \pset format unaligned
493 bc|yyyyyyyyyyyyyyyyyy
522 a + yyyyyyyyyyyyyyyyyy
534 a + yyyyyyyyyyyyyyyy +
577 \pset format unaligned
583 bc|yyyyyyyyyyyyyyyyyy
608 -[ RECORD 1 ]------------
612 a +| yyyyyyyyyyyyyyyyyy
614 -[ RECORD 2 ]------------
622 | xxxxxxxxxxxxxxxxxx +
623 | xxxxxxxxxxxxxxxxxxxx
624 a +| yyyyyyyyyyyyyyyy +
625 bc | yyyyyyyyyyyyyy +
667 \pset format unaligned
673 bc|yyyyyyyyyyyyyyyyyy
698 +-[ RECORD 1 ]--------------+
702 | a +| yyyyyyyyyyyyyyyyyy |
704 +-[ RECORD 2 ]--------------+
710 | | xxxxxxxxxxxxxx +|
711 | | xxxxxxxxxxxxxxxx +|
712 | | xxxxxxxxxxxxxxxxxx +|
713 | | xxxxxxxxxxxxxxxxxxxx |
714 | a +| yyyyyyyyyyyyyyyy +|
715 | bc | yyyyyyyyyyyyyy +|
723 +----+----------------------+
762 \pset linestyle old-ascii
766 \pset format unaligned
772 xx|yyyyyyyyyyyyyyyyyy
781 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
796 -------------------- ------------------
797 xx yyyyyyyyyyyyyyyyyy
798 xxxx yyyyyyyyyyyyyyyy
799 xxxxxx yyyyyyyyyyyyyy
800 xxxxxxxx yyyyyyyyyyyy
801 xxxxxxxxxx yyyyyyyyyy
802 xxxxxxxxxxxx yyyyyyyy
803 xxxxxxxxxxxxxx yyyyyy
804 xxxxxxxxxxxxxxxx yyyy
805 xxxxxxxxxxxxxxxxxx yy
814 -------------------- ------------------
815 xx yyyyyyyyyyyyyyyyyy
816 xxxx yyyyyyyyyyyyyyyy
817 xxxxxx yyyyyyyyyyyyyy
818 xxxxxxxx yyyyyyyyyyyy
819 xxxxxxxxxx yyyyyyyyyy
820 xxxxxxxxxxxx yyyyyyyy
821 xxxxxxxxxxxxxx yyyyyy
822 xxxxxxxxxxxxxxxx yyyy
823 xxxxxxxxxxxxxxxxxx yy
828 \pset format unaligned
834 xx|yyyyyyyyyyyyyyyyyy
843 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
858 ----------------------+--------------------
859 xx | yyyyyyyyyyyyyyyyyy
860 xxxx | yyyyyyyyyyyyyyyy
861 xxxxxx : yyyyyyyyyyyyyy
862 xxxxxxxx : yyyyyyyyyyyy
863 xxxxxxxxxx : yyyyyyyyyy
864 xxxxxxxxxxxx : yyyyyyyy
865 xxxxxxxxxxxxxx : yyyyyy
866 xxxxxxxxxxxxxxxx : yyyy
867 xxxxxxxxxxxxxxxxxx : yy
868 xxxxxxxxxxxxxxxxxxxx :
876 -------------------+--------------------
877 xx | yyyyyyyyyyyyyyyyyy
878 xxxx | yyyyyyyyyyyyyyyy
879 xxxxxx : yyyyyyyyyyyyyy
880 xxxxxxxx : yyyyyyyyyyyy
881 xxxxxxxxxx : yyyyyyyyyy
882 xxxxxxxxxxxx : yyyyyyyy
883 xxxxxxxxxxxxxx : yyyyyy
884 xxxxxxxxxxxxxxxx : yyyy
885 xxxxxxxxxxxxxxxxx : yy
892 \pset format unaligned
898 xx|yyyyyyyyyyyyyyyyyy
907 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
919 +----------------------+--------------------+
923 +----------------------+--------------------+
924 | xx | yyyyyyyyyyyyyyyyyy |
925 | xxxx | yyyyyyyyyyyyyyyy |
926 | xxxxxx : yyyyyyyyyyyyyy |
927 | xxxxxxxx : yyyyyyyyyyyy |
928 | xxxxxxxxxx : yyyyyyyyyy |
929 | xxxxxxxxxxxx : yyyyyyyy |
930 | xxxxxxxxxxxxxx : yyyyyy |
931 | xxxxxxxxxxxxxxxx : yyyy |
932 | xxxxxxxxxxxxxxxxxx : yy |
933 | xxxxxxxxxxxxxxxxxxxx : |
934 +----------------------+--------------------+
939 +-----------------+--------------------+
943 +-----------------+--------------------+
944 | xx | yyyyyyyyyyyyyyyyyy |
945 | xxxx | yyyyyyyyyyyyyyyy |
946 | xxxxxx : yyyyyyyyyyyyyy |
947 | xxxxxxxx : yyyyyyyyyyyy |
948 | xxxxxxxxxx : yyyyyyyyyy |
949 | xxxxxxxxxxxx : yyyyyyyy |
950 | xxxxxxxxxxxxxx : yyyyyy |
951 | xxxxxxxxxxxxxxx : yyyy |
953 | xxxxxxxxxxxxxxx : |
957 +-----------------+--------------------+
963 \pset format unaligned
969 bc|yyyyyyyyyyyyyyyyyy
1009 xxxxxxxxxxxxxxxxxxxx
1020 \pset format wrapped
1051 \pset format unaligned
1057 bc|yyyyyyyyyyyyyyyyyy
1069 xxxxxxxxxxxxxxxxxxxx
1080 \pset format aligned
1082 -[ RECORD 1 ]-------------
1086 a | yyyyyyyyyyyyyyyyyy
1088 -[ RECORD 2 ]-------------
1096 : xxxxxxxxxxxxxxxxxx
1097 : xxxxxxxxxxxxxxxxxxxx
1098 a | yyyyyyyyyyyyyyyy
1099 +bc : yyyyyyyyyyyyyy
1108 \pset format wrapped
1110 -[ RECORD 1 ]-------
1116 -[ RECORD 2 ]-------
1141 \pset format unaligned
1147 bc|yyyyyyyyyyyyyyyyyy
1159 xxxxxxxxxxxxxxxxxxxx
1170 \pset format aligned
1172 +-[ RECORD 1 ]--------------+
1176 | a | yyyyyyyyyyyyyyyyyy |
1178 +-[ RECORD 2 ]--------------+
1184 | : xxxxxxxxxxxxxx |
1185 | : xxxxxxxxxxxxxxxx |
1186 | : xxxxxxxxxxxxxxxxxx |
1187 | : xxxxxxxxxxxxxxxxxxxx |
1188 | a | yyyyyyyyyyyyyyyy |
1189 |+bc : yyyyyyyyyyyyyy |
1197 +----+----------------------+
1199 \pset format wrapped
1201 +-[ RECORD 1 ]-----+
1207 +-[ RECORD 2 ]-----+
1234 +----+-------------+
1237 -- test single-line header and data
1238 prepare q as select repeat('x',2*n) as "0123456789abcdef", repeat('y',20-2*n) as "0123456789" from generate_series(1,10) as n;
1239 \pset linestyle ascii
1243 \pset format unaligned
1245 0123456789abcdef|0123456789
1246 xx|yyyyyyyyyyyyyyyyyy
1247 xxxx|yyyyyyyyyyyyyyyy
1248 xxxxxx|yyyyyyyyyyyyyy
1249 xxxxxxxx|yyyyyyyyyyyy
1250 xxxxxxxxxx|yyyyyyyyyy
1251 xxxxxxxxxxxx|yyyyyyyy
1252 xxxxxxxxxxxxxx|yyyyyy
1253 xxxxxxxxxxxxxxxx|yyyy
1254 xxxxxxxxxxxxxxxxxx|yy
1255 xxxxxxxxxxxxxxxxxxxx|
1257 \pset format aligned
1259 0123456789abcdef 0123456789
1260 -------------------- ------------------
1261 xx yyyyyyyyyyyyyyyyyy
1262 xxxx yyyyyyyyyyyyyyyy
1263 xxxxxx yyyyyyyyyyyyyy
1264 xxxxxxxx yyyyyyyyyyyy
1265 xxxxxxxxxx yyyyyyyyyy
1266 xxxxxxxxxxxx yyyyyyyy
1267 xxxxxxxxxxxxxx yyyyyy
1268 xxxxxxxxxxxxxxxx yyyy
1269 xxxxxxxxxxxxxxxxxx yy
1270 xxxxxxxxxxxxxxxxxxxx
1273 \pset format wrapped
1275 0123456789abcdef 0123456789
1276 -------------------- ------------------
1277 xx yyyyyyyyyyyyyyyyyy
1278 xxxx yyyyyyyyyyyyyyyy
1279 xxxxxx yyyyyyyyyyyyyy
1280 xxxxxxxx yyyyyyyyyyyy
1281 xxxxxxxxxx yyyyyyyyyy
1282 xxxxxxxxxxxx yyyyyyyy
1283 xxxxxxxxxxxxxx yyyyyy
1284 xxxxxxxxxxxxxxxx yyyy
1285 xxxxxxxxxxxxxxxxxx yy
1286 xxxxxxxxxxxxxxxxxxxx
1290 \pset format unaligned
1292 0123456789abcdef|0123456789
1293 xx|yyyyyyyyyyyyyyyyyy
1294 xxxx|yyyyyyyyyyyyyyyy
1295 xxxxxx|yyyyyyyyyyyyyy
1296 xxxxxxxx|yyyyyyyyyyyy
1297 xxxxxxxxxx|yyyyyyyyyy
1298 xxxxxxxxxxxx|yyyyyyyy
1299 xxxxxxxxxxxxxx|yyyyyy
1300 xxxxxxxxxxxxxxxx|yyyy
1301 xxxxxxxxxxxxxxxxxx|yy
1302 xxxxxxxxxxxxxxxxxxxx|
1304 \pset format aligned
1306 0123456789abcdef | 0123456789
1307 ----------------------+--------------------
1308 xx | yyyyyyyyyyyyyyyyyy
1309 xxxx | yyyyyyyyyyyyyyyy
1310 xxxxxx | yyyyyyyyyyyyyy
1311 xxxxxxxx | yyyyyyyyyyyy
1312 xxxxxxxxxx | yyyyyyyyyy
1313 xxxxxxxxxxxx | yyyyyyyy
1314 xxxxxxxxxxxxxx | yyyyyy
1315 xxxxxxxxxxxxxxxx | yyyy
1316 xxxxxxxxxxxxxxxxxx | yy
1317 xxxxxxxxxxxxxxxxxxxx |
1320 \pset format wrapped
1322 0123456789abcdef | 0123456789
1323 ---------------------+------------------
1324 xx | yyyyyyyyyyyyyyyy.
1326 xxxx | yyyyyyyyyyyyyyyy
1327 xxxxxx | yyyyyyyyyyyyyy
1328 xxxxxxxx | yyyyyyyyyyyy
1329 xxxxxxxxxx | yyyyyyyyyy
1330 xxxxxxxxxxxx | yyyyyyyy
1331 xxxxxxxxxxxxxx | yyyyyy
1332 xxxxxxxxxxxxxxxx | yyyy
1333 xxxxxxxxxxxxxxxxxx | yy
1334 xxxxxxxxxxxxxxxxxxx.|
1339 \pset format unaligned
1341 0123456789abcdef|0123456789
1342 xx|yyyyyyyyyyyyyyyyyy
1343 xxxx|yyyyyyyyyyyyyyyy
1344 xxxxxx|yyyyyyyyyyyyyy
1345 xxxxxxxx|yyyyyyyyyyyy
1346 xxxxxxxxxx|yyyyyyyyyy
1347 xxxxxxxxxxxx|yyyyyyyy
1348 xxxxxxxxxxxxxx|yyyyyy
1349 xxxxxxxxxxxxxxxx|yyyy
1350 xxxxxxxxxxxxxxxxxx|yy
1351 xxxxxxxxxxxxxxxxxxxx|
1353 \pset format aligned
1355 +----------------------+--------------------+
1356 | 0123456789abcdef | 0123456789 |
1357 +----------------------+--------------------+
1358 | xx | yyyyyyyyyyyyyyyyyy |
1359 | xxxx | yyyyyyyyyyyyyyyy |
1360 | xxxxxx | yyyyyyyyyyyyyy |
1361 | xxxxxxxx | yyyyyyyyyyyy |
1362 | xxxxxxxxxx | yyyyyyyyyy |
1363 | xxxxxxxxxxxx | yyyyyyyy |
1364 | xxxxxxxxxxxxxx | yyyyyy |
1365 | xxxxxxxxxxxxxxxx | yyyy |
1366 | xxxxxxxxxxxxxxxxxx | yy |
1367 | xxxxxxxxxxxxxxxxxxxx | |
1368 +----------------------+--------------------+
1371 \pset format wrapped
1373 +--------------------+-----------------+
1374 | 0123456789abcdef | 0123456789 |
1375 +--------------------+-----------------+
1376 | xx | yyyyyyyyyyyyyyy.|
1378 | xxxx | yyyyyyyyyyyyyyy.|
1380 | xxxxxx | yyyyyyyyyyyyyy |
1381 | xxxxxxxx | yyyyyyyyyyyy |
1382 | xxxxxxxxxx | yyyyyyyyyy |
1383 | xxxxxxxxxxxx | yyyyyyyy |
1384 | xxxxxxxxxxxxxx | yyyyyy |
1385 | xxxxxxxxxxxxxxxx | yyyy |
1386 | xxxxxxxxxxxxxxxxxx | yy |
1387 | xxxxxxxxxxxxxxxxxx.| |
1389 +--------------------+-----------------+
1395 \pset format unaligned
1398 0123456789|yyyyyyyyyyyyyyyyyy
1400 0123456789abcdef|xxxx
1401 0123456789|yyyyyyyyyyyyyyyy
1403 0123456789abcdef|xxxxxx
1404 0123456789|yyyyyyyyyyyyyy
1406 0123456789abcdef|xxxxxxxx
1407 0123456789|yyyyyyyyyyyy
1409 0123456789abcdef|xxxxxxxxxx
1410 0123456789|yyyyyyyyyy
1412 0123456789abcdef|xxxxxxxxxxxx
1415 0123456789abcdef|xxxxxxxxxxxxxx
1418 0123456789abcdef|xxxxxxxxxxxxxxxx
1421 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1424 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1426 \pset format aligned
1430 0123456789 yyyyyyyyyyyyyyyyyy
1432 0123456789abcdef xxxx
1433 0123456789 yyyyyyyyyyyyyyyy
1435 0123456789abcdef xxxxxx
1436 0123456789 yyyyyyyyyyyyyy
1438 0123456789abcdef xxxxxxxx
1439 0123456789 yyyyyyyyyyyy
1441 0123456789abcdef xxxxxxxxxx
1442 0123456789 yyyyyyyyyy
1444 0123456789abcdef xxxxxxxxxxxx
1447 0123456789abcdef xxxxxxxxxxxxxx
1450 0123456789abcdef xxxxxxxxxxxxxxxx
1453 0123456789abcdef xxxxxxxxxxxxxxxxxx
1456 0123456789abcdef xxxxxxxxxxxxxxxxxxxx
1459 \pset format wrapped
1463 0123456789 yyyyyyyyyyyy.
1466 0123456789abcdef xxxx
1467 0123456789 yyyyyyyyyyyy.
1470 0123456789abcdef xxxxxx
1471 0123456789 yyyyyyyyyyyy.
1474 0123456789abcdef xxxxxxxx
1475 0123456789 yyyyyyyyyyyy
1477 0123456789abcdef xxxxxxxxxx
1478 0123456789 yyyyyyyyyy
1480 0123456789abcdef xxxxxxxxxxxx
1483 0123456789abcdef xxxxxxxxxxxx.
1487 0123456789abcdef xxxxxxxxxxxx.
1491 0123456789abcdef xxxxxxxxxxxx.
1495 0123456789abcdef xxxxxxxxxxxx.
1500 \pset format unaligned
1503 0123456789|yyyyyyyyyyyyyyyyyy
1505 0123456789abcdef|xxxx
1506 0123456789|yyyyyyyyyyyyyyyy
1508 0123456789abcdef|xxxxxx
1509 0123456789|yyyyyyyyyyyyyy
1511 0123456789abcdef|xxxxxxxx
1512 0123456789|yyyyyyyyyyyy
1514 0123456789abcdef|xxxxxxxxxx
1515 0123456789|yyyyyyyyyy
1517 0123456789abcdef|xxxxxxxxxxxx
1520 0123456789abcdef|xxxxxxxxxxxxxx
1523 0123456789abcdef|xxxxxxxxxxxxxxxx
1526 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1529 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1531 \pset format aligned
1533 -[ RECORD 1 ]----+---------------------
1534 0123456789abcdef | xx
1535 0123456789 | yyyyyyyyyyyyyyyyyy
1536 -[ RECORD 2 ]----+---------------------
1537 0123456789abcdef | xxxx
1538 0123456789 | yyyyyyyyyyyyyyyy
1539 -[ RECORD 3 ]----+---------------------
1540 0123456789abcdef | xxxxxx
1541 0123456789 | yyyyyyyyyyyyyy
1542 -[ RECORD 4 ]----+---------------------
1543 0123456789abcdef | xxxxxxxx
1544 0123456789 | yyyyyyyyyyyy
1545 -[ RECORD 5 ]----+---------------------
1546 0123456789abcdef | xxxxxxxxxx
1547 0123456789 | yyyyyyyyyy
1548 -[ RECORD 6 ]----+---------------------
1549 0123456789abcdef | xxxxxxxxxxxx
1550 0123456789 | yyyyyyyy
1551 -[ RECORD 7 ]----+---------------------
1552 0123456789abcdef | xxxxxxxxxxxxxx
1554 -[ RECORD 8 ]----+---------------------
1555 0123456789abcdef | xxxxxxxxxxxxxxxx
1557 -[ RECORD 9 ]----+---------------------
1558 0123456789abcdef | xxxxxxxxxxxxxxxxxx
1560 -[ RECORD 10 ]---+---------------------
1561 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx
1564 \pset format wrapped
1566 -[ RECORD 1 ]----+-----------
1567 0123456789abcdef | xx
1568 0123456789 | yyyyyyyyyy.
1570 -[ RECORD 2 ]----+-----------
1571 0123456789abcdef | xxxx
1572 0123456789 | yyyyyyyyyy.
1574 -[ RECORD 3 ]----+-----------
1575 0123456789abcdef | xxxxxx
1576 0123456789 | yyyyyyyyyy.
1578 -[ RECORD 4 ]----+-----------
1579 0123456789abcdef | xxxxxxxx
1580 0123456789 | yyyyyyyyyy.
1582 -[ RECORD 5 ]----+-----------
1583 0123456789abcdef | xxxxxxxxxx
1584 0123456789 | yyyyyyyyyy
1585 -[ RECORD 6 ]----+-----------
1586 0123456789abcdef | xxxxxxxxxx.
1588 0123456789 | yyyyyyyy
1589 -[ RECORD 7 ]----+-----------
1590 0123456789abcdef | xxxxxxxxxx.
1593 -[ RECORD 8 ]----+-----------
1594 0123456789abcdef | xxxxxxxxxx.
1597 -[ RECORD 9 ]----+-----------
1598 0123456789abcdef | xxxxxxxxxx.
1601 -[ RECORD 10 ]---+-----------
1602 0123456789abcdef | xxxxxxxxxx.
1607 \pset format unaligned
1610 0123456789|yyyyyyyyyyyyyyyyyy
1612 0123456789abcdef|xxxx
1613 0123456789|yyyyyyyyyyyyyyyy
1615 0123456789abcdef|xxxxxx
1616 0123456789|yyyyyyyyyyyyyy
1618 0123456789abcdef|xxxxxxxx
1619 0123456789|yyyyyyyyyyyy
1621 0123456789abcdef|xxxxxxxxxx
1622 0123456789|yyyyyyyyyy
1624 0123456789abcdef|xxxxxxxxxxxx
1627 0123456789abcdef|xxxxxxxxxxxxxx
1630 0123456789abcdef|xxxxxxxxxxxxxxxx
1633 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1636 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1638 \pset format aligned
1640 +-[ RECORD 1 ]-----+----------------------+
1641 | 0123456789abcdef | xx |
1642 | 0123456789 | yyyyyyyyyyyyyyyyyy |
1643 +-[ RECORD 2 ]-----+----------------------+
1644 | 0123456789abcdef | xxxx |
1645 | 0123456789 | yyyyyyyyyyyyyyyy |
1646 +-[ RECORD 3 ]-----+----------------------+
1647 | 0123456789abcdef | xxxxxx |
1648 | 0123456789 | yyyyyyyyyyyyyy |
1649 +-[ RECORD 4 ]-----+----------------------+
1650 | 0123456789abcdef | xxxxxxxx |
1651 | 0123456789 | yyyyyyyyyyyy |
1652 +-[ RECORD 5 ]-----+----------------------+
1653 | 0123456789abcdef | xxxxxxxxxx |
1654 | 0123456789 | yyyyyyyyyy |
1655 +-[ RECORD 6 ]-----+----------------------+
1656 | 0123456789abcdef | xxxxxxxxxxxx |
1657 | 0123456789 | yyyyyyyy |
1658 +-[ RECORD 7 ]-----+----------------------+
1659 | 0123456789abcdef | xxxxxxxxxxxxxx |
1660 | 0123456789 | yyyyyy |
1661 +-[ RECORD 8 ]-----+----------------------+
1662 | 0123456789abcdef | xxxxxxxxxxxxxxxx |
1663 | 0123456789 | yyyy |
1664 +-[ RECORD 9 ]-----+----------------------+
1665 | 0123456789abcdef | xxxxxxxxxxxxxxxxxx |
1667 +-[ RECORD 10 ]----+----------------------+
1668 | 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx |
1670 +------------------+----------------------+
1672 \pset format wrapped
1674 +-[ RECORD 1 ]-----+---------+
1675 | 0123456789abcdef | xx |
1676 | 0123456789 | yyyyyyy.|
1679 +-[ RECORD 2 ]-----+---------+
1680 | 0123456789abcdef | xxxx |
1681 | 0123456789 | yyyyyyy.|
1684 +-[ RECORD 3 ]-----+---------+
1685 | 0123456789abcdef | xxxxxx |
1686 | 0123456789 | yyyyyyy.|
1688 +-[ RECORD 4 ]-----+---------+
1689 | 0123456789abcdef | xxxxxxx.|
1691 | 0123456789 | yyyyyyy.|
1693 +-[ RECORD 5 ]-----+---------+
1694 | 0123456789abcdef | xxxxxxx.|
1696 | 0123456789 | yyyyyyy.|
1698 +-[ RECORD 6 ]-----+---------+
1699 | 0123456789abcdef | xxxxxxx.|
1701 | 0123456789 | yyyyyyy.|
1703 +-[ RECORD 7 ]-----+---------+
1704 | 0123456789abcdef | xxxxxxx.|
1706 | 0123456789 | yyyyyy |
1707 +-[ RECORD 8 ]-----+---------+
1708 | 0123456789abcdef | xxxxxxx.|
1711 | 0123456789 | yyyy |
1712 +-[ RECORD 9 ]-----+---------+
1713 | 0123456789abcdef | xxxxxxx.|
1717 +-[ RECORD 10 ]----+---------+
1718 | 0123456789abcdef | xxxxxxx.|
1722 +------------------+---------+
1727 \pset format unaligned
1730 0123456789|yyyyyyyyyyyyyyyyyy
1732 0123456789abcdef|xxxx
1733 0123456789|yyyyyyyyyyyyyyyy
1735 0123456789abcdef|xxxxxx
1736 0123456789|yyyyyyyyyyyyyy
1738 0123456789abcdef|xxxxxxxx
1739 0123456789|yyyyyyyyyyyy
1741 0123456789abcdef|xxxxxxxxxx
1742 0123456789|yyyyyyyyyy
1744 0123456789abcdef|xxxxxxxxxxxx
1747 0123456789abcdef|xxxxxxxxxxxxxx
1750 0123456789abcdef|xxxxxxxxxxxxxxxx
1753 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1756 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1758 \pset format aligned
1762 0123456789 yyyyyyyyyyyyyyyyyy
1764 0123456789abcdef xxxx
1765 0123456789 yyyyyyyyyyyyyyyy
1767 0123456789abcdef xxxxxx
1768 0123456789 yyyyyyyyyyyyyy
1770 0123456789abcdef xxxxxxxx
1771 0123456789 yyyyyyyyyyyy
1773 0123456789abcdef xxxxxxxxxx
1774 0123456789 yyyyyyyyyy
1776 0123456789abcdef xxxxxxxxxxxx
1779 0123456789abcdef xxxxxxxxxxxxxx
1782 0123456789abcdef xxxxxxxxxxxxxxxx
1785 0123456789abcdef xxxxxxxxxxxxxxxxxx
1788 0123456789abcdef xxxxxxxxxxxxxxxxxxxx
1791 \pset format wrapped
1802 0123456789abcdef xxx.
1811 0123456789abcdef xxx.
1819 0123456789abcdef xxx.
1827 0123456789abcdef xxx.
1836 0123456789abcdef xxx.
1844 0123456789abcdef xxx.
1852 0123456789abcdef xxx.
1861 0123456789abcdef xxx.
1869 0123456789abcdef xxx.
1879 \pset format unaligned
1882 0123456789|yyyyyyyyyyyyyyyyyy
1884 0123456789abcdef|xxxx
1885 0123456789|yyyyyyyyyyyyyyyy
1887 0123456789abcdef|xxxxxx
1888 0123456789|yyyyyyyyyyyyyy
1890 0123456789abcdef|xxxxxxxx
1891 0123456789|yyyyyyyyyyyy
1893 0123456789abcdef|xxxxxxxxxx
1894 0123456789|yyyyyyyyyy
1896 0123456789abcdef|xxxxxxxxxxxx
1899 0123456789abcdef|xxxxxxxxxxxxxx
1902 0123456789abcdef|xxxxxxxxxxxxxxxx
1905 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1908 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1910 \pset format aligned
1912 -[ RECORD 1 ]----+---------------------
1913 0123456789abcdef | xx
1914 0123456789 | yyyyyyyyyyyyyyyyyy
1915 -[ RECORD 2 ]----+---------------------
1916 0123456789abcdef | xxxx
1917 0123456789 | yyyyyyyyyyyyyyyy
1918 -[ RECORD 3 ]----+---------------------
1919 0123456789abcdef | xxxxxx
1920 0123456789 | yyyyyyyyyyyyyy
1921 -[ RECORD 4 ]----+---------------------
1922 0123456789abcdef | xxxxxxxx
1923 0123456789 | yyyyyyyyyyyy
1924 -[ RECORD 5 ]----+---------------------
1925 0123456789abcdef | xxxxxxxxxx
1926 0123456789 | yyyyyyyyyy
1927 -[ RECORD 6 ]----+---------------------
1928 0123456789abcdef | xxxxxxxxxxxx
1929 0123456789 | yyyyyyyy
1930 -[ RECORD 7 ]----+---------------------
1931 0123456789abcdef | xxxxxxxxxxxxxx
1933 -[ RECORD 8 ]----+---------------------
1934 0123456789abcdef | xxxxxxxxxxxxxxxx
1936 -[ RECORD 9 ]----+---------------------
1937 0123456789abcdef | xxxxxxxxxxxxxxxxxx
1939 -[ RECORD 10 ]---+---------------------
1940 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx
1943 \pset format wrapped
1945 -[ RECORD 1 ]----+----
1946 0123456789abcdef | xx
1953 -[ RECORD 2 ]----+----
1954 0123456789abcdef | xxx.
1962 -[ RECORD 3 ]----+----
1963 0123456789abcdef | xxx.
1970 -[ RECORD 4 ]----+----
1971 0123456789abcdef | xxx.
1978 -[ RECORD 5 ]----+----
1979 0123456789abcdef | xxx.
1987 -[ RECORD 6 ]----+----
1988 0123456789abcdef | xxx.
1995 -[ RECORD 7 ]----+----
1996 0123456789abcdef | xxx.
2003 -[ RECORD 8 ]----+----
2004 0123456789abcdef | xxx.
2012 -[ RECORD 9 ]----+----
2013 0123456789abcdef | xxx.
2020 -[ RECORD 10 ]---+----
2021 0123456789abcdef | xxx.
2031 \pset format unaligned
2034 0123456789|yyyyyyyyyyyyyyyyyy
2036 0123456789abcdef|xxxx
2037 0123456789|yyyyyyyyyyyyyyyy
2039 0123456789abcdef|xxxxxx
2040 0123456789|yyyyyyyyyyyyyy
2042 0123456789abcdef|xxxxxxxx
2043 0123456789|yyyyyyyyyyyy
2045 0123456789abcdef|xxxxxxxxxx
2046 0123456789|yyyyyyyyyy
2048 0123456789abcdef|xxxxxxxxxxxx
2051 0123456789abcdef|xxxxxxxxxxxxxx
2054 0123456789abcdef|xxxxxxxxxxxxxxxx
2057 0123456789abcdef|xxxxxxxxxxxxxxxxxx
2060 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
2062 \pset format aligned
2064 +-[ RECORD 1 ]-----+----------------------+
2065 | 0123456789abcdef | xx |
2066 | 0123456789 | yyyyyyyyyyyyyyyyyy |
2067 +-[ RECORD 2 ]-----+----------------------+
2068 | 0123456789abcdef | xxxx |
2069 | 0123456789 | yyyyyyyyyyyyyyyy |
2070 +-[ RECORD 3 ]-----+----------------------+
2071 | 0123456789abcdef | xxxxxx |
2072 | 0123456789 | yyyyyyyyyyyyyy |
2073 +-[ RECORD 4 ]-----+----------------------+
2074 | 0123456789abcdef | xxxxxxxx |
2075 | 0123456789 | yyyyyyyyyyyy |
2076 +-[ RECORD 5 ]-----+----------------------+
2077 | 0123456789abcdef | xxxxxxxxxx |
2078 | 0123456789 | yyyyyyyyyy |
2079 +-[ RECORD 6 ]-----+----------------------+
2080 | 0123456789abcdef | xxxxxxxxxxxx |
2081 | 0123456789 | yyyyyyyy |
2082 +-[ RECORD 7 ]-----+----------------------+
2083 | 0123456789abcdef | xxxxxxxxxxxxxx |
2084 | 0123456789 | yyyyyy |
2085 +-[ RECORD 8 ]-----+----------------------+
2086 | 0123456789abcdef | xxxxxxxxxxxxxxxx |
2087 | 0123456789 | yyyy |
2088 +-[ RECORD 9 ]-----+----------------------+
2089 | 0123456789abcdef | xxxxxxxxxxxxxxxxxx |
2091 +-[ RECORD 10 ]----+----------------------+
2092 | 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx |
2094 +------------------+----------------------+
2096 \pset format wrapped
2098 +-[ RECORD 1 ]-----+-----+
2099 | 0123456789abcdef | xx |
2100 | 0123456789 | yyy.|
2106 +-[ RECORD 2 ]-----+-----+
2107 | 0123456789abcdef | xxx.|
2109 | 0123456789 | yyy.|
2115 +-[ RECORD 3 ]-----+-----+
2116 | 0123456789abcdef | xxx.|
2118 | 0123456789 | yyy.|
2123 +-[ RECORD 4 ]-----+-----+
2124 | 0123456789abcdef | xxx.|
2127 | 0123456789 | yyy.|
2131 +-[ RECORD 5 ]-----+-----+
2132 | 0123456789abcdef | xxx.|
2136 | 0123456789 | yyy.|
2140 +-[ RECORD 6 ]-----+-----+
2141 | 0123456789abcdef | xxx.|
2145 | 0123456789 | yyy.|
2148 +-[ RECORD 7 ]-----+-----+
2149 | 0123456789abcdef | xxx.|
2154 | 0123456789 | yyy.|
2156 +-[ RECORD 8 ]-----+-----+
2157 | 0123456789abcdef | xxx.|
2163 | 0123456789 | yyy.|
2165 +-[ RECORD 9 ]-----+-----+
2166 | 0123456789abcdef | xxx.|
2173 +-[ RECORD 10 ]----+-----+
2174 | 0123456789abcdef | xxx.|
2182 +------------------+-----+
2184 \pset linestyle old-ascii
2188 \pset format unaligned
2190 0123456789abcdef|0123456789
2191 xx|yyyyyyyyyyyyyyyyyy
2192 xxxx|yyyyyyyyyyyyyyyy
2193 xxxxxx|yyyyyyyyyyyyyy
2194 xxxxxxxx|yyyyyyyyyyyy
2195 xxxxxxxxxx|yyyyyyyyyy
2196 xxxxxxxxxxxx|yyyyyyyy
2197 xxxxxxxxxxxxxx|yyyyyy
2198 xxxxxxxxxxxxxxxx|yyyy
2199 xxxxxxxxxxxxxxxxxx|yy
2200 xxxxxxxxxxxxxxxxxxxx|
2202 \pset format aligned
2204 0123456789abcdef 0123456789
2205 -------------------- ------------------
2206 xx yyyyyyyyyyyyyyyyyy
2207 xxxx yyyyyyyyyyyyyyyy
2208 xxxxxx yyyyyyyyyyyyyy
2209 xxxxxxxx yyyyyyyyyyyy
2210 xxxxxxxxxx yyyyyyyyyy
2211 xxxxxxxxxxxx yyyyyyyy
2212 xxxxxxxxxxxxxx yyyyyy
2213 xxxxxxxxxxxxxxxx yyyy
2214 xxxxxxxxxxxxxxxxxx yy
2215 xxxxxxxxxxxxxxxxxxxx
2218 \pset format wrapped
2220 0123456789abcdef 0123456789
2221 -------------------- ------------------
2222 xx yyyyyyyyyyyyyyyyyy
2223 xxxx yyyyyyyyyyyyyyyy
2224 xxxxxx yyyyyyyyyyyyyy
2225 xxxxxxxx yyyyyyyyyyyy
2226 xxxxxxxxxx yyyyyyyyyy
2227 xxxxxxxxxxxx yyyyyyyy
2228 xxxxxxxxxxxxxx yyyyyy
2229 xxxxxxxxxxxxxxxx yyyy
2230 xxxxxxxxxxxxxxxxxx yy
2231 xxxxxxxxxxxxxxxxxxxx
2235 \pset format unaligned
2237 0123456789abcdef|0123456789
2238 xx|yyyyyyyyyyyyyyyyyy
2239 xxxx|yyyyyyyyyyyyyyyy
2240 xxxxxx|yyyyyyyyyyyyyy
2241 xxxxxxxx|yyyyyyyyyyyy
2242 xxxxxxxxxx|yyyyyyyyyy
2243 xxxxxxxxxxxx|yyyyyyyy
2244 xxxxxxxxxxxxxx|yyyyyy
2245 xxxxxxxxxxxxxxxx|yyyy
2246 xxxxxxxxxxxxxxxxxx|yy
2247 xxxxxxxxxxxxxxxxxxxx|
2249 \pset format aligned
2251 0123456789abcdef | 0123456789
2252 ----------------------+--------------------
2253 xx | yyyyyyyyyyyyyyyyyy
2254 xxxx | yyyyyyyyyyyyyyyy
2255 xxxxxx | yyyyyyyyyyyyyy
2256 xxxxxxxx | yyyyyyyyyyyy
2257 xxxxxxxxxx | yyyyyyyyyy
2258 xxxxxxxxxxxx | yyyyyyyy
2259 xxxxxxxxxxxxxx | yyyyyy
2260 xxxxxxxxxxxxxxxx | yyyy
2261 xxxxxxxxxxxxxxxxxx | yy
2262 xxxxxxxxxxxxxxxxxxxx |
2265 \pset format wrapped
2267 0123456789abcdef | 0123456789
2268 ---------------------+------------------
2269 xx | yyyyyyyyyyyyyyyy
2271 xxxx | yyyyyyyyyyyyyyyy
2272 xxxxxx | yyyyyyyyyyyyyy
2273 xxxxxxxx | yyyyyyyyyyyy
2274 xxxxxxxxxx | yyyyyyyyyy
2275 xxxxxxxxxxxx | yyyyyyyy
2276 xxxxxxxxxxxxxx | yyyyyy
2277 xxxxxxxxxxxxxxxx | yyyy
2278 xxxxxxxxxxxxxxxxxx | yy
2279 xxxxxxxxxxxxxxxxxxx |
2284 \pset format unaligned
2286 0123456789abcdef|0123456789
2287 xx|yyyyyyyyyyyyyyyyyy
2288 xxxx|yyyyyyyyyyyyyyyy
2289 xxxxxx|yyyyyyyyyyyyyy
2290 xxxxxxxx|yyyyyyyyyyyy
2291 xxxxxxxxxx|yyyyyyyyyy
2292 xxxxxxxxxxxx|yyyyyyyy
2293 xxxxxxxxxxxxxx|yyyyyy
2294 xxxxxxxxxxxxxxxx|yyyy
2295 xxxxxxxxxxxxxxxxxx|yy
2296 xxxxxxxxxxxxxxxxxxxx|
2298 \pset format aligned
2300 +----------------------+--------------------+
2301 | 0123456789abcdef | 0123456789 |
2302 +----------------------+--------------------+
2303 | xx | yyyyyyyyyyyyyyyyyy |
2304 | xxxx | yyyyyyyyyyyyyyyy |
2305 | xxxxxx | yyyyyyyyyyyyyy |
2306 | xxxxxxxx | yyyyyyyyyyyy |
2307 | xxxxxxxxxx | yyyyyyyyyy |
2308 | xxxxxxxxxxxx | yyyyyyyy |
2309 | xxxxxxxxxxxxxx | yyyyyy |
2310 | xxxxxxxxxxxxxxxx | yyyy |
2311 | xxxxxxxxxxxxxxxxxx | yy |
2312 | xxxxxxxxxxxxxxxxxxxx | |
2313 +----------------------+--------------------+
2316 \pset format wrapped
2318 +--------------------+-----------------+
2319 | 0123456789abcdef | 0123456789 |
2320 +--------------------+-----------------+
2321 | xx | yyyyyyyyyyyyyyy |
2323 | xxxx | yyyyyyyyyyyyyyy |
2325 | xxxxxx | yyyyyyyyyyyyyy |
2326 | xxxxxxxx | yyyyyyyyyyyy |
2327 | xxxxxxxxxx | yyyyyyyyyy |
2328 | xxxxxxxxxxxx | yyyyyyyy |
2329 | xxxxxxxxxxxxxx | yyyyyy |
2330 | xxxxxxxxxxxxxxxx | yyyy |
2331 | xxxxxxxxxxxxxxxxxx | yy |
2332 | xxxxxxxxxxxxxxxxxx | |
2334 +--------------------+-----------------+
2339 \pset format unaligned
2342 0123456789|yyyyyyyyyyyyyyyyyy
2344 0123456789abcdef|xxxx
2345 0123456789|yyyyyyyyyyyyyyyy
2347 0123456789abcdef|xxxxxx
2348 0123456789|yyyyyyyyyyyyyy
2350 0123456789abcdef|xxxxxxxx
2351 0123456789|yyyyyyyyyyyy
2353 0123456789abcdef|xxxxxxxxxx
2354 0123456789|yyyyyyyyyy
2356 0123456789abcdef|xxxxxxxxxxxx
2359 0123456789abcdef|xxxxxxxxxxxxxx
2362 0123456789abcdef|xxxxxxxxxxxxxxxx
2365 0123456789abcdef|xxxxxxxxxxxxxxxxxx
2368 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
2370 \pset format aligned
2374 0123456789 yyyyyyyyyyyyyyyyyy
2376 0123456789abcdef xxxx
2377 0123456789 yyyyyyyyyyyyyyyy
2379 0123456789abcdef xxxxxx
2380 0123456789 yyyyyyyyyyyyyy
2382 0123456789abcdef xxxxxxxx
2383 0123456789 yyyyyyyyyyyy
2385 0123456789abcdef xxxxxxxxxx
2386 0123456789 yyyyyyyyyy
2388 0123456789abcdef xxxxxxxxxxxx
2391 0123456789abcdef xxxxxxxxxxxxxx
2394 0123456789abcdef xxxxxxxxxxxxxxxx
2397 0123456789abcdef xxxxxxxxxxxxxxxxxx
2400 0123456789abcdef xxxxxxxxxxxxxxxxxxxx
2403 \pset format wrapped
2407 0123456789 yyyyyyyyyyyyyyyyyy
2409 0123456789abcdef xxxx
2410 0123456789 yyyyyyyyyyyyyyyy
2412 0123456789abcdef xxxxxx
2413 0123456789 yyyyyyyyyyyyyy
2415 0123456789abcdef xxxxxxxx
2416 0123456789 yyyyyyyyyyyy
2418 0123456789abcdef xxxxxxxxxx
2419 0123456789 yyyyyyyyyy
2421 0123456789abcdef xxxxxxxxxxxx
2424 0123456789abcdef xxxxxxxxxxxxxx
2427 0123456789abcdef xxxxxxxxxxxxxxxx
2430 0123456789abcdef xxxxxxxxxxxxxxxxxx
2433 0123456789abcdef xxxxxxxxxxxxxxxxxxxx
2437 \pset format unaligned
2440 0123456789|yyyyyyyyyyyyyyyyyy
2442 0123456789abcdef|xxxx
2443 0123456789|yyyyyyyyyyyyyyyy
2445 0123456789abcdef|xxxxxx
2446 0123456789|yyyyyyyyyyyyyy
2448 0123456789abcdef|xxxxxxxx
2449 0123456789|yyyyyyyyyyyy
2451 0123456789abcdef|xxxxxxxxxx
2452 0123456789|yyyyyyyyyy
2454 0123456789abcdef|xxxxxxxxxxxx
2457 0123456789abcdef|xxxxxxxxxxxxxx
2460 0123456789abcdef|xxxxxxxxxxxxxxxx
2463 0123456789abcdef|xxxxxxxxxxxxxxxxxx
2466 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
2468 \pset format aligned
2470 -[ RECORD 1 ]----+---------------------
2471 0123456789abcdef | xx
2472 0123456789 | yyyyyyyyyyyyyyyyyy
2473 -[ RECORD 2 ]----+---------------------
2474 0123456789abcdef | xxxx
2475 0123456789 | yyyyyyyyyyyyyyyy
2476 -[ RECORD 3 ]----+---------------------
2477 0123456789abcdef | xxxxxx
2478 0123456789 | yyyyyyyyyyyyyy
2479 -[ RECORD 4 ]----+---------------------
2480 0123456789abcdef | xxxxxxxx
2481 0123456789 | yyyyyyyyyyyy
2482 -[ RECORD 5 ]----+---------------------
2483 0123456789abcdef | xxxxxxxxxx
2484 0123456789 | yyyyyyyyyy
2485 -[ RECORD 6 ]----+---------------------
2486 0123456789abcdef | xxxxxxxxxxxx
2487 0123456789 | yyyyyyyy
2488 -[ RECORD 7 ]----+---------------------
2489 0123456789abcdef | xxxxxxxxxxxxxx
2491 -[ RECORD 8 ]----+---------------------
2492 0123456789abcdef | xxxxxxxxxxxxxxxx
2494 -[ RECORD 9 ]----+---------------------
2495 0123456789abcdef | xxxxxxxxxxxxxxxxxx
2497 -[ RECORD 10 ]---+---------------------
2498 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx
2501 \pset format wrapped
2503 -[ RECORD 1 ]----+---------------------
2504 0123456789abcdef | xx
2505 0123456789 | yyyyyyyyyyyyyyyyyy
2506 -[ RECORD 2 ]----+---------------------
2507 0123456789abcdef | xxxx
2508 0123456789 | yyyyyyyyyyyyyyyy
2509 -[ RECORD 3 ]----+---------------------
2510 0123456789abcdef | xxxxxx
2511 0123456789 | yyyyyyyyyyyyyy
2512 -[ RECORD 4 ]----+---------------------
2513 0123456789abcdef | xxxxxxxx
2514 0123456789 | yyyyyyyyyyyy
2515 -[ RECORD 5 ]----+---------------------
2516 0123456789abcdef | xxxxxxxxxx
2517 0123456789 | yyyyyyyyyy
2518 -[ RECORD 6 ]----+---------------------
2519 0123456789abcdef | xxxxxxxxxxxx
2520 0123456789 | yyyyyyyy
2521 -[ RECORD 7 ]----+---------------------
2522 0123456789abcdef | xxxxxxxxxxxxxx
2524 -[ RECORD 8 ]----+---------------------
2525 0123456789abcdef | xxxxxxxxxxxxxxxx
2527 -[ RECORD 9 ]----+---------------------
2528 0123456789abcdef | xxxxxxxxxxxxxxxxxx
2530 -[ RECORD 10 ]---+---------------------
2531 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx
2535 \pset format unaligned
2538 0123456789|yyyyyyyyyyyyyyyyyy
2540 0123456789abcdef|xxxx
2541 0123456789|yyyyyyyyyyyyyyyy
2543 0123456789abcdef|xxxxxx
2544 0123456789|yyyyyyyyyyyyyy
2546 0123456789abcdef|xxxxxxxx
2547 0123456789|yyyyyyyyyyyy
2549 0123456789abcdef|xxxxxxxxxx
2550 0123456789|yyyyyyyyyy
2552 0123456789abcdef|xxxxxxxxxxxx
2555 0123456789abcdef|xxxxxxxxxxxxxx
2558 0123456789abcdef|xxxxxxxxxxxxxxxx
2561 0123456789abcdef|xxxxxxxxxxxxxxxxxx
2564 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
2566 \pset format aligned
2568 +-[ RECORD 1 ]-----+----------------------+
2569 | 0123456789abcdef | xx |
2570 | 0123456789 | yyyyyyyyyyyyyyyyyy |
2571 +-[ RECORD 2 ]-----+----------------------+
2572 | 0123456789abcdef | xxxx |
2573 | 0123456789 | yyyyyyyyyyyyyyyy |
2574 +-[ RECORD 3 ]-----+----------------------+
2575 | 0123456789abcdef | xxxxxx |
2576 | 0123456789 | yyyyyyyyyyyyyy |
2577 +-[ RECORD 4 ]-----+----------------------+
2578 | 0123456789abcdef | xxxxxxxx |
2579 | 0123456789 | yyyyyyyyyyyy |
2580 +-[ RECORD 5 ]-----+----------------------+
2581 | 0123456789abcdef | xxxxxxxxxx |
2582 | 0123456789 | yyyyyyyyyy |
2583 +-[ RECORD 6 ]-----+----------------------+
2584 | 0123456789abcdef | xxxxxxxxxxxx |
2585 | 0123456789 | yyyyyyyy |
2586 +-[ RECORD 7 ]-----+----------------------+
2587 | 0123456789abcdef | xxxxxxxxxxxxxx |
2588 | 0123456789 | yyyyyy |
2589 +-[ RECORD 8 ]-----+----------------------+
2590 | 0123456789abcdef | xxxxxxxxxxxxxxxx |
2591 | 0123456789 | yyyy |
2592 +-[ RECORD 9 ]-----+----------------------+
2593 | 0123456789abcdef | xxxxxxxxxxxxxxxxxx |
2595 +-[ RECORD 10 ]----+----------------------+
2596 | 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx |
2598 +------------------+----------------------+
2600 \pset format wrapped
2602 +-[ RECORD 1 ]-----+-------------------+
2603 | 0123456789abcdef | xx |
2604 | 0123456789 | yyyyyyyyyyyyyyyyy |
2606 +-[ RECORD 2 ]-----+-------------------+
2607 | 0123456789abcdef | xxxx |
2608 | 0123456789 | yyyyyyyyyyyyyyyy |
2609 +-[ RECORD 3 ]-----+-------------------+
2610 | 0123456789abcdef | xxxxxx |
2611 | 0123456789 | yyyyyyyyyyyyyy |
2612 +-[ RECORD 4 ]-----+-------------------+
2613 | 0123456789abcdef | xxxxxxxx |
2614 | 0123456789 | yyyyyyyyyyyy |
2615 +-[ RECORD 5 ]-----+-------------------+
2616 | 0123456789abcdef | xxxxxxxxxx |
2617 | 0123456789 | yyyyyyyyyy |
2618 +-[ RECORD 6 ]-----+-------------------+
2619 | 0123456789abcdef | xxxxxxxxxxxx |
2620 | 0123456789 | yyyyyyyy |
2621 +-[ RECORD 7 ]-----+-------------------+
2622 | 0123456789abcdef | xxxxxxxxxxxxxx |
2623 | 0123456789 | yyyyyy |
2624 +-[ RECORD 8 ]-----+-------------------+
2625 | 0123456789abcdef | xxxxxxxxxxxxxxxx |
2626 | 0123456789 | yyyy |
2627 +-[ RECORD 9 ]-----+-------------------+
2628 | 0123456789abcdef | xxxxxxxxxxxxxxxxx |
2631 +-[ RECORD 10 ]----+-------------------+
2632 | 0123456789abcdef | xxxxxxxxxxxxxxxxx |
2635 +------------------+-------------------+
2638 \pset linestyle ascii
2639 prepare q as select ' | = | lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&' as " | -- | 012345678 9abc def!*@#&!@(*&*~~_+-=\ \", '11' as "0123456789", 11 as int from generate_series(1,10) as n;
2640 \pset format asciidoc
2645 [options="header",cols="<l,<l,>l",frame="none",grid="none"]
2647 ^l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ ^l|0123456789 ^l|int
2648 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2649 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2650 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2651 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2652 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2653 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2654 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2655 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2656 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2657 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2666 [options="header",cols="<l,<l,>l",frame="none"]
2668 ^l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ ^l|0123456789 ^l|int
2669 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2670 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2671 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2672 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2673 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2674 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2675 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2676 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2677 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2678 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2687 [options="header",cols="<l,<l,>l",frame="all",grid="all"]
2689 ^l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ ^l|0123456789 ^l|int
2690 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2691 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2692 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2693 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2694 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2695 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2696 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2697 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2698 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2699 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2709 [cols="h,l",frame="none",grid="none"]
2712 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2716 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2720 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2724 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2728 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2732 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2736 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2740 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2744 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2748 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2755 [cols="h,l",frame="none"]
2758 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2762 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2766 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2770 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2774 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2778 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2782 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2786 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2790 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2794 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2801 [cols="h,l",frame="all",grid="all"]
2804 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2808 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2812 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2816 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2820 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2824 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2828 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2832 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2836 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2840 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2845 \pset format aligned
2848 -- tests for \if ... \endif
2856 select 'still okay';
2866 -- at this point query buffer should still have last valid line
2873 -- \if should work okay on part of a query
2886 select \if false \\ (bogus \else \\ 42 \endif \\ forty_two;
2892 -- test a large nested if using a variety of true-equivalents
2900 \echo 'should not print #1-1'
2903 \echo 'should not print #1-2'
2906 \echo 'should not print #1-3'
2909 \echo 'should not print #1-4'
2911 -- test a variety of false-equivalents in an if/elif/else structure
2913 \echo 'should not print #2-1'
2915 \echo 'should not print #2-2'
2917 \echo 'should not print #2-3'
2919 \echo 'should not print #2-4'
2924 -- test simple true-then-else
2926 \echo 'first thing true'
2929 \echo 'should not print #3-1'
2931 -- test simple false-true-else
2933 \echo 'should not print #4-1'
2935 \echo 'second thing true'
2938 \echo 'should not print #5-1'
2940 -- invalid boolean expressions are false
2941 \if invalid boolean expression
2942 unrecognized value "invalid boolean expression" for "\if expression": Boolean expected
2943 \echo 'will not print #6-1'
2945 \echo 'will print anyway #6-2'
2946 will print anyway #6-2
2948 -- test un-matched endif
2950 \endif: no matching \if
2951 -- test un-matched else
2953 \else: no matching \if
2954 -- test un-matched elif
2956 \elif: no matching \if
2957 -- test double-else error
2961 \else: cannot occur after \else
2963 -- test elif out-of-order
2967 \elif: cannot occur after \else
2969 -- test if-endif matching in a false branch
2972 \echo 'should not print #7-1'
2974 \echo 'should not print #7-2'
2976 \echo 'should not print #7-3'
2978 \echo 'should print #7-4'
2981 -- show that vars and backticks are not expanded when ignoring extra args
2983 \echo :foo :'foo' :"foo"
2985 \pset fieldsep | `nosuchcommand` :foo :'foo' :"foo"
2986 \pset: extra argument "nosuchcommand" ignored
2987 \pset: extra argument ":foo" ignored
2988 \pset: extra argument ":'foo'" ignored
2989 \pset: extra argument ":"foo"" ignored
2990 -- show that vars and backticks are not expanded and commands are ignored
2991 -- when in a false if-branch
2992 \set try_to_quit '\\q'
2995 \echo `nosuchcommand` :foo :'foo' :"foo"
2996 \pset fieldsep | `nosuchcommand` :foo :'foo' :"foo"
2997 \a \C arg1 \c arg1 arg2 arg3 arg4 \cd arg1 \conninfo
2998 \copy arg1 arg2 arg3 arg4 arg5 arg6
2999 \copyright \dt arg1 \e arg1 arg2
3002 \echo arg1 arg2 arg3 arg4 arg5 \echo arg1 \encoding arg1 \errverbose
3003 \g arg1 \gx arg1 \gexec \h \html \i arg1 \ir arg1 \l arg1 \lo arg1 arg2
3004 \o arg1 \p \password arg1 \prompt arg1 arg2 \pset arg1 arg2 \q
3005 \reset \s arg1 \set arg1 arg2 arg3 arg4 arg5 arg6 arg7 \setenv arg1 arg2
3008 \t arg1 \T arg1 \timing arg1 \unset arg1 \w arg1 \watch arg1 \x arg1
3009 -- \else here is eaten as part of OT_FILEPIPE argument
3010 \w |/no/such/file \else
3011 -- \endif here is eaten as part of whole-line argument
3012 \! whole_line \endif
3014 \echo 'should print #8-1'
3018 \set SHOW_CONTEXT never
3022 raise exception 'bar';
3026 \set SHOW_CONTEXT errors
3030 raise exception 'bar';
3034 CONTEXT: PL/pgSQL function inline_code_block line 4 at RAISE
3035 \set SHOW_CONTEXT always
3039 raise exception 'bar';
3042 CONTEXT: PL/pgSQL function inline_code_block line 3 at RAISE
3044 CONTEXT: PL/pgSQL function inline_code_block line 4 at RAISE
3045 -- test printing and clearing the query buffer