sergiofra98
03/08/2023, 7:59 PMpg_sample
, when I try to restore the file using STDIN it seems to execute out of order and spit out FK errors, any ideas to why this happens only on a deployed database and not on local development?JackBiscuits
03/08/2023, 8:45 PMTrevvy
03/08/2023, 9:36 PMsql
BEGIN
INSERT INTO public.profiles (user_id, name)
VALUES (new.id, new.raw_user_meta_data->>'name');
RETURN new;
END;
However, in the logs I'm getting this error: ERROR: permission denied for table profiles
Now because I created the trigger as Admin, I thought that I would have all rights and bypass RLS?jakeAnon
03/08/2023, 10:03 PMzavbala
03/08/2023, 10:19 PMymahmo
03/08/2023, 11:04 PMjar
03/08/2023, 11:43 PMJinni
03/09/2023, 3:04 AMFailed to save database password: failed to unlock correct collection '/org/freedesktop/secrets/collection/login'
It seems to succeed though. I am just "worried" I am not setting it up properly.Jinni
03/09/2023, 3:17 AMJinni
03/09/2023, 3:27 AMnpx supabase start
I get this error. I have a migration from a remote project.byod
03/09/2023, 5:06 AMDanMossa
03/09/2023, 5:36 AMJinni
03/09/2023, 6:26 AMMasami Ogasawara
03/09/2023, 7:41 AMhoj
03/09/2023, 8:08 AMviktor
03/09/2023, 8:45 AMsql
SELECT cron.schedule(
'test-cron',
'34 8 * * *', -- crontab.guru (GMT)
$$ PERFORM public.test_cron() $$
);
CREATE OR REPLACE FUNCTION public.test_cron()
RETURNS VOID
LANGUAGE plpgsql
SECURITY DEFINER
AS
$$
DECLARE
BEGIN
UPDATE public.customer SET a_column = null WHERE public.customer.id = 1082;
END;
$$;
ALTER FUNCTION public.test_cron() owner to postgres;
-- I've also tested adding in this:
grant usage on schema cron to postgres;
grant all privileges on all tables in schema cron to postgres;
I've double checked the database time with select now();
If I do select * from cron.job;
The job is there, username is postgres which is the same user that I can manually do this with select * from public.test_cron();
And yes I've tried to replace PERFORM with select * from in cron job.
So I'm a bit lost on what I'm missing.Jinni
03/09/2023, 9:35 AMGuy Rozen
03/09/2023, 9:53 AM1nf
03/09/2023, 10:17 AMaaadryyy
03/09/2023, 10:24 AMhttp://localhost:8082/project/default
is loading endlessly.
API calls:
http://localhost:8082/api/projects/default/api/rest
returns a 404
http://localhost:8082/api/pg-meta/default/query
returns a 400
What can I do?Philipp Lerche
03/09/2023, 10:54 AMAmalyth
03/09/2023, 10:56 AMNJ™
03/09/2023, 11:30 AMSolid Snake
03/09/2023, 12:03 PMJaaneek
03/09/2023, 12:12 PMmintho
03/09/2023, 12:42 PM_document.ts
. I want to show a log out button if session is not nullhko
03/09/2023, 12:56 PMpostgres
and the DB password. Is there a way to disable remote connections (or restrict to allowlist)? Alternatively, are there ways to improve security, like requiring the SSL cert (which is optional at this point)?zegoverno
03/09/2023, 1:01 PMRuben
03/09/2023, 1:18 PMdavid1
03/09/2023, 1:22 PM