uqa-sql 0.6.0

PostgreSQL-compatible SQL compiler built on libpg_query
Documentation
{
  "postgresql_version": "PostgreSQL 18.4 (Debian 18.4-1.pgdg13+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit",
  "cases": [
    {"sql":"SELECT version()","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["version"],"type_oids":[25],"rows":[["PostgreSQL 18.4 (Debian 18.4-1.pgdg13+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 14.2.0-19) 14.2.0, 64-bit"]]}],"id":"version"},
    {"sql":"CREATE TYPE range_mood AS ENUM ('low','middle','high')","command_tags":["CREATE TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum"},
    {"sql":"CREATE SEQUENCE range_domain_reads","command_tags":["CREATE SEQUENCE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_counter"},
    {"sql":"CREATE FUNCTION range_domain_check(integer) RETURNS boolean LANGUAGE plpgsql AS $$BEGIN PERFORM nextval('range_domain_reads'); RETURN $1 > 0; END$$","command_tags":["CREATE FUNCTION"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_check"},
    {"sql":"CREATE DOMAIN range_positive AS integer CHECK (range_domain_check(VALUE))","command_tags":["CREATE DOMAIN"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain"},
    {"sql":"CREATE TYPE range_pair AS (n integer, s text)","command_tags":["CREATE TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record"},
    {"sql":"CREATE TYPE enum_window AS RANGE (subtype=range_mood)","command_tags":["CREATE TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_window_type"},
    {"sql":"CREATE TABLE enum_window_defaults (r enum_window DEFAULT '[low,high]'::enum_window)","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_window_table"},
    {"sql":"INSERT INTO enum_window_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_window_insert"},
    {"sql":"SELECT adbin::text, pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='enum_window_defaults'::regclass","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35550 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 17 [ 68 0 0 0 222 138 0 0 206 138 0 0 210 138 0 0 6 ]}","'[low,high]'::enum_window"]]}],"id":"enum_window_catalog"},
    {"sql":"SELECT r::text, lower(r)::text, upper(r)::text, lower_inc(r), upper_inc(r), isempty(r) FROM enum_window_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["r","lower","upper","lower_inc","upper_inc","isempty"],"type_oids":[25,25,25,16,16,16],"rows":[["[low,high]","low","high","t","t","f"]]}],"id":"enum_window_bounds"},
    {"sql":"SELECT 'empty'::enum_window::text, '(,)'::enum_window::text","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["text","text"],"type_oids":[25,25],"rows":[["empty","(,)"]]}],"id":"enum_window_empty"},
    {"sql":"CREATE TYPE domain_window AS RANGE (subtype=range_positive)","command_tags":["CREATE TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_window_type"},
    {"sql":"CREATE TABLE domain_window_defaults (r domain_window DEFAULT '[1,3]'::domain_window)","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_window_table"},
    {"sql":"INSERT INTO domain_window_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_window_insert"},
    {"sql":"SELECT adbin::text, pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='domain_window_defaults'::regclass","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35566 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 17 [ 68 0 0 0 238 138 0 0 1 0 0 0 3 0 0 0 6 ]}","'[1,3]'::domain_window"]]}],"id":"domain_window_catalog"},
    {"sql":"SELECT r::text, lower(r)::text, upper(r)::text, lower_inc(r), upper_inc(r), isempty(r) FROM domain_window_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["r","lower","upper","lower_inc","upper_inc","isempty"],"type_oids":[25,25,25,16,16,16],"rows":[["[1,3]","1","3","t","t","f"]]}],"id":"domain_window_bounds"},
    {"sql":"SELECT 'empty'::domain_window::text, '(,)'::domain_window::text","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["text","text"],"type_oids":[25,25],"rows":[["empty","(,)"]]}],"id":"domain_window_empty"},
    {"sql":"CREATE TYPE text_window AS RANGE (subtype=text, collation=\"C\")","command_tags":["CREATE TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"text_window_type"},
    {"sql":"CREATE TABLE text_window_defaults (r text_window DEFAULT '[alpha,zulu]'::text_window)","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"text_window_table"},
    {"sql":"INSERT INTO text_window_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"text_window_insert"},
    {"sql":"SELECT adbin::text, pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='text_window_defaults'::regclass","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35582 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 20 [ 80 0 0 0 254 138 0 0 13 97 108 112 104 97 11 122 117 108 117 6 ]}","'[alpha,zulu]'::text_window"]]}],"id":"text_window_catalog"},
    {"sql":"SELECT r::text, lower(r)::text, upper(r)::text, lower_inc(r), upper_inc(r), isempty(r) FROM text_window_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["r","lower","upper","lower_inc","upper_inc","isempty"],"type_oids":[25,25,25,16,16,16],"rows":[["[alpha,zulu]","alpha","zulu","t","t","f"]]}],"id":"text_window_bounds"},
    {"sql":"SELECT 'empty'::text_window::text, '(,)'::text_window::text","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["text","text"],"type_oids":[25,25],"rows":[["empty","(,)"]]}],"id":"text_window_empty"},
    {"sql":"CREATE TYPE array_window AS RANGE (subtype=integer[])","command_tags":["CREATE TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"array_window_type"},
    {"sql":"CREATE TABLE array_window_defaults (r array_window DEFAULT '[\"{1,2}\",\"{3,4}\"]'::array_window)","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"array_window_table"},
    {"sql":"INSERT INTO array_window_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"array_window_insert"},
    {"sql":"SELECT adbin::text, pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='array_window_defaults'::regclass","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35598 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 67 [ 12 1 0 0 14 139 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 6 ]}","'[\"{1,2}\",\"{3,4}\"]'::array_window"]]}],"id":"array_window_catalog"},
    {"sql":"SELECT r::text, lower(r)::text, upper(r)::text, lower_inc(r), upper_inc(r), isempty(r) FROM array_window_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["r","lower","upper","lower_inc","upper_inc","isempty"],"type_oids":[25,25,25,16,16,16],"rows":[["[\"{1,2}\",\"{3,4}\"]","{1,2}","{3,4}","t","t","f"]]}],"id":"array_window_bounds"},
    {"sql":"SELECT 'empty'::array_window::text, '(,)'::array_window::text","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["text","text"],"type_oids":[25,25],"rows":[["empty","(,)"]]}],"id":"array_window_empty"},
    {"sql":"CREATE TYPE record_window AS RANGE (subtype=range_pair)","command_tags":["CREATE TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record_window_type"},
    {"sql":"CREATE TABLE record_window_defaults (r record_window DEFAULT '[\"(1,alpha)\",\"(3,zulu)\"]'::record_window)","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record_window_table"},
    {"sql":"INSERT INTO record_window_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record_window_insert"},
    {"sql":"SELECT adbin::text, pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='record_window_defaults'::regclass","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35614 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 70 [ 24 1 0 0 30 139 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 6 ]}","'[\"(1,alpha)\",\"(3,zulu)\"]'::record_window"]]}],"id":"record_window_catalog"},
    {"sql":"SELECT r::text, lower(r)::text, upper(r)::text, lower_inc(r), upper_inc(r), isempty(r) FROM record_window_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["r","lower","upper","lower_inc","upper_inc","isempty"],"type_oids":[25,25,25,16,16,16],"rows":[["[\"(1,alpha)\",\"(3,zulu)\"]","(1,alpha)","(3,zulu)","t","t","f"]]}],"id":"record_window_bounds"},
    {"sql":"SELECT 'empty'::record_window::text, '(,)'::record_window::text","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["text","text"],"type_oids":[25,25],"rows":[["empty","(,)"]]}],"id":"record_window_empty"},
    {"sql":"CREATE TABLE enum_window_multi_defaults (m enum_window_multirange DEFAULT '{[low,high]}'::enum_window_multirange, a enum_window[] DEFAULT '{\"[low,high]\"}'::enum_window[])","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_window_multi_table"},
    {"sql":"INSERT INTO enum_window_multi_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_window_multi_insert"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='enum_window_multi_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35548 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 24 [ 96 0 0 0 220 138 0 0 1 0 0 0 6 0 0 0 206 138 0 0 210 138 0 0 ]}","'{[low,high]}'::enum_window_multirange"],["{CONST :consttype 35547 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 44 [ 176 0 0 0 1 0 0 0 0 0 0 0 222 138 0 0 1 0 0 0 1 0 0 0 68 0 0 0 222 138 0 0 206 138 0 0 210 138 0 0 6 0 0 0 ]}","'{\"[low,high]\"}'::enum_window[]"]]}],"id":"enum_window_multi_catalog"},
    {"sql":"SELECT m::text,a::text FROM enum_window_multi_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["m","a"],"type_oids":[25,25],"rows":[["{[low,high]}","{\"[low,high]\"}"]]}],"id":"enum_window_multi_output"},
    {"sql":"CREATE TABLE enum_window_empty_defaults (e enum_window DEFAULT 'empty', u enum_window DEFAULT '(,)')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_window_empty_table"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='enum_window_empty_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35550 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 222 138 0 0 1 ]}","'empty'::enum_window"],["{CONST :consttype 35550 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 222 138 0 0 24 ]}","'(,)'::enum_window"]]}],"id":"enum_window_empty_catalog"},
    {"sql":"CREATE TABLE domain_window_multi_defaults (m domain_window_multirange DEFAULT '{[1,3]}'::domain_window_multirange, a domain_window[] DEFAULT '{\"[1,3]\"}'::domain_window[])","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_window_multi_table"},
    {"sql":"INSERT INTO domain_window_multi_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_window_multi_insert"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='domain_window_multi_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35564 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 24 [ 96 0 0 0 236 138 0 0 1 0 0 0 6 0 0 0 1 0 0 0 3 0 0 0 ]}","'{[1,3]}'::domain_window_multirange"],["{CONST :consttype 35563 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 44 [ 176 0 0 0 1 0 0 0 0 0 0 0 238 138 0 0 1 0 0 0 1 0 0 0 68 0 0 0 238 138 0 0 1 0 0 0 3 0 0 0 6 0 0 0 ]}","'{\"[1,3]\"}'::domain_window[]"]]}],"id":"domain_window_multi_catalog"},
    {"sql":"SELECT m::text,a::text FROM domain_window_multi_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["m","a"],"type_oids":[25,25],"rows":[["{[1,3]}","{\"[1,3]\"}"]]}],"id":"domain_window_multi_output"},
    {"sql":"CREATE TABLE domain_window_empty_defaults (e domain_window DEFAULT 'empty', u domain_window DEFAULT '(,)')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_window_empty_table"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='domain_window_empty_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35566 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 238 138 0 0 1 ]}","'empty'::domain_window"],["{CONST :consttype 35566 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 238 138 0 0 24 ]}","'(,)'::domain_window"]]}],"id":"domain_window_empty_catalog"},
    {"sql":"CREATE TABLE text_window_multi_defaults (m text_window_multirange DEFAULT '{[alpha,zulu]}'::text_window_multirange, a text_window[] DEFAULT '{\"[alpha,zulu]\"}'::text_window[])","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"text_window_multi_table"},
    {"sql":"INSERT INTO text_window_multi_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"text_window_multi_insert"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='text_window_multi_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35580 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 28 [ 112 0 0 0 252 138 0 0 1 0 0 0 6 0 0 0 13 97 108 112 104 97 11 122 117 108 117 0 ]}","'{[alpha,zulu]}'::text_window_multirange"],["{CONST :consttype 35579 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 44 [ 176 0 0 0 1 0 0 0 0 0 0 0 254 138 0 0 1 0 0 0 1 0 0 0 80 0 0 0 254 138 0 0 13 97 108 112 104 97 11 122 117 108 117 6 ]}","'{\"[alpha,zulu]\"}'::text_window[]"]]}],"id":"text_window_multi_catalog"},
    {"sql":"SELECT m::text,a::text FROM text_window_multi_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["m","a"],"type_oids":[25,25],"rows":[["{[alpha,zulu]}","{\"[alpha,zulu]\"}"]]}],"id":"text_window_multi_output"},
    {"sql":"CREATE TABLE text_window_empty_defaults (e text_window DEFAULT 'empty', u text_window DEFAULT '(,)')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"text_window_empty_table"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='text_window_empty_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35582 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 254 138 0 0 1 ]}","'empty'::text_window"],["{CONST :consttype 35582 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 254 138 0 0 24 ]}","'(,)'::text_window"]]}],"id":"text_window_empty_catalog"},
    {"sql":"CREATE TABLE array_window_multi_defaults (m array_window_multirange DEFAULT '{[\"{1,2}\",\"{3,4}\"]}'::array_window_multirange, a array_window[] DEFAULT '{\"[\\\"{1,2}\\\",\\\"{3,4}\\\"]\"}'::array_window[])","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"array_window_multi_table"},
    {"sql":"INSERT INTO array_window_multi_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"array_window_multi_insert"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='array_window_multi_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35596 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 76 [ 48 1 0 0 12 139 0 0 1 0 0 0 6 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 0 0 ]}","'{[\"{1,2}\",\"{3,4}\"]}'::array_window_multirange"],["{CONST :consttype 35595 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 92 [ 112 1 0 0 1 0 0 0 0 0 0 0 14 139 0 0 1 0 0 0 1 0 0 0 12 1 0 0 14 139 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 6 0 ]}","'{\"[\\\"{1,2}\\\",\\\"{3,4}\\\"]\"}'::array_window[]"]]}],"id":"array_window_multi_catalog"},
    {"sql":"SELECT m::text,a::text FROM array_window_multi_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["m","a"],"type_oids":[25,25],"rows":[["{[\"{1,2}\",\"{3,4}\"]}","{\"[\\\"{1,2}\\\",\\\"{3,4}\\\"]\"}"]]}],"id":"array_window_multi_output"},
    {"sql":"CREATE TABLE array_window_empty_defaults (e array_window DEFAULT 'empty', u array_window DEFAULT '(,)')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"array_window_empty_table"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='array_window_empty_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35598 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 14 139 0 0 1 ]}","'empty'::array_window"],["{CONST :consttype 35598 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 14 139 0 0 24 ]}","'(,)'::array_window"]]}],"id":"array_window_empty_catalog"},
    {"sql":"CREATE TABLE record_window_multi_defaults (m record_window_multirange DEFAULT '{[\"(1,alpha)\",\"(3,zulu)\"]}'::record_window_multirange, a record_window[] DEFAULT '{\"[\\\"(1,alpha)\\\",\\\"(3,zulu)\\\"]\"}'::record_window[])","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record_window_multi_table"},
    {"sql":"INSERT INTO record_window_multi_defaults DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record_window_multi_insert"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='record_window_multi_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35612 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 80 [ 64 1 0 0 28 139 0 0 1 0 0 0 6 0 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 0 0 0 ]}","'{[\"(1,alpha)\",\"(3,zulu)\"]}'::record_window_multirange"],["{CONST :consttype 35611 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 96 [ 128 1 0 0 1 0 0 0 0 0 0 0 30 139 0 0 1 0 0 0 1 0 0 0 24 1 0 0 30 139 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 6 0 0 ]}","'{\"[\\\"(1,alpha)\\\",\\\"(3,zulu)\\\"]\"}'::record_window[]"]]}],"id":"record_window_multi_catalog"},
    {"sql":"SELECT m::text,a::text FROM record_window_multi_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["m","a"],"type_oids":[25,25],"rows":[["{[\"(1,alpha)\",\"(3,zulu)\"]}","{\"[\\\"(1,alpha)\\\",\\\"(3,zulu)\\\"]\"}"]]}],"id":"record_window_multi_output"},
    {"sql":"CREATE TABLE record_window_empty_defaults (e record_window DEFAULT 'empty', u record_window DEFAULT '(,)')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record_window_empty_table"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='record_window_empty_defaults'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35614 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 30 139 0 0 1 ]}","'empty'::record_window"],["{CONST :consttype 35614 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 9 [ 36 0 0 0 30 139 0 0 24 ]}","'(,)'::record_window"]]}],"id":"record_window_empty_catalog"},
    {"sql":"CREATE FUNCTION reverse_int4_cmp(integer,integer) RETURNS integer LANGUAGE SQL IMMUTABLE STRICT AS $$SELECT CASE WHEN $1>$2 THEN -1 WHEN $1<$2 THEN 1 ELSE 0 END$$","command_tags":["CREATE FUNCTION"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"reverse_compare"},
    {"sql":"CREATE OPERATOR CLASS reverse_int4_ops FOR TYPE integer USING btree AS OPERATOR 1 >(integer,integer), OPERATOR 2 >=(integer,integer), OPERATOR 3 =(integer,integer), OPERATOR 4 <=(integer,integer), OPERATOR 5 <(integer,integer), FUNCTION 1 reverse_int4_cmp(integer,integer)","command_tags":["CREATE OPERATOR CLASS"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"reverse_opclass"},
    {"sql":"CREATE TYPE reverse_window AS RANGE (subtype=integer,subtype_opclass=reverse_int4_ops)","command_tags":["CREATE TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"reverse_range"},
    {"sql":"CREATE TABLE reverse_window_comparisons (r reverse_window[] DEFAULT '{\"empty\",\"(,)\",\"[3,3]\",\"[3,1)\",\"(3,1]\",\"[3,1]\",\"[2,1]\"}', m reverse_window_multirange[] DEFAULT '{\"{}\",\"{empty}\",\"{[3,3]}\",\"{[3,1)}\",\"{[3,1]}\",\"{(,)}\",\"{[3,3],[2,1]}\"}')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"reverse_window_comparison_table"},
    {"sql":"INSERT INTO reverse_window_comparisons DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"reverse_window_comparison_insert"},
    {"sql":"SELECT adbin::text FROM pg_attrdef WHERE adrelid='reverse_window_comparisons'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin"],"type_oids":[25],"rows":[["{CONST :consttype 35706 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 148 [ 80 2 0 0 1 0 0 0 0 0 0 0 125 139 0 0 7 0 0 0 1 0 0 0 36 0 0 0 125 139 0 0 1 0 0 0 36 0 0 0 125 139 0 0 24 0 0 0 68 0 0 0 125 139 0 0 3 0 0 0 3 0 0 0 6 0 0 0 68 0 0 0 125 139 0 0 3 0 0 0 1 0 0 0 2 0 0 0 68 0 0 0 125 139 0 0 3 0 0 0 1 0 0 0 4 0 0 0 68 0 0 0 125 139 0 0 3 0 0 0 1 0 0 0 6 0 0 0 68 0 0 0 125 139 0 0 2 0 0 0 1 0 0 0 6 0 0 0 ]}"],["{CONST :consttype 35708 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 172 [ 176 2 0 0 1 0 0 0 0 0 0 0 123 139 0 0 7 0 0 0 1 0 0 0 48 0 0 0 123 139 0 0 0 0 0 0 48 0 0 0 123 139 0 0 0 0 0 0 96 0 0 0 123 139 0 0 1 0 0 0 6 0 0 0 3 0 0 0 3 0 0 0 96 0 0 0 123 139 0 0 1 0 0 0 2 0 0 0 3 0 0 0 1 0 0 0 96 0 0 0 123 139 0 0 1 0 0 0 6 0 0 0 3 0 0 0 1 0 0 0 64 0 0 0 123 139 0 0 1 0 0 0 24 0 0 0 144 0 0 0 123 139 0 0 2 0 0 0 8 0 0 0 6 6 0 0 3 0 0 0 3 0 0 0 2 0 0 0 1 0 0 0 ]}"]]}],"id":"reverse_window_comparison_catalog"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM reverse_window_comparisons t CROSS JOIN LATERAL unnest(t.r) WITH ORDINALITY a(v,i),LATERAL unnest(t.r) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","-1"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","1"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","-1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","-1"],["4","7","-1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","-1"],["6","1","1"],["6","2","1"],["6","3","1"],["6","4","1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","1"],["7","5","1"],["7","6","1"],["7","7","0"]]}],"id":"reverse_window_comparison_r"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM reverse_window_comparisons t CROSS JOIN LATERAL unnest(t.m) WITH ORDINALITY a(v,i),LATERAL unnest(t.m) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","0"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","0"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","1"],["4","7","1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","1"],["6","1","1"],["6","2","1"],["6","3","-1"],["6","4","-1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","-1"],["7","5","-1"],["7","6","1"],["7","7","0"]]}],"id":"reverse_window_comparison_m"},
    {"sql":"CREATE TABLE enum_window_comparisons (r enum_window[] DEFAULT '{\"empty\",\"(,)\",\"[low,low]\",\"[low,high)\",\"(low,high]\",\"[low,high]\",\"[middle,high]\"}', m enum_window_multirange[] DEFAULT '{\"{}\",\"{empty}\",\"{[low,low]}\",\"{[low,high)}\",\"{[low,high]}\",\"{(,)}\",\"{[low,low],[middle,high]}\"}')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_window_comparison_table"},
    {"sql":"INSERT INTO enum_window_comparisons DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_window_comparison_insert"},
    {"sql":"SELECT adbin::text FROM pg_attrdef WHERE adrelid='enum_window_comparisons'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin"],"type_oids":[25],"rows":[["{CONST :consttype 35547 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 148 [ 80 2 0 0 1 0 0 0 0 0 0 0 222 138 0 0 7 0 0 0 1 0 0 0 36 0 0 0 222 138 0 0 1 0 0 0 36 0 0 0 222 138 0 0 24 0 0 0 68 0 0 0 222 138 0 0 206 138 0 0 206 138 0 0 6 0 0 0 68 0 0 0 222 138 0 0 206 138 0 0 210 138 0 0 2 0 0 0 68 0 0 0 222 138 0 0 206 138 0 0 210 138 0 0 4 0 0 0 68 0 0 0 222 138 0 0 206 138 0 0 210 138 0 0 6 0 0 0 68 0 0 0 222 138 0 0 208 138 0 0 210 138 0 0 6 0 0 0 ]}"],["{CONST :consttype 35549 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 172 [ 176 2 0 0 1 0 0 0 0 0 0 0 220 138 0 0 7 0 0 0 1 0 0 0 48 0 0 0 220 138 0 0 0 0 0 0 48 0 0 0 220 138 0 0 0 0 0 0 96 0 0 0 220 138 0 0 1 0 0 0 6 0 0 0 206 138 0 0 206 138 0 0 96 0 0 0 220 138 0 0 1 0 0 0 2 0 0 0 206 138 0 0 210 138 0 0 96 0 0 0 220 138 0 0 1 0 0 0 6 0 0 0 206 138 0 0 210 138 0 0 64 0 0 0 220 138 0 0 1 0 0 0 24 0 0 0 144 0 0 0 220 138 0 0 2 0 0 0 8 0 0 0 6 6 0 0 206 138 0 0 206 138 0 0 208 138 0 0 210 138 0 0 ]}"]]}],"id":"enum_window_comparison_catalog"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM enum_window_comparisons t CROSS JOIN LATERAL unnest(t.r) WITH ORDINALITY a(v,i),LATERAL unnest(t.r) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","-1"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","1"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","-1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","-1"],["4","7","-1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","-1"],["6","1","1"],["6","2","1"],["6","3","1"],["6","4","1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","1"],["7","5","1"],["7","6","1"],["7","7","0"]]}],"id":"enum_window_comparison_r"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM enum_window_comparisons t CROSS JOIN LATERAL unnest(t.m) WITH ORDINALITY a(v,i),LATERAL unnest(t.m) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","0"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","0"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","1"],["4","7","1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","1"],["6","1","1"],["6","2","1"],["6","3","-1"],["6","4","-1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","-1"],["7","5","-1"],["7","6","1"],["7","7","0"]]}],"id":"enum_window_comparison_m"},
    {"sql":"CREATE TABLE domain_window_comparisons (r domain_window[] DEFAULT '{\"empty\",\"(,)\",\"[1,1]\",\"[1,3)\",\"(1,3]\",\"[1,3]\",\"[2,3]\"}', m domain_window_multirange[] DEFAULT '{\"{}\",\"{empty}\",\"{[1,1]}\",\"{[1,3)}\",\"{[1,3]}\",\"{(,)}\",\"{[1,1],[2,3]}\"}')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_window_comparison_table"},
    {"sql":"INSERT INTO domain_window_comparisons DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_window_comparison_insert"},
    {"sql":"SELECT adbin::text FROM pg_attrdef WHERE adrelid='domain_window_comparisons'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin"],"type_oids":[25],"rows":[["{CONST :consttype 35563 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 148 [ 80 2 0 0 1 0 0 0 0 0 0 0 238 138 0 0 7 0 0 0 1 0 0 0 36 0 0 0 238 138 0 0 1 0 0 0 36 0 0 0 238 138 0 0 24 0 0 0 68 0 0 0 238 138 0 0 1 0 0 0 1 0 0 0 6 0 0 0 68 0 0 0 238 138 0 0 1 0 0 0 3 0 0 0 2 0 0 0 68 0 0 0 238 138 0 0 1 0 0 0 3 0 0 0 4 0 0 0 68 0 0 0 238 138 0 0 1 0 0 0 3 0 0 0 6 0 0 0 68 0 0 0 238 138 0 0 2 0 0 0 3 0 0 0 6 0 0 0 ]}"],["{CONST :consttype 35565 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 172 [ 176 2 0 0 1 0 0 0 0 0 0 0 236 138 0 0 7 0 0 0 1 0 0 0 48 0 0 0 236 138 0 0 0 0 0 0 48 0 0 0 236 138 0 0 0 0 0 0 96 0 0 0 236 138 0 0 1 0 0 0 6 0 0 0 1 0 0 0 1 0 0 0 96 0 0 0 236 138 0 0 1 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 96 0 0 0 236 138 0 0 1 0 0 0 6 0 0 0 1 0 0 0 3 0 0 0 64 0 0 0 236 138 0 0 1 0 0 0 24 0 0 0 144 0 0 0 236 138 0 0 2 0 0 0 8 0 0 0 6 6 0 0 1 0 0 0 1 0 0 0 2 0 0 0 3 0 0 0 ]}"]]}],"id":"domain_window_comparison_catalog"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM domain_window_comparisons t CROSS JOIN LATERAL unnest(t.r) WITH ORDINALITY a(v,i),LATERAL unnest(t.r) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","-1"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","1"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","-1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","-1"],["4","7","-1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","-1"],["6","1","1"],["6","2","1"],["6","3","1"],["6","4","1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","1"],["7","5","1"],["7","6","1"],["7","7","0"]]}],"id":"domain_window_comparison_r"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM domain_window_comparisons t CROSS JOIN LATERAL unnest(t.m) WITH ORDINALITY a(v,i),LATERAL unnest(t.m) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","0"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","0"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","1"],["4","7","1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","1"],["6","1","1"],["6","2","1"],["6","3","-1"],["6","4","-1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","-1"],["7","5","-1"],["7","6","1"],["7","7","0"]]}],"id":"domain_window_comparison_m"},
    {"sql":"CREATE TABLE text_window_comparisons (r text_window[] DEFAULT '{\"empty\",\"(,)\",\"[alpha,alpha]\",\"[alpha,zulu)\",\"(alpha,zulu]\",\"[alpha,zulu]\",\"[beta,zulu]\"}', m text_window_multirange[] DEFAULT '{\"{}\",\"{empty}\",\"{[alpha,alpha]}\",\"{[alpha,zulu)}\",\"{[alpha,zulu]}\",\"{(,)}\",\"{[alpha,alpha],[beta,zulu]}\"}')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"text_window_comparison_table"},
    {"sql":"INSERT INTO text_window_comparisons DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"text_window_comparison_insert"},
    {"sql":"SELECT adbin::text FROM pg_attrdef WHERE adrelid='text_window_comparisons'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin"],"type_oids":[25],"rows":[["{CONST :consttype 35579 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 152 [ 96 2 0 0 1 0 0 0 0 0 0 0 254 138 0 0 7 0 0 0 1 0 0 0 36 0 0 0 254 138 0 0 1 0 0 0 36 0 0 0 254 138 0 0 24 0 0 0 84 0 0 0 254 138 0 0 13 97 108 112 104 97 13 97 108 112 104 97 6 0 0 0 80 0 0 0 254 138 0 0 13 97 108 112 104 97 11 122 117 108 117 2 80 0 0 0 254 138 0 0 13 97 108 112 104 97 11 122 117 108 117 4 80 0 0 0 254 138 0 0 13 97 108 112 104 97 11 122 117 108 117 6 76 0 0 0 254 138 0 0 11 98 101 116 97 11 122 117 108 117 6 0 ]}"],["{CONST :consttype 35581 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 192 [ 0 3 0 0 1 0 0 0 0 0 0 0 252 138 0 0 7 0 0 0 1 0 0 0 48 0 0 0 252 138 0 0 0 0 0 0 48 0 0 0 252 138 0 0 0 0 0 0 112 0 0 0 252 138 0 0 1 0 0 0 6 0 0 0 13 97 108 112 104 97 13 97 108 112 104 97 112 0 0 0 252 138 0 0 1 0 0 0 2 0 0 0 13 97 108 112 104 97 11 122 117 108 117 0 112 0 0 0 252 138 0 0 1 0 0 0 6 0 0 0 13 97 108 112 104 97 11 122 117 108 117 0 64 0 0 0 252 138 0 0 1 0 0 0 24 0 0 0 176 0 0 0 252 138 0 0 2 0 0 0 12 0 0 0 6 6 0 0 13 97 108 112 104 97 13 97 108 112 104 97 11 98 101 116 97 11 122 117 108 117 0 0 ]}"]]}],"id":"text_window_comparison_catalog"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM text_window_comparisons t CROSS JOIN LATERAL unnest(t.r) WITH ORDINALITY a(v,i),LATERAL unnest(t.r) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","-1"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","1"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","-1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","-1"],["4","7","-1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","-1"],["6","1","1"],["6","2","1"],["6","3","1"],["6","4","1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","1"],["7","5","1"],["7","6","1"],["7","7","0"]]}],"id":"text_window_comparison_r"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM text_window_comparisons t CROSS JOIN LATERAL unnest(t.m) WITH ORDINALITY a(v,i),LATERAL unnest(t.m) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","0"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","0"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","1"],["4","7","1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","1"],["6","1","1"],["6","2","1"],["6","3","-1"],["6","4","-1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","-1"],["7","5","-1"],["7","6","1"],["7","7","0"]]}],"id":"text_window_comparison_m"},
    {"sql":"CREATE TABLE array_window_comparisons (r array_window[] DEFAULT '{\"empty\",\"(,)\",\"[\\\"{1,2}\\\",\\\"{1,2}\\\"]\",\"[\\\"{1,2}\\\",\\\"{3,4}\\\")\",\"(\\\"{1,2}\\\",\\\"{3,4}\\\"]\",\"[\\\"{1,2}\\\",\\\"{3,4}\\\"]\",\"[\\\"{2,3}\\\",\\\"{3,4}\\\"]\"}', m array_window_multirange[] DEFAULT '{\"{}\",\"{empty}\",\"{[\\\"{1,2}\\\",\\\"{1,2}\\\"]}\",\"{[\\\"{1,2}\\\",\\\"{3,4}\\\")}\",\"{[\\\"{1,2}\\\",\\\"{3,4}\\\"]}\",\"{(,)}\",\"{[\\\"{1,2}\\\",\\\"{1,2}\\\"],[\\\"{2,3}\\\",\\\"{3,4}\\\"]}\"}')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"array_window_comparison_table"},
    {"sql":"INSERT INTO array_window_comparisons DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"array_window_comparison_insert"},
    {"sql":"SELECT adbin::text FROM pg_attrdef WHERE adrelid='array_window_comparisons'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin"],"type_oids":[25],"rows":[["{CONST :consttype 35595 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 388 [ 16 6 0 0 1 0 0 0 0 0 0 0 14 139 0 0 7 0 0 0 1 0 0 0 36 0 0 0 14 139 0 0 1 0 0 0 36 0 0 0 14 139 0 0 24 0 0 0 12 1 0 0 14 139 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 6 0 12 1 0 0 14 139 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 2 0 12 1 0 0 14 139 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 4 0 12 1 0 0 14 139 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 6 0 12 1 0 0 14 139 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 2 0 0 0 3 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 6 0 ]}"],["{CONST :consttype 35597 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 432 [ 192 6 0 0 1 0 0 0 0 0 0 0 12 139 0 0 7 0 0 0 1 0 0 0 48 0 0 0 12 139 0 0 0 0 0 0 48 0 0 0 12 139 0 0 0 0 0 0 48 1 0 0 12 139 0 0 1 0 0 0 6 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 0 0 48 1 0 0 12 139 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 0 0 48 1 0 0 12 139 0 0 1 0 0 0 6 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 0 0 64 0 0 0 12 139 0 0 1 0 0 0 24 0 0 0 48 2 0 0 12 139 0 0 2 0 0 0 60 0 0 0 6 6 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 1 0 0 0 2 0 0 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 2 0 0 0 3 0 0 0 59 1 0 0 0 0 0 0 0 23 0 0 0 2 0 0 0 1 0 0 0 3 0 0 0 4 0 0 0 0 0 ]}"]]}],"id":"array_window_comparison_catalog"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM array_window_comparisons t CROSS JOIN LATERAL unnest(t.r) WITH ORDINALITY a(v,i),LATERAL unnest(t.r) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","-1"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","1"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","-1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","-1"],["4","7","-1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","-1"],["6","1","1"],["6","2","1"],["6","3","1"],["6","4","1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","1"],["7","5","1"],["7","6","1"],["7","7","0"]]}],"id":"array_window_comparison_r"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM array_window_comparisons t CROSS JOIN LATERAL unnest(t.m) WITH ORDINALITY a(v,i),LATERAL unnest(t.m) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","0"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","0"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","1"],["4","7","1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","1"],["6","1","1"],["6","2","1"],["6","3","-1"],["6","4","-1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","-1"],["7","5","-1"],["7","6","1"],["7","7","0"]]}],"id":"array_window_comparison_m"},
    {"sql":"CREATE TABLE record_window_comparisons (r record_window[] DEFAULT '{\"empty\",\"(,)\",\"[\\\"(1,alpha)\\\",\\\"(1,alpha)\\\"]\",\"[\\\"(1,alpha)\\\",\\\"(3,zulu)\\\")\",\"(\\\"(1,alpha)\\\",\\\"(3,zulu)\\\"]\",\"[\\\"(1,alpha)\\\",\\\"(3,zulu)\\\"]\",\"[\\\"(2,beta)\\\",\\\"(3,zulu)\\\"]\"}', m record_window_multirange[] DEFAULT '{\"{}\",\"{empty}\",\"{[\\\"(1,alpha)\\\",\\\"(1,alpha)\\\"]}\",\"{[\\\"(1,alpha)\\\",\\\"(3,zulu)\\\")}\",\"{[\\\"(1,alpha)\\\",\\\"(3,zulu)\\\"]}\",\"{(,)}\",\"{[\\\"(1,alpha)\\\",\\\"(1,alpha)\\\"],[\\\"(2,beta)\\\",\\\"(3,zulu)\\\"]}\"}')","command_tags":["CREATE TABLE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record_window_comparison_table"},
    {"sql":"INSERT INTO record_window_comparisons DEFAULT VALUES","command_tags":["INSERT 0 1"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"record_window_comparison_insert"},
    {"sql":"SELECT adbin::text FROM pg_attrdef WHERE adrelid='record_window_comparisons'::regclass ORDER BY adnum","command_tags":["SELECT 2"],"error":null,"results":[{"columns":["adbin"],"type_oids":[25],"rows":[["{CONST :consttype 35611 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 416 [ 128 6 0 0 1 0 0 0 0 0 0 0 30 139 0 0 7 0 0 0 1 0 0 0 36 0 0 0 30 139 0 0 1 0 0 0 0 0 0 0 36 0 0 0 30 139 0 0 24 0 0 0 0 0 0 0 28 1 0 0 30 139 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 6 0 24 1 0 0 30 139 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 2 0 0 24 1 0 0 30 139 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 4 0 0 24 1 0 0 30 139 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 6 0 0 20 1 0 0 30 139 0 0 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 2 0 0 0 11 98 101 116 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 6 0 0 0 ]}"],["{CONST :consttype 35613 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 464 [ 64 7 0 0 1 0 0 0 0 0 0 0 28 139 0 0 7 0 0 0 1 0 0 0 64 0 0 0 28 139 0 0 0 0 0 0 0 0 0 0 64 0 0 0 28 139 0 0 0 0 0 0 0 0 0 0 64 1 0 0 28 139 0 0 1 0 0 0 6 0 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 0 0 64 1 0 0 28 139 0 0 1 0 0 0 2 0 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 0 0 0 64 1 0 0 28 139 0 0 1 0 0 0 6 0 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 0 0 0 64 0 0 0 28 139 0 0 1 0 0 0 24 0 0 0 96 2 0 0 28 139 0 0 2 0 0 0 64 0 0 0 6 6 0 0 0 0 0 0 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 63 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 1 0 0 0 13 97 108 112 104 97 0 0 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 2 0 0 0 11 98 101 116 97 61 255 255 255 255 218 138 0 0 255 255 255 255 0 0 2 0 2 0 24 0 3 0 0 0 11 122 117 108 117 0 0 0 0 ]}"]]}],"id":"record_window_comparison_catalog"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM record_window_comparisons t CROSS JOIN LATERAL unnest(t.r) WITH ORDINALITY a(v,i),LATERAL unnest(t.r) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","-1"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","1"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","-1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","-1"],["4","7","-1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","-1"],["6","1","1"],["6","2","1"],["6","3","1"],["6","4","1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","1"],["7","5","1"],["7","6","1"],["7","7","0"]]}],"id":"record_window_comparison_r"},
    {"sql":"SELECT a.i::integer,b.i::integer,CASE WHEN a.v=b.v THEN 0 WHEN a.v<b.v THEN -1 ELSE 1 END FROM record_window_comparisons t CROSS JOIN LATERAL unnest(t.m) WITH ORDINALITY a(v,i),LATERAL unnest(t.m) WITH ORDINALITY b(v,i) ORDER BY a.i,b.i","command_tags":["SELECT 49"],"error":null,"results":[{"columns":["i","i","case"],"type_oids":[23,23,23],"rows":[["1","1","0"],["1","2","0"],["1","3","-1"],["1","4","-1"],["1","5","-1"],["1","6","-1"],["1","7","-1"],["2","1","0"],["2","2","0"],["2","3","-1"],["2","4","-1"],["2","5","-1"],["2","6","-1"],["2","7","-1"],["3","1","1"],["3","2","1"],["3","3","0"],["3","4","-1"],["3","5","-1"],["3","6","1"],["3","7","-1"],["4","1","1"],["4","2","1"],["4","3","1"],["4","4","0"],["4","5","-1"],["4","6","1"],["4","7","1"],["5","1","1"],["5","2","1"],["5","3","1"],["5","4","1"],["5","5","0"],["5","6","1"],["5","7","1"],["6","1","1"],["6","2","1"],["6","3","-1"],["6","4","-1"],["6","5","-1"],["6","6","0"],["6","7","-1"],["7","1","1"],["7","2","1"],["7","3","1"],["7","4","-1"],["7","5","-1"],["7","6","1"],["7","7","0"]]}],"id":"record_window_comparison_m"},
    {"sql":"SELECT t.typname::text,t.oid::integer,t.typarray::integer,r.rngsubtype::integer,r.rngcollation::integer,r.rngsubopc::integer,r.rngmultitypid::integer,m.typarray::integer FROM pg_type t JOIN pg_range r ON r.rngtypid=t.oid JOIN pg_type m ON m.oid=r.rngmultitypid WHERE t.typname IN ('enum_window','domain_window','text_window','array_window','record_window','reverse_window') ORDER BY t.typname","command_tags":["SELECT 6"],"error":null,"results":[{"columns":["typname","oid","typarray","rngsubtype","rngcollation","rngsubopc","rngmultitypid","typarray"],"type_oids":[25,23,23,23,23,23,23,23],"rows":[["array_window","35598","35595","1007","0","10000","35596","35597"],["domain_window","35566","35563","35542","0","1978","35564","35565"],["enum_window","35550","35547","35533","0","10069","35548","35549"],["record_window","35614","35611","35546","0","10034","35612","35613"],["reverse_window","35709","35706","23","0","35699","35707","35708"],["text_window","35582","35579","25","950","3126","35580","35581"]]}],"id":"type_metadata"},
    {"sql":"SELECT enumtypid::integer,oid::integer,enumlabel::text FROM pg_enum WHERE enumtypid='range_mood'::regtype ORDER BY enumsortorder","command_tags":["SELECT 3"],"error":null,"results":[{"columns":["enumtypid","oid","enumlabel"],"type_oids":[23,23,25],"rows":[["35533","35534","low"],["35533","35536","middle"],["35533","35538","high"]]}],"id":"enum_labels"},
    {"sql":"SELECT last_value FROM range_domain_reads","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["last_value"],"type_oids":[20],"rows":[["26"]]}],"id":"domain_reads_before"},
    {"sql":"ALTER TYPE range_mood RENAME VALUE 'low' TO 'lower'","command_tags":["ALTER TYPE"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"enum_rename"},
    {"sql":"SELECT r::text, lower(r)::text FROM enum_window_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["r","lower"],"type_oids":[25,25],"rows":[["[lower,high]","lower"]]}],"id":"enum_after_rename"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='enum_window_defaults'::regclass","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35550 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 17 [ 68 0 0 0 222 138 0 0 206 138 0 0 210 138 0 0 6 ]}","'[lower,high]'::enum_window"]]}],"id":"enum_catalog_after_rename"},
    {"sql":"ALTER DOMAIN range_positive ADD CONSTRAINT later_check CHECK (VALUE > 100) NOT VALID","command_tags":["ALTER DOMAIN"],"error":null,"results":[{"columns":[],"type_oids":[],"rows":[]}],"id":"domain_stricter"},
    {"sql":"SELECT r::text, lower(r)::text FROM domain_window_defaults","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["r","lower"],"type_oids":[25,25],"rows":[["[1,3]","1"]]}],"id":"domain_after_change"},
    {"sql":"SELECT adbin::text,pg_get_expr(adbin,adrelid) FROM pg_attrdef WHERE adrelid='domain_window_defaults'::regclass","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["adbin","pg_get_expr"],"type_oids":[25,25],"rows":[["{CONST :consttype 35566 :consttypmod -1 :constcollid 0 :constlen -1 :constbyval false :constisnull false :location -1 :constvalue 17 [ 68 0 0 0 238 138 0 0 1 0 0 0 3 0 0 0 6 ]}","'[1,3]'::domain_window"]]}],"id":"domain_catalog_after_change"},
    {"sql":"SELECT last_value FROM range_domain_reads","command_tags":["SELECT 1"],"error":null,"results":[{"columns":["last_value"],"type_oids":[20],"rows":[["26"]]}],"id":"domain_reads_after"}
  ],
  "provenance": {"source": "PostgreSQL 18.4 Docker, fresh disposable database", "collector_sha256": "13a39469bb3d558afeee4871e01b992101c49980fc49e2d246bb327248f9e0ec", "input_sha256": "b6ed60489722bb2fefe75956f1f2925bbdc7a07c82e9d17bc446b61194b55181", "image": "sha256:bc8a94e4a938576533c0f0e8ad6f2e8c67d5c5facef05005a5e5cf9adce2fe25"}
}