2 -- Tests for psql features that aren't closely connected to any
3 -- specific server features
6 select 10 as test01, 20 as test02, 'Hello' as test03 \gset pref01_
7 \echo :pref01_test01 :pref01_test02 :pref01_test03
9 -- should fail: bad variable name
10 select 10 as "bad name"
12 could not set variable "bad name"
13 -- multiple backslash commands in one line
14 select 1 as x, 2 as y \gset pref01_ \\ \echo :pref01_x
16 select 3 as x, 4 as y \gset pref01_ \echo :pref01_x \echo :pref01_y
19 select 5 as x, 6 as y \gset pref01_ \\ \g \echo :pref01_x :pref01_y
26 select 7 as x, 8 as y \g \gset pref01_ \echo :pref01_x :pref01_y
33 -- NULL should unset the variable
35 select 1 as var1, NULL as var2, 3 as var3 \gset
36 \echo :var1 :var2 :var3
38 -- \gset requires just one tuple
39 select 10 as test01, 20 as test02 from generate_series(1,3) \gset
40 more than one row returned for \gset
41 select 10 as test01, 20 as test02 from generate_series(1,0) \gset
42 no rows returned for \gset
43 -- \gset should work in FETCH_COUNT mode too
45 select 1 as x, 2 as y \gset pref01_ \\ \echo :pref01_x
47 select 3 as x, 4 as y \gset pref01_ \echo :pref01_x \echo :pref01_y
50 select 10 as test01, 20 as test02 from generate_series(1,3) \gset
51 more than one row returned for \gset
52 select 10 as test01, 20 as test02 from generate_series(1,0) \gset
53 no rows returned for \gset
56 create temporary table gexec_test(a int, b text, c date, d float);
57 select format('create index on gexec_test(%I)', attname)
59 where attrelid = 'gexec_test'::regclass and attnum > 0
62 create index on gexec_test(a)
63 create index on gexec_test(b)
64 create index on gexec_test(c)
65 create index on gexec_test(d)
66 -- \gexec should work in FETCH_COUNT mode too
67 -- (though the fetch limit applies to the executed queries not the meta query)
69 select 'select 1 as ones', 'select x.y, x.y*2 as double from generate_series(1,4) as x(y)'
71 select 'drop table gexec_test', NULL
73 select 'drop table gexec_test', 'select ''2000-01-01''::date as party_over'
81 select x.y, x.y*2 as double from generate_series(1,4) as x(y)
92 ERROR: table "gexec_test" does not exist
93 select '2000-01-01'::date as party_over
100 -- show all pset options
119 unicode_border_linestyle single
120 unicode_column_linestyle single
121 unicode_header_linestyle single
122 -- test multi-line headers, wrapping, and newline indicators
123 prepare q as select array_to_string(array_agg(repeat('x',2*n)),E'\n') as "ab
125 c", array_to_string(array_agg(repeat('y',20-2*n)),E'\n') as "a
126 bc" from generate_series(1,10) as n(n) group by n>1 ;
127 \pset linestyle ascii
131 \pset format unaligned
137 xx|yyyyyyyyyyyyyyyyyy
146 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
161 -------------------- ------------------
162 xx yyyyyyyyyyyyyyyyyy
163 xxxx +yyyyyyyyyyyyyyyy +
164 xxxxxx +yyyyyyyyyyyyyy +
165 xxxxxxxx +yyyyyyyyyyyy +
166 xxxxxxxxxx +yyyyyyyyyy +
167 xxxxxxxxxxxx +yyyyyyyy +
168 xxxxxxxxxxxxxx +yyyyyy +
169 xxxxxxxxxxxxxxxx +yyyy +
170 xxxxxxxxxxxxxxxxxx +yy +
179 -------------------- ------------------
180 xx yyyyyyyyyyyyyyyyyy
181 xxxx +yyyyyyyyyyyyyyyy +
182 xxxxxx +yyyyyyyyyyyyyy +
183 xxxxxxxx +yyyyyyyyyyyy +
184 xxxxxxxxxx +yyyyyyyyyy +
185 xxxxxxxxxxxx +yyyyyyyy +
186 xxxxxxxxxxxxxx +yyyyyy +
187 xxxxxxxxxxxxxxxx +yyyy +
188 xxxxxxxxxxxxxxxxxx +yy +
193 \pset format unaligned
199 xx|yyyyyyyyyyyyyyyyyy
208 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
223 ----------------------+--------------------
224 xx | yyyyyyyyyyyyyyyyyy
225 xxxx +| yyyyyyyyyyyyyyyy +
226 xxxxxx +| yyyyyyyyyyyyyy +
227 xxxxxxxx +| yyyyyyyyyyyy +
228 xxxxxxxxxx +| yyyyyyyyyy +
229 xxxxxxxxxxxx +| yyyyyyyy +
230 xxxxxxxxxxxxxx +| yyyyyy +
231 xxxxxxxxxxxxxxxx +| yyyy +
232 xxxxxxxxxxxxxxxxxx +| yy +
233 xxxxxxxxxxxxxxxxxxxx |
241 -------------------+--------------------
242 xx | yyyyyyyyyyyyyyyyyy
243 xxxx +| yyyyyyyyyyyyyyyy +
244 xxxxxx +| yyyyyyyyyyyyyy +
245 xxxxxxxx +| yyyyyyyyyyyy +
246 xxxxxxxxxx +| yyyyyyyyyy +
247 xxxxxxxxxxxx +| yyyyyyyy +
248 xxxxxxxxxxxxxx +| yyyyyy +
249 xxxxxxxxxxxxxxxx +| yyyy +
250 xxxxxxxxxxxxxxxxx.| yy +
257 \pset format unaligned
263 xx|yyyyyyyyyyyyyyyyyy
272 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
284 +----------------------+--------------------+
288 +----------------------+--------------------+
289 | xx | yyyyyyyyyyyyyyyyyy |
290 | xxxx +| yyyyyyyyyyyyyyyy +|
291 | xxxxxx +| yyyyyyyyyyyyyy +|
292 | xxxxxxxx +| yyyyyyyyyyyy +|
293 | xxxxxxxxxx +| yyyyyyyyyy +|
294 | xxxxxxxxxxxx +| yyyyyyyy +|
295 | xxxxxxxxxxxxxx +| yyyyyy +|
296 | xxxxxxxxxxxxxxxx +| yyyy +|
297 | xxxxxxxxxxxxxxxxxx +| yy +|
298 | xxxxxxxxxxxxxxxxxxxx | |
299 +----------------------+--------------------+
304 +-----------------+--------------------+
308 +-----------------+--------------------+
309 | xx | yyyyyyyyyyyyyyyyyy |
310 | xxxx +| yyyyyyyyyyyyyyyy +|
311 | xxxxxx +| yyyyyyyyyyyyyy +|
312 | xxxxxxxx +| yyyyyyyyyyyy +|
313 | xxxxxxxxxx +| yyyyyyyyyy +|
314 | xxxxxxxxxxxx +| yyyyyyyy +|
315 | xxxxxxxxxxxxxx +| yyyyyy +|
316 | xxxxxxxxxxxxxxx.| yyyy +|
318 | xxxxxxxxxxxxxxx.| |
320 | xxxxxxxxxxxxxxx.| |
322 +-----------------+--------------------+
328 \pset format unaligned
334 bc|yyyyyyyyyyyyyyyyyy
363 a + yyyyyyyyyyyyyyyyyy
375 a + yyyyyyyyyyyyyyyy +
418 \pset format unaligned
424 bc|yyyyyyyyyyyyyyyyyy
449 -[ RECORD 1 ]------------
453 a +| yyyyyyyyyyyyyyyyyy
455 -[ RECORD 2 ]------------
463 | xxxxxxxxxxxxxxxxxx +
464 | xxxxxxxxxxxxxxxxxxxx
465 a +| yyyyyyyyyyyyyyyy +
466 bc | yyyyyyyyyyyyyy +
508 \pset format unaligned
514 bc|yyyyyyyyyyyyyyyyyy
539 +-[ RECORD 1 ]--------------+
543 | a +| yyyyyyyyyyyyyyyyyy |
545 +-[ RECORD 2 ]--------------+
551 | | xxxxxxxxxxxxxx +|
552 | | xxxxxxxxxxxxxxxx +|
553 | | xxxxxxxxxxxxxxxxxx +|
554 | | xxxxxxxxxxxxxxxxxxxx |
555 | a +| yyyyyyyyyyyyyyyy +|
556 | bc | yyyyyyyyyyyyyy +|
564 +----+----------------------+
603 \pset linestyle old-ascii
607 \pset format unaligned
613 xx|yyyyyyyyyyyyyyyyyy
622 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
637 -------------------- ------------------
638 xx yyyyyyyyyyyyyyyyyy
639 xxxx yyyyyyyyyyyyyyyy
640 xxxxxx yyyyyyyyyyyyyy
641 xxxxxxxx yyyyyyyyyyyy
642 xxxxxxxxxx yyyyyyyyyy
643 xxxxxxxxxxxx yyyyyyyy
644 xxxxxxxxxxxxxx yyyyyy
645 xxxxxxxxxxxxxxxx yyyy
646 xxxxxxxxxxxxxxxxxx yy
655 -------------------- ------------------
656 xx yyyyyyyyyyyyyyyyyy
657 xxxx yyyyyyyyyyyyyyyy
658 xxxxxx yyyyyyyyyyyyyy
659 xxxxxxxx yyyyyyyyyyyy
660 xxxxxxxxxx yyyyyyyyyy
661 xxxxxxxxxxxx yyyyyyyy
662 xxxxxxxxxxxxxx yyyyyy
663 xxxxxxxxxxxxxxxx yyyy
664 xxxxxxxxxxxxxxxxxx yy
669 \pset format unaligned
675 xx|yyyyyyyyyyyyyyyyyy
684 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
699 ----------------------+--------------------
700 xx | yyyyyyyyyyyyyyyyyy
701 xxxx | yyyyyyyyyyyyyyyy
702 xxxxxx : yyyyyyyyyyyyyy
703 xxxxxxxx : yyyyyyyyyyyy
704 xxxxxxxxxx : yyyyyyyyyy
705 xxxxxxxxxxxx : yyyyyyyy
706 xxxxxxxxxxxxxx : yyyyyy
707 xxxxxxxxxxxxxxxx : yyyy
708 xxxxxxxxxxxxxxxxxx : yy
709 xxxxxxxxxxxxxxxxxxxx :
717 -------------------+--------------------
718 xx | yyyyyyyyyyyyyyyyyy
719 xxxx | yyyyyyyyyyyyyyyy
720 xxxxxx : yyyyyyyyyyyyyy
721 xxxxxxxx : yyyyyyyyyyyy
722 xxxxxxxxxx : yyyyyyyyyy
723 xxxxxxxxxxxx : yyyyyyyy
724 xxxxxxxxxxxxxx : yyyyyy
725 xxxxxxxxxxxxxxxx : yyyy
726 xxxxxxxxxxxxxxxxx : yy
733 \pset format unaligned
739 xx|yyyyyyyyyyyyyyyyyy
748 xxxxxxxxxxxxxxxxxxxx|yyyyyyyyyyyyyyyy
760 +----------------------+--------------------+
764 +----------------------+--------------------+
765 | xx | yyyyyyyyyyyyyyyyyy |
766 | xxxx | yyyyyyyyyyyyyyyy |
767 | xxxxxx : yyyyyyyyyyyyyy |
768 | xxxxxxxx : yyyyyyyyyyyy |
769 | xxxxxxxxxx : yyyyyyyyyy |
770 | xxxxxxxxxxxx : yyyyyyyy |
771 | xxxxxxxxxxxxxx : yyyyyy |
772 | xxxxxxxxxxxxxxxx : yyyy |
773 | xxxxxxxxxxxxxxxxxx : yy |
774 | xxxxxxxxxxxxxxxxxxxx : |
775 +----------------------+--------------------+
780 +-----------------+--------------------+
784 +-----------------+--------------------+
785 | xx | yyyyyyyyyyyyyyyyyy |
786 | xxxx | yyyyyyyyyyyyyyyy |
787 | xxxxxx : yyyyyyyyyyyyyy |
788 | xxxxxxxx : yyyyyyyyyyyy |
789 | xxxxxxxxxx : yyyyyyyyyy |
790 | xxxxxxxxxxxx : yyyyyyyy |
791 | xxxxxxxxxxxxxx : yyyyyy |
792 | xxxxxxxxxxxxxxx : yyyy |
794 | xxxxxxxxxxxxxxx : |
798 +-----------------+--------------------+
804 \pset format unaligned
810 bc|yyyyyyyyyyyyyyyyyy
892 \pset format unaligned
898 bc|yyyyyyyyyyyyyyyyyy
923 -[ RECORD 1 ]-------------
927 a | yyyyyyyyyyyyyyyyyy
929 -[ RECORD 2 ]-------------
938 : xxxxxxxxxxxxxxxxxxxx
982 \pset format unaligned
988 bc|yyyyyyyyyyyyyyyyyy
1000 xxxxxxxxxxxxxxxxxxxx
1011 \pset format aligned
1013 +-[ RECORD 1 ]--------------+
1017 | a | yyyyyyyyyyyyyyyyyy |
1019 +-[ RECORD 2 ]--------------+
1025 | : xxxxxxxxxxxxxx |
1026 | : xxxxxxxxxxxxxxxx |
1027 | : xxxxxxxxxxxxxxxxxx |
1028 | : xxxxxxxxxxxxxxxxxxxx |
1029 | a | yyyyyyyyyyyyyyyy |
1030 |+bc : yyyyyyyyyyyyyy |
1038 +----+----------------------+
1040 \pset format wrapped
1042 +-[ RECORD 1 ]-----+
1048 +-[ RECORD 2 ]-----+
1075 +----+-------------+
1078 -- test single-line header and data
1079 prepare q as select repeat('x',2*n) as "0123456789abcdef", repeat('y',20-2*n) as "0123456789" from generate_series(1,10) as n;
1080 \pset linestyle ascii
1084 \pset format unaligned
1086 0123456789abcdef|0123456789
1087 xx|yyyyyyyyyyyyyyyyyy
1088 xxxx|yyyyyyyyyyyyyyyy
1089 xxxxxx|yyyyyyyyyyyyyy
1090 xxxxxxxx|yyyyyyyyyyyy
1091 xxxxxxxxxx|yyyyyyyyyy
1092 xxxxxxxxxxxx|yyyyyyyy
1093 xxxxxxxxxxxxxx|yyyyyy
1094 xxxxxxxxxxxxxxxx|yyyy
1095 xxxxxxxxxxxxxxxxxx|yy
1096 xxxxxxxxxxxxxxxxxxxx|
1098 \pset format aligned
1100 0123456789abcdef 0123456789
1101 -------------------- ------------------
1102 xx yyyyyyyyyyyyyyyyyy
1103 xxxx yyyyyyyyyyyyyyyy
1104 xxxxxx yyyyyyyyyyyyyy
1105 xxxxxxxx yyyyyyyyyyyy
1106 xxxxxxxxxx yyyyyyyyyy
1107 xxxxxxxxxxxx yyyyyyyy
1108 xxxxxxxxxxxxxx yyyyyy
1109 xxxxxxxxxxxxxxxx yyyy
1110 xxxxxxxxxxxxxxxxxx yy
1111 xxxxxxxxxxxxxxxxxxxx
1114 \pset format wrapped
1116 0123456789abcdef 0123456789
1117 -------------------- ------------------
1118 xx yyyyyyyyyyyyyyyyyy
1119 xxxx yyyyyyyyyyyyyyyy
1120 xxxxxx yyyyyyyyyyyyyy
1121 xxxxxxxx yyyyyyyyyyyy
1122 xxxxxxxxxx yyyyyyyyyy
1123 xxxxxxxxxxxx yyyyyyyy
1124 xxxxxxxxxxxxxx yyyyyy
1125 xxxxxxxxxxxxxxxx yyyy
1126 xxxxxxxxxxxxxxxxxx yy
1127 xxxxxxxxxxxxxxxxxxxx
1131 \pset format unaligned
1133 0123456789abcdef|0123456789
1134 xx|yyyyyyyyyyyyyyyyyy
1135 xxxx|yyyyyyyyyyyyyyyy
1136 xxxxxx|yyyyyyyyyyyyyy
1137 xxxxxxxx|yyyyyyyyyyyy
1138 xxxxxxxxxx|yyyyyyyyyy
1139 xxxxxxxxxxxx|yyyyyyyy
1140 xxxxxxxxxxxxxx|yyyyyy
1141 xxxxxxxxxxxxxxxx|yyyy
1142 xxxxxxxxxxxxxxxxxx|yy
1143 xxxxxxxxxxxxxxxxxxxx|
1145 \pset format aligned
1147 0123456789abcdef | 0123456789
1148 ----------------------+--------------------
1149 xx | yyyyyyyyyyyyyyyyyy
1150 xxxx | yyyyyyyyyyyyyyyy
1151 xxxxxx | yyyyyyyyyyyyyy
1152 xxxxxxxx | yyyyyyyyyyyy
1153 xxxxxxxxxx | yyyyyyyyyy
1154 xxxxxxxxxxxx | yyyyyyyy
1155 xxxxxxxxxxxxxx | yyyyyy
1156 xxxxxxxxxxxxxxxx | yyyy
1157 xxxxxxxxxxxxxxxxxx | yy
1158 xxxxxxxxxxxxxxxxxxxx |
1161 \pset format wrapped
1163 0123456789abcdef | 0123456789
1164 ---------------------+------------------
1165 xx | yyyyyyyyyyyyyyyy.
1167 xxxx | yyyyyyyyyyyyyyyy
1168 xxxxxx | yyyyyyyyyyyyyy
1169 xxxxxxxx | yyyyyyyyyyyy
1170 xxxxxxxxxx | yyyyyyyyyy
1171 xxxxxxxxxxxx | yyyyyyyy
1172 xxxxxxxxxxxxxx | yyyyyy
1173 xxxxxxxxxxxxxxxx | yyyy
1174 xxxxxxxxxxxxxxxxxx | yy
1175 xxxxxxxxxxxxxxxxxxx.|
1180 \pset format unaligned
1182 0123456789abcdef|0123456789
1183 xx|yyyyyyyyyyyyyyyyyy
1184 xxxx|yyyyyyyyyyyyyyyy
1185 xxxxxx|yyyyyyyyyyyyyy
1186 xxxxxxxx|yyyyyyyyyyyy
1187 xxxxxxxxxx|yyyyyyyyyy
1188 xxxxxxxxxxxx|yyyyyyyy
1189 xxxxxxxxxxxxxx|yyyyyy
1190 xxxxxxxxxxxxxxxx|yyyy
1191 xxxxxxxxxxxxxxxxxx|yy
1192 xxxxxxxxxxxxxxxxxxxx|
1194 \pset format aligned
1196 +----------------------+--------------------+
1197 | 0123456789abcdef | 0123456789 |
1198 +----------------------+--------------------+
1199 | xx | yyyyyyyyyyyyyyyyyy |
1200 | xxxx | yyyyyyyyyyyyyyyy |
1201 | xxxxxx | yyyyyyyyyyyyyy |
1202 | xxxxxxxx | yyyyyyyyyyyy |
1203 | xxxxxxxxxx | yyyyyyyyyy |
1204 | xxxxxxxxxxxx | yyyyyyyy |
1205 | xxxxxxxxxxxxxx | yyyyyy |
1206 | xxxxxxxxxxxxxxxx | yyyy |
1207 | xxxxxxxxxxxxxxxxxx | yy |
1208 | xxxxxxxxxxxxxxxxxxxx | |
1209 +----------------------+--------------------+
1212 \pset format wrapped
1214 +--------------------+-----------------+
1215 | 0123456789abcdef | 0123456789 |
1216 +--------------------+-----------------+
1217 | xx | yyyyyyyyyyyyyyy.|
1219 | xxxx | yyyyyyyyyyyyyyy.|
1221 | xxxxxx | yyyyyyyyyyyyyy |
1222 | xxxxxxxx | yyyyyyyyyyyy |
1223 | xxxxxxxxxx | yyyyyyyyyy |
1224 | xxxxxxxxxxxx | yyyyyyyy |
1225 | xxxxxxxxxxxxxx | yyyyyy |
1226 | xxxxxxxxxxxxxxxx | yyyy |
1227 | xxxxxxxxxxxxxxxxxx | yy |
1228 | xxxxxxxxxxxxxxxxxx.| |
1230 +--------------------+-----------------+
1236 \pset format unaligned
1239 0123456789|yyyyyyyyyyyyyyyyyy
1241 0123456789abcdef|xxxx
1242 0123456789|yyyyyyyyyyyyyyyy
1244 0123456789abcdef|xxxxxx
1245 0123456789|yyyyyyyyyyyyyy
1247 0123456789abcdef|xxxxxxxx
1248 0123456789|yyyyyyyyyyyy
1250 0123456789abcdef|xxxxxxxxxx
1251 0123456789|yyyyyyyyyy
1253 0123456789abcdef|xxxxxxxxxxxx
1256 0123456789abcdef|xxxxxxxxxxxxxx
1259 0123456789abcdef|xxxxxxxxxxxxxxxx
1262 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1265 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1267 \pset format aligned
1271 0123456789 yyyyyyyyyyyyyyyyyy
1273 0123456789abcdef xxxx
1274 0123456789 yyyyyyyyyyyyyyyy
1276 0123456789abcdef xxxxxx
1277 0123456789 yyyyyyyyyyyyyy
1279 0123456789abcdef xxxxxxxx
1280 0123456789 yyyyyyyyyyyy
1282 0123456789abcdef xxxxxxxxxx
1283 0123456789 yyyyyyyyyy
1285 0123456789abcdef xxxxxxxxxxxx
1288 0123456789abcdef xxxxxxxxxxxxxx
1291 0123456789abcdef xxxxxxxxxxxxxxxx
1294 0123456789abcdef xxxxxxxxxxxxxxxxxx
1297 0123456789abcdef xxxxxxxxxxxxxxxxxxxx
1300 \pset format wrapped
1304 0123456789 yyyyyyyyyyyy.
1307 0123456789abcdef xxxx
1308 0123456789 yyyyyyyyyyyy.
1311 0123456789abcdef xxxxxx
1312 0123456789 yyyyyyyyyyyy.
1315 0123456789abcdef xxxxxxxx
1316 0123456789 yyyyyyyyyyyy
1318 0123456789abcdef xxxxxxxxxx
1319 0123456789 yyyyyyyyyy
1321 0123456789abcdef xxxxxxxxxxxx
1324 0123456789abcdef xxxxxxxxxxxx.
1328 0123456789abcdef xxxxxxxxxxxx.
1332 0123456789abcdef xxxxxxxxxxxx.
1336 0123456789abcdef xxxxxxxxxxxx.
1341 \pset format unaligned
1344 0123456789|yyyyyyyyyyyyyyyyyy
1346 0123456789abcdef|xxxx
1347 0123456789|yyyyyyyyyyyyyyyy
1349 0123456789abcdef|xxxxxx
1350 0123456789|yyyyyyyyyyyyyy
1352 0123456789abcdef|xxxxxxxx
1353 0123456789|yyyyyyyyyyyy
1355 0123456789abcdef|xxxxxxxxxx
1356 0123456789|yyyyyyyyyy
1358 0123456789abcdef|xxxxxxxxxxxx
1361 0123456789abcdef|xxxxxxxxxxxxxx
1364 0123456789abcdef|xxxxxxxxxxxxxxxx
1367 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1370 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1372 \pset format aligned
1374 -[ RECORD 1 ]----+---------------------
1375 0123456789abcdef | xx
1376 0123456789 | yyyyyyyyyyyyyyyyyy
1377 -[ RECORD 2 ]----+---------------------
1378 0123456789abcdef | xxxx
1379 0123456789 | yyyyyyyyyyyyyyyy
1380 -[ RECORD 3 ]----+---------------------
1381 0123456789abcdef | xxxxxx
1382 0123456789 | yyyyyyyyyyyyyy
1383 -[ RECORD 4 ]----+---------------------
1384 0123456789abcdef | xxxxxxxx
1385 0123456789 | yyyyyyyyyyyy
1386 -[ RECORD 5 ]----+---------------------
1387 0123456789abcdef | xxxxxxxxxx
1388 0123456789 | yyyyyyyyyy
1389 -[ RECORD 6 ]----+---------------------
1390 0123456789abcdef | xxxxxxxxxxxx
1391 0123456789 | yyyyyyyy
1392 -[ RECORD 7 ]----+---------------------
1393 0123456789abcdef | xxxxxxxxxxxxxx
1395 -[ RECORD 8 ]----+---------------------
1396 0123456789abcdef | xxxxxxxxxxxxxxxx
1398 -[ RECORD 9 ]----+---------------------
1399 0123456789abcdef | xxxxxxxxxxxxxxxxxx
1401 -[ RECORD 10 ]---+---------------------
1402 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx
1405 \pset format wrapped
1407 -[ RECORD 1 ]----+-----------
1408 0123456789abcdef | xx
1409 0123456789 | yyyyyyyyyy.
1411 -[ RECORD 2 ]----+-----------
1412 0123456789abcdef | xxxx
1413 0123456789 | yyyyyyyyyy.
1415 -[ RECORD 3 ]----+-----------
1416 0123456789abcdef | xxxxxx
1417 0123456789 | yyyyyyyyyy.
1419 -[ RECORD 4 ]----+-----------
1420 0123456789abcdef | xxxxxxxx
1421 0123456789 | yyyyyyyyyy.
1423 -[ RECORD 5 ]----+-----------
1424 0123456789abcdef | xxxxxxxxxx
1425 0123456789 | yyyyyyyyyy
1426 -[ RECORD 6 ]----+-----------
1427 0123456789abcdef | xxxxxxxxxx.
1429 0123456789 | yyyyyyyy
1430 -[ RECORD 7 ]----+-----------
1431 0123456789abcdef | xxxxxxxxxx.
1434 -[ RECORD 8 ]----+-----------
1435 0123456789abcdef | xxxxxxxxxx.
1438 -[ RECORD 9 ]----+-----------
1439 0123456789abcdef | xxxxxxxxxx.
1442 -[ RECORD 10 ]---+-----------
1443 0123456789abcdef | xxxxxxxxxx.
1448 \pset format unaligned
1451 0123456789|yyyyyyyyyyyyyyyyyy
1453 0123456789abcdef|xxxx
1454 0123456789|yyyyyyyyyyyyyyyy
1456 0123456789abcdef|xxxxxx
1457 0123456789|yyyyyyyyyyyyyy
1459 0123456789abcdef|xxxxxxxx
1460 0123456789|yyyyyyyyyyyy
1462 0123456789abcdef|xxxxxxxxxx
1463 0123456789|yyyyyyyyyy
1465 0123456789abcdef|xxxxxxxxxxxx
1468 0123456789abcdef|xxxxxxxxxxxxxx
1471 0123456789abcdef|xxxxxxxxxxxxxxxx
1474 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1477 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1479 \pset format aligned
1481 +-[ RECORD 1 ]-----+----------------------+
1482 | 0123456789abcdef | xx |
1483 | 0123456789 | yyyyyyyyyyyyyyyyyy |
1484 +-[ RECORD 2 ]-----+----------------------+
1485 | 0123456789abcdef | xxxx |
1486 | 0123456789 | yyyyyyyyyyyyyyyy |
1487 +-[ RECORD 3 ]-----+----------------------+
1488 | 0123456789abcdef | xxxxxx |
1489 | 0123456789 | yyyyyyyyyyyyyy |
1490 +-[ RECORD 4 ]-----+----------------------+
1491 | 0123456789abcdef | xxxxxxxx |
1492 | 0123456789 | yyyyyyyyyyyy |
1493 +-[ RECORD 5 ]-----+----------------------+
1494 | 0123456789abcdef | xxxxxxxxxx |
1495 | 0123456789 | yyyyyyyyyy |
1496 +-[ RECORD 6 ]-----+----------------------+
1497 | 0123456789abcdef | xxxxxxxxxxxx |
1498 | 0123456789 | yyyyyyyy |
1499 +-[ RECORD 7 ]-----+----------------------+
1500 | 0123456789abcdef | xxxxxxxxxxxxxx |
1501 | 0123456789 | yyyyyy |
1502 +-[ RECORD 8 ]-----+----------------------+
1503 | 0123456789abcdef | xxxxxxxxxxxxxxxx |
1504 | 0123456789 | yyyy |
1505 +-[ RECORD 9 ]-----+----------------------+
1506 | 0123456789abcdef | xxxxxxxxxxxxxxxxxx |
1508 +-[ RECORD 10 ]----+----------------------+
1509 | 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx |
1511 +------------------+----------------------+
1513 \pset format wrapped
1515 +-[ RECORD 1 ]-----+---------+
1516 | 0123456789abcdef | xx |
1517 | 0123456789 | yyyyyyy.|
1520 +-[ RECORD 2 ]-----+---------+
1521 | 0123456789abcdef | xxxx |
1522 | 0123456789 | yyyyyyy.|
1525 +-[ RECORD 3 ]-----+---------+
1526 | 0123456789abcdef | xxxxxx |
1527 | 0123456789 | yyyyyyy.|
1529 +-[ RECORD 4 ]-----+---------+
1530 | 0123456789abcdef | xxxxxxx.|
1532 | 0123456789 | yyyyyyy.|
1534 +-[ RECORD 5 ]-----+---------+
1535 | 0123456789abcdef | xxxxxxx.|
1537 | 0123456789 | yyyyyyy.|
1539 +-[ RECORD 6 ]-----+---------+
1540 | 0123456789abcdef | xxxxxxx.|
1542 | 0123456789 | yyyyyyy.|
1544 +-[ RECORD 7 ]-----+---------+
1545 | 0123456789abcdef | xxxxxxx.|
1547 | 0123456789 | yyyyyy |
1548 +-[ RECORD 8 ]-----+---------+
1549 | 0123456789abcdef | xxxxxxx.|
1552 | 0123456789 | yyyy |
1553 +-[ RECORD 9 ]-----+---------+
1554 | 0123456789abcdef | xxxxxxx.|
1558 +-[ RECORD 10 ]----+---------+
1559 | 0123456789abcdef | xxxxxxx.|
1563 +------------------+---------+
1568 \pset format unaligned
1571 0123456789|yyyyyyyyyyyyyyyyyy
1573 0123456789abcdef|xxxx
1574 0123456789|yyyyyyyyyyyyyyyy
1576 0123456789abcdef|xxxxxx
1577 0123456789|yyyyyyyyyyyyyy
1579 0123456789abcdef|xxxxxxxx
1580 0123456789|yyyyyyyyyyyy
1582 0123456789abcdef|xxxxxxxxxx
1583 0123456789|yyyyyyyyyy
1585 0123456789abcdef|xxxxxxxxxxxx
1588 0123456789abcdef|xxxxxxxxxxxxxx
1591 0123456789abcdef|xxxxxxxxxxxxxxxx
1594 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1597 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1599 \pset format aligned
1603 0123456789 yyyyyyyyyyyyyyyyyy
1605 0123456789abcdef xxxx
1606 0123456789 yyyyyyyyyyyyyyyy
1608 0123456789abcdef xxxxxx
1609 0123456789 yyyyyyyyyyyyyy
1611 0123456789abcdef xxxxxxxx
1612 0123456789 yyyyyyyyyyyy
1614 0123456789abcdef xxxxxxxxxx
1615 0123456789 yyyyyyyyyy
1617 0123456789abcdef xxxxxxxxxxxx
1620 0123456789abcdef xxxxxxxxxxxxxx
1623 0123456789abcdef xxxxxxxxxxxxxxxx
1626 0123456789abcdef xxxxxxxxxxxxxxxxxx
1629 0123456789abcdef xxxxxxxxxxxxxxxxxxxx
1632 \pset format wrapped
1643 0123456789abcdef xxx.
1652 0123456789abcdef xxx.
1660 0123456789abcdef xxx.
1668 0123456789abcdef xxx.
1677 0123456789abcdef xxx.
1685 0123456789abcdef xxx.
1693 0123456789abcdef xxx.
1702 0123456789abcdef xxx.
1710 0123456789abcdef xxx.
1720 \pset format unaligned
1723 0123456789|yyyyyyyyyyyyyyyyyy
1725 0123456789abcdef|xxxx
1726 0123456789|yyyyyyyyyyyyyyyy
1728 0123456789abcdef|xxxxxx
1729 0123456789|yyyyyyyyyyyyyy
1731 0123456789abcdef|xxxxxxxx
1732 0123456789|yyyyyyyyyyyy
1734 0123456789abcdef|xxxxxxxxxx
1735 0123456789|yyyyyyyyyy
1737 0123456789abcdef|xxxxxxxxxxxx
1740 0123456789abcdef|xxxxxxxxxxxxxx
1743 0123456789abcdef|xxxxxxxxxxxxxxxx
1746 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1749 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1751 \pset format aligned
1753 -[ RECORD 1 ]----+---------------------
1754 0123456789abcdef | xx
1755 0123456789 | yyyyyyyyyyyyyyyyyy
1756 -[ RECORD 2 ]----+---------------------
1757 0123456789abcdef | xxxx
1758 0123456789 | yyyyyyyyyyyyyyyy
1759 -[ RECORD 3 ]----+---------------------
1760 0123456789abcdef | xxxxxx
1761 0123456789 | yyyyyyyyyyyyyy
1762 -[ RECORD 4 ]----+---------------------
1763 0123456789abcdef | xxxxxxxx
1764 0123456789 | yyyyyyyyyyyy
1765 -[ RECORD 5 ]----+---------------------
1766 0123456789abcdef | xxxxxxxxxx
1767 0123456789 | yyyyyyyyyy
1768 -[ RECORD 6 ]----+---------------------
1769 0123456789abcdef | xxxxxxxxxxxx
1770 0123456789 | yyyyyyyy
1771 -[ RECORD 7 ]----+---------------------
1772 0123456789abcdef | xxxxxxxxxxxxxx
1774 -[ RECORD 8 ]----+---------------------
1775 0123456789abcdef | xxxxxxxxxxxxxxxx
1777 -[ RECORD 9 ]----+---------------------
1778 0123456789abcdef | xxxxxxxxxxxxxxxxxx
1780 -[ RECORD 10 ]---+---------------------
1781 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx
1784 \pset format wrapped
1786 -[ RECORD 1 ]----+----
1787 0123456789abcdef | xx
1794 -[ RECORD 2 ]----+----
1795 0123456789abcdef | xxx.
1803 -[ RECORD 3 ]----+----
1804 0123456789abcdef | xxx.
1811 -[ RECORD 4 ]----+----
1812 0123456789abcdef | xxx.
1819 -[ RECORD 5 ]----+----
1820 0123456789abcdef | xxx.
1828 -[ RECORD 6 ]----+----
1829 0123456789abcdef | xxx.
1836 -[ RECORD 7 ]----+----
1837 0123456789abcdef | xxx.
1844 -[ RECORD 8 ]----+----
1845 0123456789abcdef | xxx.
1853 -[ RECORD 9 ]----+----
1854 0123456789abcdef | xxx.
1861 -[ RECORD 10 ]---+----
1862 0123456789abcdef | xxx.
1872 \pset format unaligned
1875 0123456789|yyyyyyyyyyyyyyyyyy
1877 0123456789abcdef|xxxx
1878 0123456789|yyyyyyyyyyyyyyyy
1880 0123456789abcdef|xxxxxx
1881 0123456789|yyyyyyyyyyyyyy
1883 0123456789abcdef|xxxxxxxx
1884 0123456789|yyyyyyyyyyyy
1886 0123456789abcdef|xxxxxxxxxx
1887 0123456789|yyyyyyyyyy
1889 0123456789abcdef|xxxxxxxxxxxx
1892 0123456789abcdef|xxxxxxxxxxxxxx
1895 0123456789abcdef|xxxxxxxxxxxxxxxx
1898 0123456789abcdef|xxxxxxxxxxxxxxxxxx
1901 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
1903 \pset format aligned
1905 +-[ RECORD 1 ]-----+----------------------+
1906 | 0123456789abcdef | xx |
1907 | 0123456789 | yyyyyyyyyyyyyyyyyy |
1908 +-[ RECORD 2 ]-----+----------------------+
1909 | 0123456789abcdef | xxxx |
1910 | 0123456789 | yyyyyyyyyyyyyyyy |
1911 +-[ RECORD 3 ]-----+----------------------+
1912 | 0123456789abcdef | xxxxxx |
1913 | 0123456789 | yyyyyyyyyyyyyy |
1914 +-[ RECORD 4 ]-----+----------------------+
1915 | 0123456789abcdef | xxxxxxxx |
1916 | 0123456789 | yyyyyyyyyyyy |
1917 +-[ RECORD 5 ]-----+----------------------+
1918 | 0123456789abcdef | xxxxxxxxxx |
1919 | 0123456789 | yyyyyyyyyy |
1920 +-[ RECORD 6 ]-----+----------------------+
1921 | 0123456789abcdef | xxxxxxxxxxxx |
1922 | 0123456789 | yyyyyyyy |
1923 +-[ RECORD 7 ]-----+----------------------+
1924 | 0123456789abcdef | xxxxxxxxxxxxxx |
1925 | 0123456789 | yyyyyy |
1926 +-[ RECORD 8 ]-----+----------------------+
1927 | 0123456789abcdef | xxxxxxxxxxxxxxxx |
1928 | 0123456789 | yyyy |
1929 +-[ RECORD 9 ]-----+----------------------+
1930 | 0123456789abcdef | xxxxxxxxxxxxxxxxxx |
1932 +-[ RECORD 10 ]----+----------------------+
1933 | 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx |
1935 +------------------+----------------------+
1937 \pset format wrapped
1939 +-[ RECORD 1 ]-----+-----+
1940 | 0123456789abcdef | xx |
1941 | 0123456789 | yyy.|
1947 +-[ RECORD 2 ]-----+-----+
1948 | 0123456789abcdef | xxx.|
1950 | 0123456789 | yyy.|
1956 +-[ RECORD 3 ]-----+-----+
1957 | 0123456789abcdef | xxx.|
1959 | 0123456789 | yyy.|
1964 +-[ RECORD 4 ]-----+-----+
1965 | 0123456789abcdef | xxx.|
1968 | 0123456789 | yyy.|
1972 +-[ RECORD 5 ]-----+-----+
1973 | 0123456789abcdef | xxx.|
1977 | 0123456789 | yyy.|
1981 +-[ RECORD 6 ]-----+-----+
1982 | 0123456789abcdef | xxx.|
1986 | 0123456789 | yyy.|
1989 +-[ RECORD 7 ]-----+-----+
1990 | 0123456789abcdef | xxx.|
1995 | 0123456789 | yyy.|
1997 +-[ RECORD 8 ]-----+-----+
1998 | 0123456789abcdef | xxx.|
2004 | 0123456789 | yyy.|
2006 +-[ RECORD 9 ]-----+-----+
2007 | 0123456789abcdef | xxx.|
2014 +-[ RECORD 10 ]----+-----+
2015 | 0123456789abcdef | xxx.|
2023 +------------------+-----+
2025 \pset linestyle old-ascii
2029 \pset format unaligned
2031 0123456789abcdef|0123456789
2032 xx|yyyyyyyyyyyyyyyyyy
2033 xxxx|yyyyyyyyyyyyyyyy
2034 xxxxxx|yyyyyyyyyyyyyy
2035 xxxxxxxx|yyyyyyyyyyyy
2036 xxxxxxxxxx|yyyyyyyyyy
2037 xxxxxxxxxxxx|yyyyyyyy
2038 xxxxxxxxxxxxxx|yyyyyy
2039 xxxxxxxxxxxxxxxx|yyyy
2040 xxxxxxxxxxxxxxxxxx|yy
2041 xxxxxxxxxxxxxxxxxxxx|
2043 \pset format aligned
2045 0123456789abcdef 0123456789
2046 -------------------- ------------------
2047 xx yyyyyyyyyyyyyyyyyy
2048 xxxx yyyyyyyyyyyyyyyy
2049 xxxxxx yyyyyyyyyyyyyy
2050 xxxxxxxx yyyyyyyyyyyy
2051 xxxxxxxxxx yyyyyyyyyy
2052 xxxxxxxxxxxx yyyyyyyy
2053 xxxxxxxxxxxxxx yyyyyy
2054 xxxxxxxxxxxxxxxx yyyy
2055 xxxxxxxxxxxxxxxxxx yy
2056 xxxxxxxxxxxxxxxxxxxx
2059 \pset format wrapped
2061 0123456789abcdef 0123456789
2062 -------------------- ------------------
2063 xx yyyyyyyyyyyyyyyyyy
2064 xxxx yyyyyyyyyyyyyyyy
2065 xxxxxx yyyyyyyyyyyyyy
2066 xxxxxxxx yyyyyyyyyyyy
2067 xxxxxxxxxx yyyyyyyyyy
2068 xxxxxxxxxxxx yyyyyyyy
2069 xxxxxxxxxxxxxx yyyyyy
2070 xxxxxxxxxxxxxxxx yyyy
2071 xxxxxxxxxxxxxxxxxx yy
2072 xxxxxxxxxxxxxxxxxxxx
2076 \pset format unaligned
2078 0123456789abcdef|0123456789
2079 xx|yyyyyyyyyyyyyyyyyy
2080 xxxx|yyyyyyyyyyyyyyyy
2081 xxxxxx|yyyyyyyyyyyyyy
2082 xxxxxxxx|yyyyyyyyyyyy
2083 xxxxxxxxxx|yyyyyyyyyy
2084 xxxxxxxxxxxx|yyyyyyyy
2085 xxxxxxxxxxxxxx|yyyyyy
2086 xxxxxxxxxxxxxxxx|yyyy
2087 xxxxxxxxxxxxxxxxxx|yy
2088 xxxxxxxxxxxxxxxxxxxx|
2090 \pset format aligned
2092 0123456789abcdef | 0123456789
2093 ----------------------+--------------------
2094 xx | yyyyyyyyyyyyyyyyyy
2095 xxxx | yyyyyyyyyyyyyyyy
2096 xxxxxx | yyyyyyyyyyyyyy
2097 xxxxxxxx | yyyyyyyyyyyy
2098 xxxxxxxxxx | yyyyyyyyyy
2099 xxxxxxxxxxxx | yyyyyyyy
2100 xxxxxxxxxxxxxx | yyyyyy
2101 xxxxxxxxxxxxxxxx | yyyy
2102 xxxxxxxxxxxxxxxxxx | yy
2103 xxxxxxxxxxxxxxxxxxxx |
2106 \pset format wrapped
2108 0123456789abcdef | 0123456789
2109 ---------------------+------------------
2110 xx | yyyyyyyyyyyyyyyy
2112 xxxx | yyyyyyyyyyyyyyyy
2113 xxxxxx | yyyyyyyyyyyyyy
2114 xxxxxxxx | yyyyyyyyyyyy
2115 xxxxxxxxxx | yyyyyyyyyy
2116 xxxxxxxxxxxx | yyyyyyyy
2117 xxxxxxxxxxxxxx | yyyyyy
2118 xxxxxxxxxxxxxxxx | yyyy
2119 xxxxxxxxxxxxxxxxxx | yy
2120 xxxxxxxxxxxxxxxxxxx |
2125 \pset format unaligned
2127 0123456789abcdef|0123456789
2128 xx|yyyyyyyyyyyyyyyyyy
2129 xxxx|yyyyyyyyyyyyyyyy
2130 xxxxxx|yyyyyyyyyyyyyy
2131 xxxxxxxx|yyyyyyyyyyyy
2132 xxxxxxxxxx|yyyyyyyyyy
2133 xxxxxxxxxxxx|yyyyyyyy
2134 xxxxxxxxxxxxxx|yyyyyy
2135 xxxxxxxxxxxxxxxx|yyyy
2136 xxxxxxxxxxxxxxxxxx|yy
2137 xxxxxxxxxxxxxxxxxxxx|
2139 \pset format aligned
2141 +----------------------+--------------------+
2142 | 0123456789abcdef | 0123456789 |
2143 +----------------------+--------------------+
2144 | xx | yyyyyyyyyyyyyyyyyy |
2145 | xxxx | yyyyyyyyyyyyyyyy |
2146 | xxxxxx | yyyyyyyyyyyyyy |
2147 | xxxxxxxx | yyyyyyyyyyyy |
2148 | xxxxxxxxxx | yyyyyyyyyy |
2149 | xxxxxxxxxxxx | yyyyyyyy |
2150 | xxxxxxxxxxxxxx | yyyyyy |
2151 | xxxxxxxxxxxxxxxx | yyyy |
2152 | xxxxxxxxxxxxxxxxxx | yy |
2153 | xxxxxxxxxxxxxxxxxxxx | |
2154 +----------------------+--------------------+
2157 \pset format wrapped
2159 +--------------------+-----------------+
2160 | 0123456789abcdef | 0123456789 |
2161 +--------------------+-----------------+
2162 | xx | yyyyyyyyyyyyyyy |
2164 | xxxx | yyyyyyyyyyyyyyy |
2166 | xxxxxx | yyyyyyyyyyyyyy |
2167 | xxxxxxxx | yyyyyyyyyyyy |
2168 | xxxxxxxxxx | yyyyyyyyyy |
2169 | xxxxxxxxxxxx | yyyyyyyy |
2170 | xxxxxxxxxxxxxx | yyyyyy |
2171 | xxxxxxxxxxxxxxxx | yyyy |
2172 | xxxxxxxxxxxxxxxxxx | yy |
2173 | xxxxxxxxxxxxxxxxxx | |
2175 +--------------------+-----------------+
2180 \pset format unaligned
2183 0123456789|yyyyyyyyyyyyyyyyyy
2185 0123456789abcdef|xxxx
2186 0123456789|yyyyyyyyyyyyyyyy
2188 0123456789abcdef|xxxxxx
2189 0123456789|yyyyyyyyyyyyyy
2191 0123456789abcdef|xxxxxxxx
2192 0123456789|yyyyyyyyyyyy
2194 0123456789abcdef|xxxxxxxxxx
2195 0123456789|yyyyyyyyyy
2197 0123456789abcdef|xxxxxxxxxxxx
2200 0123456789abcdef|xxxxxxxxxxxxxx
2203 0123456789abcdef|xxxxxxxxxxxxxxxx
2206 0123456789abcdef|xxxxxxxxxxxxxxxxxx
2209 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
2211 \pset format aligned
2215 0123456789 yyyyyyyyyyyyyyyyyy
2217 0123456789abcdef xxxx
2218 0123456789 yyyyyyyyyyyyyyyy
2220 0123456789abcdef xxxxxx
2221 0123456789 yyyyyyyyyyyyyy
2223 0123456789abcdef xxxxxxxx
2224 0123456789 yyyyyyyyyyyy
2226 0123456789abcdef xxxxxxxxxx
2227 0123456789 yyyyyyyyyy
2229 0123456789abcdef xxxxxxxxxxxx
2232 0123456789abcdef xxxxxxxxxxxxxx
2235 0123456789abcdef xxxxxxxxxxxxxxxx
2238 0123456789abcdef xxxxxxxxxxxxxxxxxx
2241 0123456789abcdef xxxxxxxxxxxxxxxxxxxx
2244 \pset format wrapped
2248 0123456789 yyyyyyyyyyyyyyyyyy
2250 0123456789abcdef xxxx
2251 0123456789 yyyyyyyyyyyyyyyy
2253 0123456789abcdef xxxxxx
2254 0123456789 yyyyyyyyyyyyyy
2256 0123456789abcdef xxxxxxxx
2257 0123456789 yyyyyyyyyyyy
2259 0123456789abcdef xxxxxxxxxx
2260 0123456789 yyyyyyyyyy
2262 0123456789abcdef xxxxxxxxxxxx
2265 0123456789abcdef xxxxxxxxxxxxxx
2268 0123456789abcdef xxxxxxxxxxxxxxxx
2271 0123456789abcdef xxxxxxxxxxxxxxxxxx
2274 0123456789abcdef xxxxxxxxxxxxxxxxxxxx
2278 \pset format unaligned
2281 0123456789|yyyyyyyyyyyyyyyyyy
2283 0123456789abcdef|xxxx
2284 0123456789|yyyyyyyyyyyyyyyy
2286 0123456789abcdef|xxxxxx
2287 0123456789|yyyyyyyyyyyyyy
2289 0123456789abcdef|xxxxxxxx
2290 0123456789|yyyyyyyyyyyy
2292 0123456789abcdef|xxxxxxxxxx
2293 0123456789|yyyyyyyyyy
2295 0123456789abcdef|xxxxxxxxxxxx
2298 0123456789abcdef|xxxxxxxxxxxxxx
2301 0123456789abcdef|xxxxxxxxxxxxxxxx
2304 0123456789abcdef|xxxxxxxxxxxxxxxxxx
2307 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
2309 \pset format aligned
2311 -[ RECORD 1 ]----+---------------------
2312 0123456789abcdef | xx
2313 0123456789 | yyyyyyyyyyyyyyyyyy
2314 -[ RECORD 2 ]----+---------------------
2315 0123456789abcdef | xxxx
2316 0123456789 | yyyyyyyyyyyyyyyy
2317 -[ RECORD 3 ]----+---------------------
2318 0123456789abcdef | xxxxxx
2319 0123456789 | yyyyyyyyyyyyyy
2320 -[ RECORD 4 ]----+---------------------
2321 0123456789abcdef | xxxxxxxx
2322 0123456789 | yyyyyyyyyyyy
2323 -[ RECORD 5 ]----+---------------------
2324 0123456789abcdef | xxxxxxxxxx
2325 0123456789 | yyyyyyyyyy
2326 -[ RECORD 6 ]----+---------------------
2327 0123456789abcdef | xxxxxxxxxxxx
2328 0123456789 | yyyyyyyy
2329 -[ RECORD 7 ]----+---------------------
2330 0123456789abcdef | xxxxxxxxxxxxxx
2332 -[ RECORD 8 ]----+---------------------
2333 0123456789abcdef | xxxxxxxxxxxxxxxx
2335 -[ RECORD 9 ]----+---------------------
2336 0123456789abcdef | xxxxxxxxxxxxxxxxxx
2338 -[ RECORD 10 ]---+---------------------
2339 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx
2342 \pset format wrapped
2344 -[ RECORD 1 ]----+---------------------
2345 0123456789abcdef | xx
2346 0123456789 | yyyyyyyyyyyyyyyyyy
2347 -[ RECORD 2 ]----+---------------------
2348 0123456789abcdef | xxxx
2349 0123456789 | yyyyyyyyyyyyyyyy
2350 -[ RECORD 3 ]----+---------------------
2351 0123456789abcdef | xxxxxx
2352 0123456789 | yyyyyyyyyyyyyy
2353 -[ RECORD 4 ]----+---------------------
2354 0123456789abcdef | xxxxxxxx
2355 0123456789 | yyyyyyyyyyyy
2356 -[ RECORD 5 ]----+---------------------
2357 0123456789abcdef | xxxxxxxxxx
2358 0123456789 | yyyyyyyyyy
2359 -[ RECORD 6 ]----+---------------------
2360 0123456789abcdef | xxxxxxxxxxxx
2361 0123456789 | yyyyyyyy
2362 -[ RECORD 7 ]----+---------------------
2363 0123456789abcdef | xxxxxxxxxxxxxx
2365 -[ RECORD 8 ]----+---------------------
2366 0123456789abcdef | xxxxxxxxxxxxxxxx
2368 -[ RECORD 9 ]----+---------------------
2369 0123456789abcdef | xxxxxxxxxxxxxxxxxx
2371 -[ RECORD 10 ]---+---------------------
2372 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx
2376 \pset format unaligned
2379 0123456789|yyyyyyyyyyyyyyyyyy
2381 0123456789abcdef|xxxx
2382 0123456789|yyyyyyyyyyyyyyyy
2384 0123456789abcdef|xxxxxx
2385 0123456789|yyyyyyyyyyyyyy
2387 0123456789abcdef|xxxxxxxx
2388 0123456789|yyyyyyyyyyyy
2390 0123456789abcdef|xxxxxxxxxx
2391 0123456789|yyyyyyyyyy
2393 0123456789abcdef|xxxxxxxxxxxx
2396 0123456789abcdef|xxxxxxxxxxxxxx
2399 0123456789abcdef|xxxxxxxxxxxxxxxx
2402 0123456789abcdef|xxxxxxxxxxxxxxxxxx
2405 0123456789abcdef|xxxxxxxxxxxxxxxxxxxx
2407 \pset format aligned
2409 +-[ RECORD 1 ]-----+----------------------+
2410 | 0123456789abcdef | xx |
2411 | 0123456789 | yyyyyyyyyyyyyyyyyy |
2412 +-[ RECORD 2 ]-----+----------------------+
2413 | 0123456789abcdef | xxxx |
2414 | 0123456789 | yyyyyyyyyyyyyyyy |
2415 +-[ RECORD 3 ]-----+----------------------+
2416 | 0123456789abcdef | xxxxxx |
2417 | 0123456789 | yyyyyyyyyyyyyy |
2418 +-[ RECORD 4 ]-----+----------------------+
2419 | 0123456789abcdef | xxxxxxxx |
2420 | 0123456789 | yyyyyyyyyyyy |
2421 +-[ RECORD 5 ]-----+----------------------+
2422 | 0123456789abcdef | xxxxxxxxxx |
2423 | 0123456789 | yyyyyyyyyy |
2424 +-[ RECORD 6 ]-----+----------------------+
2425 | 0123456789abcdef | xxxxxxxxxxxx |
2426 | 0123456789 | yyyyyyyy |
2427 +-[ RECORD 7 ]-----+----------------------+
2428 | 0123456789abcdef | xxxxxxxxxxxxxx |
2429 | 0123456789 | yyyyyy |
2430 +-[ RECORD 8 ]-----+----------------------+
2431 | 0123456789abcdef | xxxxxxxxxxxxxxxx |
2432 | 0123456789 | yyyy |
2433 +-[ RECORD 9 ]-----+----------------------+
2434 | 0123456789abcdef | xxxxxxxxxxxxxxxxxx |
2436 +-[ RECORD 10 ]----+----------------------+
2437 | 0123456789abcdef | xxxxxxxxxxxxxxxxxxxx |
2439 +------------------+----------------------+
2441 \pset format wrapped
2443 +-[ RECORD 1 ]-----+-------------------+
2444 | 0123456789abcdef | xx |
2445 | 0123456789 | yyyyyyyyyyyyyyyyy |
2447 +-[ RECORD 2 ]-----+-------------------+
2448 | 0123456789abcdef | xxxx |
2449 | 0123456789 | yyyyyyyyyyyyyyyy |
2450 +-[ RECORD 3 ]-----+-------------------+
2451 | 0123456789abcdef | xxxxxx |
2452 | 0123456789 | yyyyyyyyyyyyyy |
2453 +-[ RECORD 4 ]-----+-------------------+
2454 | 0123456789abcdef | xxxxxxxx |
2455 | 0123456789 | yyyyyyyyyyyy |
2456 +-[ RECORD 5 ]-----+-------------------+
2457 | 0123456789abcdef | xxxxxxxxxx |
2458 | 0123456789 | yyyyyyyyyy |
2459 +-[ RECORD 6 ]-----+-------------------+
2460 | 0123456789abcdef | xxxxxxxxxxxx |
2461 | 0123456789 | yyyyyyyy |
2462 +-[ RECORD 7 ]-----+-------------------+
2463 | 0123456789abcdef | xxxxxxxxxxxxxx |
2464 | 0123456789 | yyyyyy |
2465 +-[ RECORD 8 ]-----+-------------------+
2466 | 0123456789abcdef | xxxxxxxxxxxxxxxx |
2467 | 0123456789 | yyyy |
2468 +-[ RECORD 9 ]-----+-------------------+
2469 | 0123456789abcdef | xxxxxxxxxxxxxxxxx |
2472 +-[ RECORD 10 ]----+-------------------+
2473 | 0123456789abcdef | xxxxxxxxxxxxxxxxx |
2476 +------------------+-------------------+
2479 prepare q as select ' | = | lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&' as " | -- | 012345678 9abc def!*@#&!@(*&*~~_+-=\ \", '11' as "0123456789", 11 as int from generate_series(1,10) as n;
2480 \pset format asciidoc
2485 [options="header",cols="<l,<l,>l",frame="none",grid="none"]
2487 ^l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ ^l|0123456789 ^l|int
2488 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2489 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2490 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2491 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2492 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2493 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2494 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2495 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2496 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2497 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2506 [options="header",cols="<l,<l,>l",frame="none"]
2508 ^l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ ^l|0123456789 ^l|int
2509 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2510 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2511 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2512 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2513 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2514 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2515 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2516 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2517 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2518 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2527 [options="header",cols="<l,<l,>l",frame="all",grid="all"]
2529 ^l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ ^l|0123456789 ^l|int
2530 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2531 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2532 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2533 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2534 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2535 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2536 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2537 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2538 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2539 | \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (& |11 |11
2549 [cols="h,l",frame="none",grid="none"]
2552 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2556 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2560 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2564 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2568 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2572 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2576 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2580 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2584 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2588 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2595 [cols="h,l",frame="none"]
2598 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2602 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2606 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2610 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2614 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2618 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2622 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2626 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2630 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2634 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2641 [cols="h,l",frame="all",grid="all"]
2644 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2648 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2652 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2656 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2660 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2664 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2668 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2672 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2676 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2680 <l| \| -- \| 012345678 9abc def!*@#&!@(*&*~~_+-=\ \ <l| \| = \| lkjsafi\\/ /oeu rio)(!@&*#)*(!&@*) \ (&
2686 \set SHOW_CONTEXT never
2690 raise exception 'bar';
2694 \set SHOW_CONTEXT errors
2698 raise exception 'bar';
2702 CONTEXT: PL/pgSQL function inline_code_block line 4 at RAISE
2703 \set SHOW_CONTEXT always
2707 raise exception 'bar';
2710 CONTEXT: PL/pgSQL function inline_code_block line 3 at RAISE
2712 CONTEXT: PL/pgSQL function inline_code_block line 4 at RAISE