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 3B275D1B4FE for ; Thu, 13 Nov 2003 17:32:40 +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 88526-06 for ; Thu, 13 Nov 2003 13:32:09 -0400 (AST) Received: from dyatel.antar.bryansk.ru (unknown [195.239.214.85]) by svr1.postgresql.org (Postfix) with ESMTP id 67AECD1B4E1 for ; Thu, 13 Nov 2003 13:32:08 -0400 (AST) Received: from fduch by dyatel.antar.bryansk.ru with local (Exim 4.24; FreeBSD) id 1AKLKA-000GSU-Cn; Thu, 13 Nov 2003 20:32:06 +0300 Date: Thu, 13 Nov 2003 20:32:06 +0300 From: "Alexander M. Pravking" To: Tom Lane Cc: Richard Huxton , pgsql-sql@postgresql.org Subject: Re: STRICT function returning a composite type Message-ID: <20031113173206.GN69653@dyatel.antar.bryansk.ru> References: <20031113160800.GL69653@dyatel.antar.bryansk.ru> <200311131714.27192.dev@archonet.com> <20031113171945.GM69653@dyatel.antar.bryansk.ru> <28012.1068744478@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <28012.1068744478@sss.pgh.pa.us> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/159 X-Sequence-Number: 15974 On Thu, Nov 13, 2003 at 12:27:58PM -0500, Tom Lane wrote: > "Alexander M. Pravking" writes: > > 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.) Very well then... Can I return a null record from such function explicitly? Sorry, I could't find it anywhere in docs or examples. -- Fduch M. Pravking