Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 029D265016C for ; Wed, 9 Jul 2008 08:05:15 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 29176-02 for ; Wed, 9 Jul 2008 08:05:03 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by postgresql.org (Postfix) with ESMTP id CBB63650152 for ; Wed, 9 Jul 2008 08:05:06 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id z27so59087ugc.49 for ; Wed, 09 Jul 2008 04:05:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type:content-transfer-encoding :content-disposition; bh=7Ls4FI+pIRmksuVIl/Zufpz1KLCdP/06JoolfbuGioM=; b=EHHHB1aYUViBz9slupSeJBk8KGjfA2dtLGWYx53bATiHfegMtFGcDipXkQymWlvO2k +dZvtlh98obw/BqFdziqPaAdDT9fJYg1MF629PQN69vmjPKwXswgdKmJF0DAu112d1ql O+4GaZ7Ay1i+LvAdyrfHgBMPVHfJUBm181wdY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=GD1mPYmKj7vbUjWPyXVXX3916DvRkXURe7f1uWmoSRjp+KC7dmIeIsPXXC0MGfrMXw ymdwiVnGpYMb/lDK2qGVUEUzreq511zrcGp4NbFynu/vPGVZ7/gDGqJ9tQl6hDHfY9qb EEchshxkGL7wv93Bos7Qdkt705E/xpZMrm1ZI= Received: by 10.125.77.15 with SMTP id e15mr1872840mkl.47.1215601503406; Wed, 09 Jul 2008 04:05:03 -0700 (PDT) Received: by 10.125.80.8 with HTTP; Wed, 9 Jul 2008 04:05:03 -0700 (PDT) Message-ID: Date: Wed, 9 Jul 2008 14:05:03 +0300 From: "Marko Kreen" To: "Postgres Hackers" Subject: review: table function support Cc: "Pavel Stehule" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200807/454 X-Sequence-Number: 120714 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