Re: backup manifests

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: backup manifests
Дата
Msg-id 7437.1577925975@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: backup manifests  (David Fetter <david@fetter.org>)
Ответы Re: backup manifests
Список pgsql-hackers
David Fetter <david@fetter.org> writes:
> On Wed, Jan 01, 2020 at 01:43:40PM -0500, Robert Haas wrote:
>> So, if someone can suggest to me how I could read JSON from a tool in
>> src/bin without writing a lot of code, I'm all ears.

> Maybe I'm missing something obvious, but wouldn't combining
> pg_read_file() with a cast to JSONB fix this, as below?

Only if you're prepared to restrict the use of the tool to superusers
(or at least people with whatever privilege that function requires).

Admittedly, you can probably feed the data to the backend without
use of an intermediate file; but it still requires a working backend
connection, which might be a bit of a leap for backup-related tools.
I'm sure Robert was envisioning doing this processing inside the tool.

            regards, tom lane



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

Предыдущее
От: John Naylor
Дата:
Сообщение: Re: reduce size of fmgr_builtins array
Следующее
От: Robert Haas
Дата:
Сообщение: Re: backup manifests