This assumes you will have pgAgent running on the same machine as your database.
- Install pgAgent via package manager
sudo apt update
Fast answer:
sed ':a;N;$!ba;s/\n/ /g' file
create table deps_saved_ddl | |
( | |
deps_id serial primary key, | |
deps_view_schema varchar(255), | |
deps_view_name varchar(255), | |
deps_ddl_to_run text | |
); | |
create or replace function deps_save_and_drop_dependencies(p_view_schema varchar, p_view_name varchar) returns void as | |
$$ |