fix: NOTIFY pgrst not reoading the catalog cache

This commit is contained in:
steve-chavez
2023-01-28 10:30:29 -05:00
committed by Steve Chavez
parent 12ad7d0585
commit 7874bee879
4 changed files with 42 additions and 9 deletions
+12
View File
@@ -86,3 +86,15 @@ $$ language sql;
create or replace function hello() returns text as $$
select 'hello';
$$ language sql;
create table cats(id uuid primary key, name text);
grant all on cats to postgrest_test_anonymous;
create function drop_change_cats() returns void
language sql security definer
as $$
drop table cats;
create table cats(id bigint primary key, name text);
grant all on table cats to postgrest_test_anonymous;
notify pgrst, 'reload schema';
$$;