-
-
Notifications
You must be signed in to change notification settings - Fork 207
Isolate failing tests on pg17 and OrioleDB #1402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
olirice
merged 7 commits into
sam/oriole17-flake-check
from
or/17-separate-regression-tests
Jan 9, 2025
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
e2fb1b3
separate pg17 and oriole test diffs
olirice 8cec32f
ignore minor diffs in float value
olirice 514fde3
update pgmq after-create script for pg 17
olirice 9f4888f
all tests fixed except interface
olirice aff4edf
sync tests
olirice dc905da
move postgis_tiger_geocoder to ext_interface
olirice 9392b9d
align pg 17 extension interface tests
olirice File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
232 changes: 125 additions & 107 deletions
232
...sts/expected/extensions_sql_interface.out → nix/tests/expected/z_15_ext_interface.out
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 6 additions & 0 deletions
6
nix/tests/expected/plv8.out → nix/tests/expected/z_15_plv8.out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
nix/tests/expected/timescale.out → nix/tests/expected/z_15_timescale.out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
select | ||
* | ||
from | ||
pg_stat_monitor | ||
where | ||
false; | ||
bucket | bucket_start_time | userid | username | dbid | datname | client_ip | pgsm_query_id | queryid | toplevel | top_queryid | query | comments | planid | query_plan | top_query | application_name | relations | cmd_type | cmd_type_text | elevel | sqlcode | message | calls | total_exec_time | min_exec_time | max_exec_time | mean_exec_time | stddev_exec_time | rows | shared_blks_hit | shared_blks_read | shared_blks_dirtied | shared_blks_written | local_blks_hit | local_blks_read | local_blks_dirtied | local_blks_written | temp_blks_read | temp_blks_written | shared_blk_read_time | shared_blk_write_time | local_blk_read_time | local_blk_write_time | temp_blk_read_time | temp_blk_write_time | resp_calls | cpu_user_time | cpu_sys_time | wal_records | wal_fpi | wal_bytes | bucket_done | plans | total_plan_time | min_plan_time | max_plan_time | mean_plan_time | stddev_plan_time | jit_functions | jit_generation_time | jit_inlining_count | jit_inlining_time | jit_optimization_count | jit_optimization_time | jit_emission_count | jit_emission_time | jit_deform_count | jit_deform_time | stats_since | minmax_stats_since | ||
--------+-------------------+--------+----------+------+---------+-----------+---------------+---------+----------+-------------+-------+----------+--------+------------+-----------+------------------+-----------+----------+---------------+--------+---------+---------+-------+-----------------+---------------+---------------+----------------+------------------+------+-----------------+------------------+---------------------+---------------------+----------------+-----------------+--------------------+--------------------+----------------+-------------------+----------------------+-----------------------+---------------------+----------------------+--------------------+---------------------+------------+---------------+--------------+-------------+---------+-----------+-------------+-------+-----------------+---------------+---------------+----------------+------------------+---------------+---------------------+--------------------+-------------------+------------------------+-----------------------+--------------------+-------------------+------------------+-----------------+-------------+-------------------- | ||
(0 rows) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
This test excludes indexes shipped with pgvector because orioledb doesn't support them yet | ||
*/ | ||
create schema v; | ||
create table v.items( | ||
id serial primary key, | ||
embedding vector(3), | ||
half_embedding halfvec(3), | ||
bit_embedding bit(3), | ||
sparse_embedding sparsevec(3) | ||
); | ||
-- Populate some records | ||
insert into v.items( | ||
embedding, | ||
half_embedding, | ||
bit_embedding, | ||
sparse_embedding | ||
) | ||
values | ||
('[1,2,3]', '[1,2,3]', '101', '{1:4}/3'), | ||
('[2,3,4]', '[2,3,4]', '010', '{1:7,3:0}/3'); | ||
-- Test op types | ||
select | ||
* | ||
from | ||
v.items | ||
order by | ||
embedding <-> '[2,3,5]', | ||
embedding <=> '[2,3,5]', | ||
embedding <+> '[2,3,5]', | ||
embedding <#> '[2,3,5]', | ||
half_embedding <-> '[2,3,5]', | ||
half_embedding <=> '[2,3,5]', | ||
half_embedding <+> '[2,3,5]', | ||
half_embedding <#> '[2,3,5]', | ||
sparse_embedding <-> '{2:4,3:1}/3', | ||
sparse_embedding <=> '{2:4,3:1}/3', | ||
sparse_embedding <+> '{2:4,3:1}/3', | ||
sparse_embedding <#> '{2:4,3:1}/3', | ||
bit_embedding <~> '011'; | ||
id | embedding | half_embedding | bit_embedding | sparse_embedding | ||
----+-----------+----------------+---------------+------------------ | ||
2 | [2,3,4] | [2,3,4] | 010 | {1:7}/3 | ||
1 | [1,2,3] | [1,2,3] | 101 | {1:4}/3 | ||
(2 rows) | ||
|
||
select | ||
avg(embedding), | ||
avg(half_embedding) | ||
from | ||
v.items; | ||
avg | avg | ||
---------------+--------------- | ||
[1.5,2.5,3.5] | [1.5,2.5,3.5] | ||
(1 row) | ||
|
||
-- Cleanup | ||
drop schema v cascade; | ||
NOTICE: drop cascades to table v.items |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
/* | ||
|
||
The purpose of this test is to monitor the SQL interface exposed | ||
by Postgres extensions so we have to manually review/approve any difference | ||
that emerge as versions change. | ||
|
||
*/ | ||
|
||
|
||
/* | ||
|
||
List all extensions that are not enabled | ||
If a new entry shows up in this list, that means a new extension has been | ||
added and you should `create extension ...` to enable it in ./nix/tests/prime | ||
|
||
*/ | ||
create extension if not exists adminpack; | ||
create extension if not exists plv8; | ||
create extension if not exists plcoffee; | ||
create extension if not exists plls; | ||
create extension if not exists old_snapshot; | ||
create extension if not exists timescaledb; | ||
create extension if not exists postgis_tiger_geocoder; | ||
|
||
|
||
select | ||
name | ||
from | ||
pg_available_extensions | ||
where | ||
installed_version is null | ||
order by | ||
name asc; | ||
|
||
|
||
/* | ||
|
||
Monitor relocatability and config of each extension | ||
- lesson learned from pg_cron | ||
|
||
*/ | ||
|
||
select | ||
extname as extension_name, | ||
extrelocatable as is_relocatable | ||
from | ||
pg_extension | ||
order by | ||
extname asc; | ||
|
||
|
||
/* | ||
|
||
Monitor extension public function interface | ||
|
||
*/ | ||
|
||
select | ||
e.extname as extension_name, | ||
n.nspname as schema_name, | ||
p.proname as function_name, | ||
pg_catalog.pg_get_function_identity_arguments(p.oid) as argument_types, | ||
pg_catalog.pg_get_function_result(p.oid) as return_type | ||
from | ||
pg_catalog.pg_proc p | ||
join pg_catalog.pg_namespace n | ||
on n.oid = p.pronamespace | ||
join pg_catalog.pg_depend d | ||
on d.objid = p.oid | ||
join pg_catalog.pg_extension e | ||
on e.oid = d.refobjid | ||
where | ||
d.deptype = 'e' | ||
-- Filter out changes between pg15 and pg16 from extensions that ship with postgres | ||
-- new in pg16 | ||
and not (e.extname = 'fuzzystrmatch' and p.proname = 'daitch_mokotoff') | ||
and not (e.extname = 'pageinspect' and p.proname = 'bt_multi_page_stats') | ||
and not (e.extname = 'pg_buffercache' and p.proname = 'pg_buffercache_summary') | ||
and not (e.extname = 'pg_buffercache' and p.proname = 'pg_buffercache_usage_counts') | ||
and not (e.extname = 'pg_walinspect' and p.proname = 'pg_get_wal_block_info') | ||
-- removed in pg16 | ||
and not (e.extname = 'pg_walinspect' and p.proname = 'pg_get_wal_records_info_till_end_of_wal') | ||
and not (e.extname = 'pg_walinspect' and p.proname = 'pg_get_wal_stats_till_end_of_wal') | ||
-- changed in pg16 - output signature added a column | ||
and not (e.extname = 'pageinspect' and p.proname = 'brin_page_items') | ||
order by | ||
e.extname, | ||
n.nspname, | ||
p.proname, | ||
pg_catalog.pg_get_function_identity_arguments(p.oid); | ||
|
||
/* | ||
|
||
Monitor extension public table/view/matview/index interface | ||
|
||
*/ | ||
|
||
select | ||
e.extname as extension_name, | ||
n.nspname as schema_name, | ||
pc.relname as entity_name, | ||
pa.attname | ||
from | ||
pg_catalog.pg_class pc | ||
join pg_catalog.pg_namespace n | ||
on n.oid = pc.relnamespace | ||
join pg_catalog.pg_depend d | ||
on d.objid = pc.oid | ||
join pg_catalog.pg_extension e | ||
on e.oid = d.refobjid | ||
left join pg_catalog.pg_attribute pa | ||
on pa.attrelid = pc.oid | ||
and pa.attnum > 0 | ||
and not pa.attisdropped | ||
where | ||
d.deptype = 'e' | ||
and pc.relkind in ('r', 'v', 'm', 'i') | ||
order by | ||
e.extname, | ||
n.nspname, | ||
pc.relname, | ||
pa.attname; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.