Re: Yaml code

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Yaml code
Date: 2023-11-22 14:52:24
Message-ID: CAKFQuwagjMYK=23CUupg3Su=esnqgjeznM8EYsGUo3SoSRR0Lw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wednesday, November 22, 2023, Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)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.

In response to

  • Yaml code at 2023-11-22 14:45:32 from Rajesh Kumar

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rajesh Kumar 2023-11-22 15:05:02 Re: Yaml code
Previous Message Rajesh Kumar 2023-11-22 14:45:32 Yaml code