Re: Proposal: real procedures again (8.4)

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Proposal: real procedures again (8.4)
Дата
Msg-id 162867790710300140n4be87a4oe8ef8c55882893ac@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Proposal: real procedures again (8.4)  (Alvaro Herrera <alvherre@commandprompt.com>)
Ответы Re: Proposal: real procedures again (8.4)  ("Zeugswetter Andreas ADI SD" <Andreas.Zeugswetter@s-itsolutions.at>)
Список pgsql-hackers
2007/10/29, Alvaro Herrera <alvherre@commandprompt.com>:
> Gregory Stark wrote:
> > "Hannu Krosing" <hannu@skype.net> writes:
> >
> > > What I was referring to, was a "code cleanup" of libpq several years
> > > ago, when someone (maybe Bruce IIRC) removed ability to accept multiple
> > > recordsets from backend altogether, on the basis that it is not used
> > > anyway.
> >
> > You can still receive multiple record sets just fine using libpq. psql doesn't
> > handle them but they're there. When I was doing the concurrent psql patch I
> > also had it handling multiple record sets.
> >
> > Something else you may be thinking of, I don't think it's legal to do queries
> > like "select 1 ; select 2" in the new protocol. That was legal in the old
> > protocol.
>
> I think the cool thing that Josh Berkus wants is
>
> return query select a, b, c from foo;
> return query select d, e, f from bar;
>

maybe better

SELECT a,b FROM foo;
SELECT d, e FROM bar;

procedure doesn't need return statement usually


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

Предыдущее
От: sayali k
Дата:
Сообщение: Multiple trees in parsetree_list
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: Proposal: real procedures again (8.4)