{
"version": "PostgreSQL 18.4 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 15.2.0) 15.2.0, 64-bit",
"method": "binary COPY invokes each selected pg_type.typsend; retain field bytes without COPY or DataRow framing",
"cases": [
{
"type": "smallint",
"input": "-32768",
"expression": "'-32768'::smallint",
"send": "int2send",
"hex": "8000"
},
{
"type": "integer",
"input": "2147483647",
"expression": "'2147483647'::integer",
"send": "int4send",
"hex": "7fffffff"
},
{
"type": "bigint",
"input": "-9223372036854775808",
"expression": "'-9223372036854775808'::bigint",
"send": "int8send",
"hex": "8000000000000000"
},
{
"type": "oid",
"input": "4294967295",
"expression": "'4294967295'::oid",
"send": "oidsend",
"hex": "ffffffff"
},
{
"type": "xid",
"input": "4294967295",
"expression": "'4294967295'::xid",
"send": "xidsend",
"hex": "ffffffff"
},
{
"type": "boolean",
"input": "true",
"expression": "'true'::boolean",
"send": "boolsend",
"hex": "01"
},
{
"type": "boolean",
"input": "false",
"expression": "'false'::boolean",
"send": "boolsend",
"hex": "00"
},
{
"type": "real",
"input": "1.25",
"expression": "'1.25'::real",
"send": "float4send",
"hex": "3fa00000"
},
{
"type": "real",
"input": "-Infinity",
"expression": "'-Infinity'::real",
"send": "float4send",
"hex": "ff800000"
},
{
"type": "real",
"input": "NaN",
"expression": "'NaN'::real",
"send": "float4send",
"hex": "7fc00000"
},
{
"type": "double precision",
"input": "NaN",
"expression": "'NaN'::double precision",
"send": "float8send",
"hex": "7ff8000000000000"
},
{
"type": "double precision",
"input": "-0",
"expression": "'-0'::double precision",
"send": "float8send",
"hex": "8000000000000000"
},
{
"type": "double precision",
"input": "Infinity",
"expression": "'Infinity'::double precision",
"send": "float8send",
"hex": "7ff0000000000000"
},
{
"type": "numeric",
"input": "0.0000",
"expression": "'0.0000'::numeric",
"send": "numeric_send",
"hex": "0000000000000004"
},
{
"type": "numeric",
"input": "-12.340000",
"expression": "'-12.340000'::numeric",
"send": "numeric_send",
"hex": "0002000040000006000c0d48"
},
{
"type": "numeric",
"input": "123456789012345678901234567890.0000000001",
"expression": "'123456789012345678901234567890.0000000001'::numeric",
"send": "numeric_send",
"hex": "000b00070000000a000c0d801ed204d2162e23340d801ed2000000000064"
},
{
"type": "numeric",
"input": "0.0000000123",
"expression": "'0.0000000123'::numeric",
"send": "numeric_send",
"hex": "0002fffe0000000a000108fc"
},
{
"type": "numeric",
"input": "100000000000000000",
"expression": "'100000000000000000'::numeric",
"send": "numeric_send",
"hex": "0001000400000000000a"
},
{
"type": "numeric",
"input": "NaN",
"expression": "'NaN'::numeric",
"send": "numeric_send",
"hex": "00000000c0000000"
},
{
"type": "numeric",
"input": "Infinity",
"expression": "'Infinity'::numeric",
"send": "numeric_send",
"hex": "00000000d0000020"
},
{
"type": "numeric",
"input": "-Infinity",
"expression": "'-Infinity'::numeric",
"send": "numeric_send",
"hex": "00000000f0000020"
},
{
"type": "text",
"input": "한글\t\nabc",
"expression": "'한글\t\nabc'::text",
"send": "textsend",
"hex": "ed959ceab880090a616263"
},
{
"type": "char(4)",
"input": "a",
"expression": "'a'::char(4)",
"send": "bpcharsend",
"hex": "61202020"
},
{
"type": "name",
"input": "한글",
"expression": "'한글'::name",
"send": "namesend",
"hex": "ed959ceab880"
},
{
"type": "uuid",
"input": "01234567-89ab-cdef-0123-456789abcdef",
"expression": "'01234567-89ab-cdef-0123-456789abcdef'::uuid",
"send": "uuid_send",
"hex": "0123456789abcdef0123456789abcdef"
},
{
"type": "bytea",
"input": "\\x00ff01",
"expression": "'\\x00ff01'::bytea",
"send": "byteasend",
"hex": "00ff01"
},
{
"type": "bit(11)",
"input": "10101010101",
"expression": "'10101010101'::bit(11)",
"send": "bit_send",
"hex": "0000000baaa0"
},
{
"type": "varbit",
"input": "",
"expression": "''::varbit",
"send": "varbit_send",
"hex": "00000000"
},
{
"type": "varbit",
"input": "101",
"expression": "'101'::varbit",
"send": "varbit_send",
"hex": "00000003a0"
},
{
"type": "date",
"input": "2000-01-01",
"expression": "'2000-01-01'::date",
"send": "date_send",
"hex": "00000000"
},
{
"type": "date",
"input": "1969-12-31",
"expression": "'1969-12-31'::date",
"send": "date_send",
"hex": "ffffd532"
},
{
"type": "date",
"input": "infinity",
"expression": "'infinity'::date",
"send": "date_send",
"hex": "7fffffff"
},
{
"type": "date",
"input": "-infinity",
"expression": "'-infinity'::date",
"send": "date_send",
"hex": "80000000"
},
{
"type": "time",
"input": "23:59:59.123456",
"expression": "'23:59:59.123456'::time",
"send": "time_send",
"hex": "000000141dca0000"
},
{
"type": "timetz",
"input": "01:02:03.456789+05:30",
"expression": "'01:02:03.456789+05:30'::timetz",
"send": "timetz_send",
"hex": "00000000ddef7115ffffb2a8"
},
{
"type": "timestamp",
"input": "1999-12-31 23:59:59.999999",
"expression": "'1999-12-31 23:59:59.999999'::timestamp",
"send": "timestamp_send",
"hex": "ffffffffffffffff"
},
{
"type": "timestamptz",
"input": "2000-01-01 00:00:00+02",
"expression": "'2000-01-01 00:00:00+02'::timestamptz",
"send": "timestamptz_send",
"hex": "fffffffe52d8b800"
},
{
"type": "timestamp",
"input": "infinity",
"expression": "'infinity'::timestamp",
"send": "timestamp_send",
"hex": "7fffffffffffffff"
},
{
"type": "timestamp",
"input": "-infinity",
"expression": "'-infinity'::timestamp",
"send": "timestamp_send",
"hex": "8000000000000000"
},
{
"type": "interval",
"input": "2 mons -3 days 01:02:03.456789",
"expression": "'2 mons -3 days 01:02:03.456789'::interval",
"send": "interval_send",
"hex": "00000000ddef7115fffffffd00000002"
},
{
"type": "json",
"input": " { \"a\": 1 } ",
"expression": "' { \"a\": 1 } '::json",
"send": "json_send",
"hex": "207b202261223a2031207d20"
},
{
"type": "jsonb",
"input": "{\"b\": [true, null], \"a\": 1}",
"expression": "'{\"b\": [true, null], \"a\": 1}'::jsonb",
"send": "jsonb_send",
"hex": "017b2261223a20312c202262223a205b747275652c206e756c6c5d7d"
},
{
"type": "xml",
"input": "<root>é</root>",
"expression": "'<root>é</root>'::xml",
"send": "xml_send",
"hex": "3c726f6f743ec3a93c2f726f6f743e"
},
{
"type": "integer[]",
"input": "[0:1][3:4]={{1,NULL},{-2,4}}",
"expression": "'[0:1][3:4]={{1,NULL},{-2,4}}'::integer[]",
"send": "array_send",
"hex": "000000020000000100000017000000020000000000000002000000030000000400000001ffffffff00000004fffffffe0000000400000004"
},
{
"type": "integer[]",
"input": "{}",
"expression": "'{}'::integer[]",
"send": "array_send",
"hex": "000000000000000000000017"
},
{
"type": "numeric[]",
"input": "{1.20,NULL,NaN,-Infinity}",
"expression": "'{1.20,NULL,NaN,-Infinity}'::numeric[]",
"send": "array_send",
"hex": "0000000100000001000006a400000004000000010000000c0002000000000002000107d0ffffffff0000000800000000c00000000000000800000000f0000020"
},
{
"type": "text[]",
"input": "{\"a,b\",NULL,\"\"}",
"expression": "'{\"a,b\",NULL,\"\"}'::text[]",
"send": "array_send",
"hex": "000000010000000100000019000000030000000100000003612c62ffffffff00000000"
},
{
"type": "int2vector",
"input": "1 -2 32767",
"expression": "'1 -2 32767'::int2vector",
"send": "int2vectorsend",
"hex": "000000010000000000000015000000030000000000000002000100000002fffe000000027fff"
},
{
"type": "oidvector",
"input": "1 4294967295",
"expression": "'1 4294967295'::oidvector",
"send": "oidvectorsend",
"hex": "00000001000000000000001a0000000200000000000000040000000100000004ffffffff"
},
{
"type": "int4range",
"input": "[1,9)",
"expression": "'[1,9)'::int4range",
"send": "range_send",
"hex": "0200000004000000010000000400000009"
},
{
"type": "int4range",
"input": "empty",
"expression": "'empty'::int4range",
"send": "range_send",
"hex": "01"
},
{
"type": "int8range",
"input": "(,9)",
"expression": "'(,9)'::int8range",
"send": "range_send",
"hex": "08000000080000000000000009"
},
{
"type": "numrange",
"input": "(1.25,2.50]",
"expression": "'(1.25,2.50]'::numrange",
"send": "range_send",
"hex": "040000000c0002000000000002000109c40000000c000200000000000200021388"
},
{
"type": "daterange",
"input": "[2000-01-01,infinity)",
"expression": "'[2000-01-01,infinity)'::daterange",
"send": "range_send",
"hex": "020000000400000000000000047fffffff"
},
{
"type": "tsrange",
"input": "[1999-12-31 23:59:59,2000-01-01)",
"expression": "'[1999-12-31 23:59:59,2000-01-01)'::tsrange",
"send": "range_send",
"hex": "0200000008fffffffffff0bdc0000000080000000000000000"
},
{
"type": "int4multirange",
"input": "{[1,3),[7,9)}",
"expression": "'{[1,3),[7,9)}'::int4multirange",
"send": "multirange_send",
"hex": "00000002000000110200000004000000010000000400000003000000110200000004000000070000000400000009"
},
{
"type": "nummultirange",
"input": "{}",
"expression": "'{}'::nummultirange",
"send": "multirange_send",
"hex": "00000000"
},
{
"type": "void",
"input": "",
"expression": "''::void",
"send": "void_send",
"hex": ""
},
{
"type": "\"char\"",
"input": "A",
"expression": "'A'::\"char\"",
"send": "charsend",
"hex": "41"
},
{
"type": "refcursor",
"input": "portal",
"expression": "'portal'::refcursor",
"send": "textsend",
"hex": "706f7274616c"
},
{
"type": "regclass",
"input": "42",
"expression": "'42'::regclass",
"send": "regclasssend",
"hex": "0000002a"
},
{
"type": "regtype",
"input": "42",
"expression": "'42'::regtype",
"send": "regtypesend",
"hex": "0000002a"
},
{
"type": "regnamespace",
"input": "42",
"expression": "'42'::regnamespace",
"send": "regnamespacesend",
"hex": "0000002a"
},
{
"type": "regrole",
"input": "42",
"expression": "'42'::regrole",
"send": "regrolesend",
"hex": "0000002a"
},
{
"type": "regproc",
"input": "42",
"expression": "'42'::regproc",
"send": "regprocsend",
"hex": "0000002a"
},
{
"type": "regprocedure",
"input": "42",
"expression": "'42'::regprocedure",
"send": "regproceduresend",
"hex": "0000002a"
},
{
"type": "regcollation",
"input": "42",
"expression": "'42'::regcollation",
"send": "regcollationsend",
"hex": "0000002a"
}
],
"nested_records": [
{
"depth": 1,
"hex": "00000001000000170000000400000007"
},
{
"depth": 128,
"hex": "00000001000008c9000005f800000001000008c9000005ec00000001000008c9000005e000000001000008c9000005d400000001000008c9000005c800000001000008c9000005bc00000001000008c9000005b000000001000008c9000005a400000001000008c90000059800000001000008c90000058c00000001000008c90000058000000001000008c90000057400000001000008c90000056800000001000008c90000055c00000001000008c90000055000000001000008c90000054400000001000008c90000053800000001000008c90000052c00000001000008c90000052000000001000008c90000051400000001000008c90000050800000001000008c9000004fc00000001000008c9000004f000000001000008c9000004e400000001000008c9000004d800000001000008c9000004cc00000001000008c9000004c000000001000008c9000004b400000001000008c9000004a800000001000008c90000049c00000001000008c90000049000000001000008c90000048400000001000008c90000047800000001000008c90000046c00000001000008c90000046000000001000008c90000045400000001000008c90000044800000001000008c90000043c00000001000008c90000043000000001000008c90000042400000001000008c90000041800000001000008c90000040c00000001000008c90000040000000001000008c9000003f400000001000008c9000003e800000001000008c9000003dc00000001000008c9000003d000000001000008c9000003c400000001000008c9000003b800000001000008c9000003ac00000001000008c9000003a000000001000008c90000039400000001000008c90000038800000001000008c90000037c00000001000008c90000037000000001000008c90000036400000001000008c90000035800000001000008c90000034c00000001000008c90000034000000001000008c90000033400000001000008c90000032800000001000008c90000031c00000001000008c90000031000000001000008c90000030400000001000008c9000002f800000001000008c9000002ec00000001000008c9000002e000000001000008c9000002d400000001000008c9000002c800000001000008c9000002bc00000001000008c9000002b000000001000008c9000002a400000001000008c90000029800000001000008c90000028c00000001000008c90000028000000001000008c90000027400000001000008c90000026800000001000008c90000025c00000001000008c90000025000000001000008c90000024400000001000008c90000023800000001000008c90000022c00000001000008c90000022000000001000008c90000021400000001000008c90000020800000001000008c9000001fc00000001000008c9000001f000000001000008c9000001e400000001000008c9000001d800000001000008c9000001cc00000001000008c9000001c000000001000008c9000001b400000001000008c9000001a800000001000008c90000019c00000001000008c90000019000000001000008c90000018400000001000008c90000017800000001000008c90000016c00000001000008c90000016000000001000008c90000015400000001000008c90000014800000001000008c90000013c00000001000008c90000013000000001000008c90000012400000001000008c90000011800000001000008c90000010c00000001000008c90000010000000001000008c9000000f400000001000008c9000000e800000001000008c9000000dc00000001000008c9000000d000000001000008c9000000c400000001000008c9000000b800000001000008c9000000ac00000001000008c9000000a000000001000008c90000009400000001000008c90000008800000001000008c90000007c00000001000008c90000007000000001000008c90000006400000001000008c90000005800000001000008c90000004c00000001000008c90000004000000001000008c90000003400000001000008c90000002800000001000008c90000001c00000001000008c90000001000000001000000170000000400000007"
},
{
"depth": 256,
"hex": "00000001000008c900000bf800000001000008c900000bec00000001000008c900000be000000001000008c900000bd400000001000008c900000bc800000001000008c900000bbc00000001000008c900000bb000000001000008c900000ba400000001000008c900000b9800000001000008c900000b8c00000001000008c900000b8000000001000008c900000b7400000001000008c900000b6800000001000008c900000b5c00000001000008c900000b5000000001000008c900000b4400000001000008c900000b3800000001000008c900000b2c00000001000008c900000b2000000001000008c900000b1400000001000008c900000b0800000001000008c900000afc00000001000008c900000af000000001000008c900000ae400000001000008c900000ad800000001000008c900000acc00000001000008c900000ac000000001000008c900000ab400000001000008c900000aa800000001000008c900000a9c00000001000008c900000a9000000001000008c900000a8400000001000008c900000a7800000001000008c900000a6c00000001000008c900000a6000000001000008c900000a5400000001000008c900000a4800000001000008c900000a3c00000001000008c900000a3000000001000008c900000a2400000001000008c900000a1800000001000008c900000a0c00000001000008c900000a0000000001000008c9000009f400000001000008c9000009e800000001000008c9000009dc00000001000008c9000009d000000001000008c9000009c400000001000008c9000009b800000001000008c9000009ac00000001000008c9000009a000000001000008c90000099400000001000008c90000098800000001000008c90000097c00000001000008c90000097000000001000008c90000096400000001000008c90000095800000001000008c90000094c00000001000008c90000094000000001000008c90000093400000001000008c90000092800000001000008c90000091c00000001000008c90000091000000001000008c90000090400000001000008c9000008f800000001000008c9000008ec00000001000008c9000008e000000001000008c9000008d400000001000008c9000008c800000001000008c9000008bc00000001000008c9000008b000000001000008c9000008a400000001000008c90000089800000001000008c90000088c00000001000008c90000088000000001000008c90000087400000001000008c90000086800000001000008c90000085c00000001000008c90000085000000001000008c90000084400000001000008c90000083800000001000008c90000082c00000001000008c90000082000000001000008c90000081400000001000008c90000080800000001000008c9000007fc00000001000008c9000007f000000001000008c9000007e400000001000008c9000007d800000001000008c9000007cc00000001000008c9000007c000000001000008c9000007b400000001000008c9000007a800000001000008c90000079c00000001000008c90000079000000001000008c90000078400000001000008c90000077800000001000008c90000076c00000001000008c90000076000000001000008c90000075400000001000008c90000074800000001000008c90000073c00000001000008c90000073000000001000008c90000072400000001000008c90000071800000001000008c90000070c00000001000008c90000070000000001000008c9000006f400000001000008c9000006e800000001000008c9000006dc00000001000008c9000006d000000001000008c9000006c400000001000008c9000006b800000001000008c9000006ac00000001000008c9000006a000000001000008c90000069400000001000008c90000068800000001000008c90000067c00000001000008c90000067000000001000008c90000066400000001000008c90000065800000001000008c90000064c00000001000008c90000064000000001000008c90000063400000001000008c90000062800000001000008c90000061c00000001000008c90000061000000001000008c90000060400000001000008c9000005f800000001000008c9000005ec00000001000008c9000005e000000001000008c9000005d400000001000008c9000005c800000001000008c9000005bc00000001000008c9000005b000000001000008c9000005a400000001000008c90000059800000001000008c90000058c00000001000008c90000058000000001000008c90000057400000001000008c90000056800000001000008c90000055c00000001000008c90000055000000001000008c90000054400000001000008c90000053800000001000008c90000052c00000001000008c90000052000000001000008c90000051400000001000008c90000050800000001000008c9000004fc00000001000008c9000004f000000001000008c9000004e400000001000008c9000004d800000001000008c9000004cc00000001000008c9000004c000000001000008c9000004b400000001000008c9000004a800000001000008c90000049c00000001000008c90000049000000001000008c90000048400000001000008c90000047800000001000008c90000046c00000001000008c90000046000000001000008c90000045400000001000008c90000044800000001000008c90000043c00000001000008c90000043000000001000008c90000042400000001000008c90000041800000001000008c90000040c00000001000008c90000040000000001000008c9000003f400000001000008c9000003e800000001000008c9000003dc00000001000008c9000003d000000001000008c9000003c400000001000008c9000003b800000001000008c9000003ac00000001000008c9000003a000000001000008c90000039400000001000008c90000038800000001000008c90000037c00000001000008c90000037000000001000008c90000036400000001000008c90000035800000001000008c90000034c00000001000008c90000034000000001000008c90000033400000001000008c90000032800000001000008c90000031c00000001000008c90000031000000001000008c90000030400000001000008c9000002f800000001000008c9000002ec00000001000008c9000002e000000001000008c9000002d400000001000008c9000002c800000001000008c9000002bc00000001000008c9000002b000000001000008c9000002a400000001000008c90000029800000001000008c90000028c00000001000008c90000028000000001000008c90000027400000001000008c90000026800000001000008c90000025c00000001000008c90000025000000001000008c90000024400000001000008c90000023800000001000008c90000022c00000001000008c90000022000000001000008c90000021400000001000008c90000020800000001000008c9000001fc00000001000008c9000001f000000001000008c9000001e400000001000008c9000001d800000001000008c9000001cc00000001000008c9000001c000000001000008c9000001b400000001000008c9000001a800000001000008c90000019c00000001000008c90000019000000001000008c90000018400000001000008c90000017800000001000008c90000016c00000001000008c90000016000000001000008c90000015400000001000008c90000014800000001000008c90000013c00000001000008c90000013000000001000008c90000012400000001000008c90000011800000001000008c90000010c00000001000008c90000010000000001000008c9000000f400000001000008c9000000e800000001000008c9000000dc00000001000008c9000000d000000001000008c9000000c400000001000008c9000000b800000001000008c9000000ac00000001000008c9000000a000000001000008c90000009400000001000008c90000008800000001000008c90000007c00000001000008c90000007000000001000008c90000006400000001000008c90000005800000001000008c90000004c00000001000008c90000004000000001000008c90000003400000001000008c90000002800000001000008c90000001c00000001000008c90000001000000001000000170000000400000007"
}
]
}