From: Marko Kreen <markokr@gmail.com>
To: Postgres Hackers <pgsql-hackers@postgresql.org>
Cc: Pavel Stehule <pavel.stehule@gmail.com>
Subject: review: table function support
Date: Wed, 9 Jul 2008 14:05:03 +0300
Message-ID: <e51f66da0807090405gd5ad4c3h892986181cf09d7a@mail.gmail.com> (raw)
Generally, the patch looks fine. There are few issues still:
- plpgsql: the result columns _do_ create local variables.
AIUI, they should not?
- pg_dump: is the psql_assert() introduction necessary, considering it
is used only in one place?
- There should be regression test for plpgsql too, that test if
the behaviour is correct.
- The documentation should mention behaviour difference from OUT
parameters.
Wishlist (probably out of scope for this patch):
- plpgsql: a way to create record variable for result row. Something like:
CREATE FUNCTION foo(..) RETURNS TABLE (..) AS $$
DECLARE
retval foo%ROWTYPE;
Currently the OUT parameters are quite painful to use due to bad
name resolving logic. Such feature would be perfect replacement.
--
marko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-patches@postgresql.org
Cc: markokr@gmail.com, pgsql-hackers@postgresql.org, pavel.stehule@gmail.com
Subject: Re: review: table function support
In-Reply-To: <e51f66da0807090405gd5ad4c3h892986181cf09d7a@mail.gmail.com>
References: <e51f66da0807090405gd5ad4c3h892986181cf09d7a@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox