Olyno
07/31/2021, 10:35 PMScott P
07/31/2021, 10:37 PM-- or [ CTRL ] + [ / ] while the lines are selected)Scott P
07/31/2021, 10:38 PMVALUES()Scott P
07/31/2021, 10:47 PMcreate table if not exists and removing the drop table.
If you're trying to empty the table, you can do truncate table public.preferencesKosh
07/31/2021, 10:49 PMOlyno
07/31/2021, 10:50 PMOlyno
07/31/2021, 10:51 PMOlyno
07/31/2021, 10:51 PMKosh
07/31/2021, 10:55 PMSECURITY DEFINER specifies that the function is to be executed with the privileges of the user that created it.
I stumbled upon creating a trigger that calls a function that does read some data that only creator_id = uid() can access.
if you are doing such thing, then the definer basically bypass thatScott P
07/31/2021, 10:56 PMsql
INSERT INTO
preferences(language, theme)
SELECT (DEFAULT, DEFAULT)
FROM preferencesOlyno
07/31/2021, 10:56 PMScott P
07/31/2021, 10:56 PMid column as well, and perhaps pass new.id as the valueFlyken
07/31/2021, 10:57 PMFlyken
07/31/2021, 10:58 PMOlyno
07/31/2021, 11:00 PMOlyno
07/31/2021, 11:01 PMFlyken
07/31/2021, 11:01 PMFlyken
07/31/2021, 11:01 PMOlyno
07/31/2021, 11:01 PMFlyken
07/31/2021, 11:01 PMOlyno
07/31/2021, 11:02 PMScott P
07/31/2021, 11:02 PMOlyno
07/31/2021, 11:02 PMFlyken
07/31/2021, 11:02 PMOlyno
07/31/2021, 11:02 PMFlyken
07/31/2021, 11:02 PMOlyno
07/31/2021, 11:02 PMOlyno
07/31/2021, 11:03 PMScott P
07/31/2021, 11:03 PMOlyno
07/31/2021, 11:03 PMOlyno
07/31/2021, 11:04 PMOlyno
07/31/2021, 11:04 PM