Re: Yaml code

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: Yaml code
Дата
Msg-id CAKFQuwagjMYK=23CUupg3Su=esnqgjeznM8EYsGUo3SoSRR0Lw@mail.gmail.com
обсуждение исходный текст
Ответ на Yaml code  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Ответы Re: Yaml code  (Rajesh Kumar <rajeshkumar.dba09@gmail.com>)
Список pgsql-admin
On Wednesday, November 22, 2023, Rajesh Kumar <rajeshkumar.dba09@gmail.com> wrote:
I am using postgres 15.2 version. I want to write a yaml code to run a cron job that creates a table emp(I'd int) every 5mns

This makes no sense…

YAML is markup, it doesn’t run anything.  Something has to interpret the YAML.

I also can’t imagine how creating a fixed table periodically is useful; seems like it should fail every time but the first.  What problem is this supposed to solve?

Anyway, cron itself runs periodically - you don’t run it.  Just have it execute a psql command or bash script that includes using psql.

David J.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Rajesh Kumar
Дата:
Сообщение: Yaml code
Следующее
От: Rajesh Kumar
Дата:
Сообщение: Re: Yaml code