fix: NOTIFY pgrst not reoading the catalog cache

This commit is contained in:
steve-chavez
2023-02-02 03:30:15 -05:00
committed by Steve Chavez
parent 557285b659
commit 98a29bee04
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';
$$;