Skip to content

Commit

Permalink
add issued queries
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje committed Feb 26, 2024
1 parent bc973c7 commit 1cd0fce
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
41 changes: 40 additions & 1 deletion e2e_test/batch/catalog/pg_namespace.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,43 @@ SELECT nspname FROM pg_catalog.pg_namespace;
information_schema
pg_catalog
public
rw_catalog
rw_catalog

query TT rowsort
SELECT
nspname AS schema_name,
pg_catalog.obj_description(oid) AS comment
FROM
pg_catalog.pg_namespace
WHERE
nspname NOT IN ('information_schema', 'pg_catalog', 'pg_toast', 'crdb_internal', 'pg_extension')
AND nspname NOT LIKE 'pg_%temp_%'
ORDER BY
nspname;
----
public (empty)
rw_catalog (empty)

query TTTTTTT
SELECT
t3.oid,
t1.table_schema,
t1.table_name,
pg_catalog.obj_description(t3.oid, 'pg_class') AS comment,
t4.partattrs AS partition_attrs,
t4.partstrat AS partition_strategy,
pg_get_expr(t4.partexprs, t4.partrelid) AS partition_exprs
FROM
INFORMATION_SCHEMA.TABLES AS t1
JOIN pg_catalog.pg_namespace AS t2 ON t2.nspname = t1.table_schema
JOIN pg_catalog.pg_class AS t3 ON t3.relnamespace = t2.oid AND t3.relname = t1.table_name
LEFT JOIN pg_catalog.pg_partitioned_table AS t4 ON t4.partrelid = t3.oid
LEFT JOIN pg_depend AS t5 ON t5.objid = t3.oid AND t5.deptype = 'e'
WHERE
t1.table_type = 'BASE TABLE'
AND NOT COALESCE(t3.relispartition, false)
AND t1.table_schema IN ('public', 'rw_catalog')
AND t5.objid IS NULL
ORDER BY
t1.table_schema, t1.table_name;
----
5 changes: 5 additions & 0 deletions e2e_test/batch/functions/setting.slt.part
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ query T
SELECT set_config('client_min_messages', 'notice', false);
----
notice

query T
SELECT setting FROM pg_settings WHERE name IN ('server_version_num', 'crdb_version') ORDER BY name DESC;
----
130014

0 comments on commit 1cd0fce

Please sign in to comment.