Skip to content

add pg_options_to_table and add every table comes with a row type - #4024

Open
jennifersp wants to merge 1 commit into
jennifer/subscript-typefrom
jennifer/pg-options
Open

jennifersp wants to merge 1 commit into
jennifer/subscript-typefrom
jennifer/pg-options

Conversation

@jennifersp

Copy link
Copy Markdown
Contributor

No description provided.

@jennifersp
jennifersp added this pull request to stack #4011 December 2, 2026 23:48
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor
Main PR
Total 42090 42090
Successful 21560 21607
Failures 20530 20483
Partial Successes1 5445 5447
Main PR
Successful 51.2236% 51.3352%
Failures 48.7764% 48.6648%

${\color{lightgreen}Progressions (41)}$

copy

QUERY: select tableoid::regclass,count(*),sum(a) from parted_copytest
group by tableoid order by tableoid::regclass::name;
QUERY: select tableoid::regclass,count(*),sum(a) from parted_copytest
group by tableoid order by tableoid::regclass::name;

int8

QUERY: SELECT oid::int8 FROM pg_class WHERE relname = 'pg_class';

join_hash

QUERY: SELECT hjtest_1.a a1, hjtest_2.a a2,hjtest_1.tableoid::regclass t1, hjtest_2.tableoid::regclass t2
FROM hjtest_1, hjtest_2
WHERE
    hjtest_1.id = (SELECT 1 WHERE hjtest_2.id = 1)
    AND (SELECT hjtest_1.b * 5) = (SELECT hjtest_2.c*5)
    AND (SELECT hjtest_1.b * 5) < 50
    AND (SELECT hjtest_2.c * 5) < 55
    AND hjtest_1.a <> hjtest_2.b;
QUERY: SELECT hjtest_1.a a1, hjtest_2.a a2,hjtest_1.tableoid::regclass t1, hjtest_2.tableoid::regclass t2
FROM hjtest_2, hjtest_1
WHERE
    hjtest_1.id = (SELECT 1 WHERE hjtest_2.id = 1)
    AND (SELECT hjtest_1.b * 5) = (SELECT hjtest_2.c*5)
    AND (SELECT hjtest_1.b * 5) < 50
    AND (SELECT hjtest_2.c * 5) < 55
    AND hjtest_1.a <> hjtest_2.b;

jsonb

QUERY: select ('123'::jsonb)['a'];
QUERY: select ('123'::jsonb)[0];
QUERY: select ('{"a": 1}'::jsonb)['a'];
QUERY: select ('{"a": 1}'::jsonb)[0];
QUERY: select ('{"a": 1}'::jsonb)['not_exist'];
QUERY: select ('[1, "2", null]'::jsonb)['a'];
QUERY: select ('[1, "2", null]'::jsonb)[0];
QUERY: select ('[1, "2", null]'::jsonb)['1'];
QUERY: select ('[1, "2", null]'::jsonb)[2];
QUERY: select ('[1, "2", null]'::jsonb)[3];
QUERY: select ('[1, "2", null]'::jsonb)[-2];
QUERY: select ('[1, "2", null]'::jsonb)[1]['a'];
QUERY: select ('[1, "2", null]'::jsonb)[1][0];
QUERY: select ('{"a": 1, "b": "c", "d": [1, 2, 3]}'::jsonb)['b'];
QUERY: select ('{"a": 1, "b": "c", "d": [1, 2, 3]}'::jsonb)['d'];
QUERY: select ('{"a": 1, "b": "c", "d": [1, 2, 3]}'::jsonb)['d'][1];
QUERY: select ('{"a": 1, "b": "c", "d": [1, 2, 3]}'::jsonb)['d']['a'];
QUERY: select ('{"a": {"a1": {"a2": "aaa"}}, "b": "bbb", "c": "ccc"}'::jsonb)['a']['a1'];
QUERY: select ('{"a": {"a1": {"a2": "aaa"}}, "b": "bbb", "c": "ccc"}'::jsonb)['a']['a1']['a2'];
QUERY: select ('{"a": {"a1": {"a2": "aaa"}}, "b": "bbb", "c": "ccc"}'::jsonb)['a']['a1']['a2']['a3'];
QUERY: select ('{"a": ["a1", {"b1": ["aaa", "bbb", "ccc"]}], "b": "bb"}'::jsonb)['a'][1]['b1'];
QUERY: select ('{"a": ["a1", {"b1": ["aaa", "bbb", "ccc"]}], "b": "bb"}'::jsonb)['a'][1]['b1'][2];
QUERY: select * from test_jsonb_subscript where test_json['key_doesnt_exists'] = '"value"';
QUERY: select * from test_jsonb_subscript where test_json['key'] = '"wrong_value"';
QUERY: select length(id), test_json[id] from test_jsonb_subscript;

text

QUERY: select quote_literal('');
QUERY: select quote_literal('abc''');
QUERY: select quote_literal(e'\\');

tsearch

QUERY: SELECT oid, dictname
FROM pg_ts_dict
WHERE dictnamespace = 0 OR dictowner = 0 OR dicttemplate = 0;
QUERY: SELECT oid, cfgname
FROM pg_ts_config
WHERE cfgnamespace = 0 OR cfgowner = 0 OR cfgparser = 0;

window

QUERY: CREATE FUNCTION logging_sfunc_nonstrict(text, anyelement) RETURNS text AS
$$ SELECT COALESCE($1, '') || '*' || quote_nullable($2) $$
LANGUAGE SQL IMMUTABLE;
QUERY: CREATE FUNCTION logging_msfunc_nonstrict(text, anyelement) RETURNS text AS
$$ SELECT COALESCE($1, '') || '+' || quote_nullable($2) $$
LANGUAGE SQL IMMUTABLE;
QUERY: CREATE FUNCTION logging_minvfunc_nonstrict(text, anyelement) RETURNS text AS
$$ SELECT $1 || '-' || quote_nullable($2) $$
LANGUAGE SQL IMMUTABLE;
QUERY: CREATE FUNCTION logging_sfunc_strict(text, anyelement) RETURNS text AS
$$ SELECT $1 || '*' || quote_nullable($2) $$
LANGUAGE SQL STRICT IMMUTABLE;
QUERY: CREATE FUNCTION logging_msfunc_strict(text, anyelement) RETURNS text AS
$$ SELECT $1 || '+' || quote_nullable($2) $$
LANGUAGE SQL STRICT IMMUTABLE;

Footnotes

  1. These are tests that we're marking as Successful, however they do not match the expected output in some way. This is due to small differences, such as different wording on the error messages, or the column names being incorrect while the data itself is correct. ↩

@jennifersp
jennifersp requested a review from zachmu December 3, 2026 05:59
@coffeegoddd

Copy link
Copy Markdown
Contributor

@jennifersp DOLT

read_tests from_latency to_latency percent_change
covering_index_scan_postgres 2.52 2.52 0.0
groupby_scan_postgres 77.19 77.19 0.0
index_join_postgres 2.43 2.39 -1.65
index_join_scan_postgres 1.64 1.64 0.0
index_scan_postgres 411.96 411.96 0.0
oltp_point_select 0.43 0.42 -2.33
oltp_read_only 7.3 7.3 0.0
select_random_points 0.78 0.78 0.0
select_random_ranges 1.14 1.14 0.0
table_scan_postgres 419.45 404.61 -3.54
types_table_scan_postgres 1032.01 1013.6 -1.78
write_tests from_latency to_latency percent_change
oltp_delete_insert_postgres 4.65 4.65 0.0
oltp_insert 2.35 2.35 0.0
oltp_read_write 13.7 13.7 0.0
oltp_update_index 2.57 2.57 0.0
oltp_update_non_index 2.26 2.26 0.0
oltp_write_only 6.21 6.21 0.0
types_delete_insert_postgres 5.09 5.09 0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants