Re: psql help

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: psql help
Дата
Msg-id CAKFQuwaYLtg0W4He0VGfqSTKSj+69sSq_5esqBVTHwSrPfMLmw@mail.gmail.com
обсуждение исходный текст
Ответ на psql help  (Murthy Nunna <mnunna@fnal.gov>)
Ответы RE: psql help
Список pgsql-general
On Thu, Jul 4, 2024 at 4:56 PM Murthy Nunna <mnunna@fnal.gov> wrote:

 

How can I rewrite the above in psql


The only real trick is using a psql variable instead of the shell-injection of the environment variable.  Use the --set CLI argument to assign the environment variable to a psql variable then refer to it in the query using :'timout_mins'

Removing the limit 1 should be as simple as not typing limit 1 when you bring the query into the psql script.

David J.

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: JSONPath operator and escaping values in query
Следующее
От: Murthy Nunna
Дата:
Сообщение: RE: psql help