chatdesk-ui/postgres_15.8.1.044/nix/tests/smoke/0004-index_advisor.sql

20 lines
414 B
PL/PgSQL

-- Start transaction and plan the tests.
begin;
select plan(1);
create extension if not exists index_advisor;
create table account(
id int primary key,
is_verified bool
);
select is(
(select count(1) from index_advisor('select id from public.account where is_verified;'))::int,
1,
'index_advisor returns 1 row'
);
select * from finish();
rollback;