do $$
declare
list int[] := array[2619,1247,4159];
r text;
begin
select string_agg(relname, ',') into r from pg_class where oid = any(list);
raise notice '%', r;
end;
$$;
# NOTICE: pg_statistic,pg_type,pg_toast_2600
> \set list 2619,1247,4159
> select * from pg_class where oid in (:list);
ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 root@ip_address
A preflight request is automatically issued by a browser and in normal cases, front-end developers don't need to craft such requests themselves. It appears when request is qualified as "to be preflighted" and omitted for simple requests.
Использую alacritty, но чтобы фонт прописывали в его конфигах, я не видел
select distinct on (1) -- выбрать только уникальные значения по первому полю (action) из выборки
action, -- вывести action, usr, datetime
usr,
datetime
from table t1
order by 1, datetime desc -- для выборки отсортировать по первому полю (action), затем по дате в обратном порядке
/etc/supervisor/conf.d/
/etc/supervisord/conf.d/
; supervisor config file
[program:01-HTTPAceProxy]
user = user # - Если программа лежит в папке Пользователя
command = bash -c "sleep 5 && /usr/bin/python3 /opt/your_py_programm/your_py_programm.py"
или
command = bash -c "sleep 5 && /home/user/venv/bin/python3 /home/user/your_py_programm/your_py_programm.py" # - Если программа лежит в папке Пользователя
stdout_logfile_maxbytes = 50MB
stdout_logfile = /var/log/your_config.log
stderr_logfile = /var/log/your_config.log
startsecs = 10
priority = 1
stopasgroup = true
autostart = true
autorestart = true
sudo supervisorctl reread
sudo supervisorctl update
sudo systemctl restart supervisor.service # - для Ubuntu
sudo systemctl restart supervisord.service # - для Arch Linux
http://localhost:9001/