Re: PL/pgSQL doesn't support variables in queries?

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: PL/pgSQL doesn't support variables in queries?
Дата
Msg-id CAKFQuwb0RzBn05SK3USj8nqn4Eds0qw9CRVqY4HZjmZyK7KDbg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PL/pgSQL doesn't support variables in queries?  ("J.A." <postgresql@world-domination.com.au>)
Список pgsql-general
The convention on these lists is to inline or, at worse, bottom-post.

On Wed, May 3, 2023 at 7:34 AM J.A. <postgresql@world-domination.com.au> wrote:
now select * from a _number_ of tables and return a -multi recordsets- from this single query. I'm not sure if that is the same terminology, in pgsql?

So is this possible?

The output of a set-returning function (srf) is a single tabular result.

If you want to produce multiple tabular results you would need to either serialize them (say into jsonb) or assign a cursor name to each and then reference them by name.

David J.

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

Предыдущее
От: "J.A."
Дата:
Сообщение: Re: PL/pgSQL doesn't support variables in queries?
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: PL/pgSQL doesn't support variables in queries?