X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 438CAD1B544 for ; Thu, 13 Nov 2003 17:28:44 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 87818-07 for ; Thu, 13 Nov 2003 13:28:13 -0400 (AST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 08882D1B55F for ; Thu, 13 Nov 2003 13:28:12 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.10/8.12.10) with ESMTP id hADHRx19028013; Thu, 13 Nov 2003 12:27:59 -0500 (EST) To: "Alexander M. Pravking" Cc: Richard Huxton , pgsql-sql@postgresql.org Subject: Re: STRICT function returning a composite type In-reply-to: <20031113171945.GM69653@dyatel.antar.bryansk.ru> References: <20031113160800.GL69653@dyatel.antar.bryansk.ru> <200311131714.27192.dev@archonet.com> <20031113171945.GM69653@dyatel.antar.bryansk.ru> Comments: In-reply-to "Alexander M. Pravking" message dated "Thu, 13 Nov 2003 20:19:45 +0300" Date: Thu, 13 Nov 2003 12:27:58 -0500 Message-ID: <28012.1068744478@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/158 X-Sequence-Number: 15973 "Alexander M. Pravking" writes: > On Thu, Nov 13, 2003 at 05:14:27PM +0000, Richard Huxton wrote: >> RETURNS NULL ON NULL INPUT or STRICT indicates that the function always >> returns NULL whenever any of its arguments are NULL. > Does "NULL result" mean an empty rowset if the function returns a record? No, it means a null record. "Empty rowset" would apply to a function declared to return SETOF something. (I believe that is how we interpret the concept of strictness for functions returning sets.) regards, tom lane