Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions nix/tests/expected/index_advisor.out
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
create schema v;
create table v.book(
id int primary key,
title text not null
);
select
index_statements, errors
from
index_advisor('select id from v.book where title = $1');
index_statements | errors
------------------------------------------------+--------
{"CREATE INDEX ON v.book USING btree (title)"} | {}
(1 row)

drop schema v cascade;
NOTICE: drop cascades to table v.book
13 changes: 13 additions & 0 deletions nix/tests/sql/index_advisor.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
create schema v;

create table v.book(
id int primary key,
title text not null
);

select
index_statements, errors
from
index_advisor('select id from v.book where title = $1');

drop schema v cascade;
Loading