X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2007B5280A for ; Fri, 3 Jun 2005 11:16:35 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 72757-02 for ; Fri, 3 Jun 2005 14:16:32 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 31DBA52861 for ; Fri, 3 Jun 2005 11:16:31 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j53EGYgX004627; Fri, 3 Jun 2005 10:16:34 -0400 (EDT) To: Markus Bertheau =?UTF-8?Q?=E2=98=AD?= Cc: PostgreSQL Subject: Re: CASE WHEN foo IS NULL THEN DEFAULT ELSE foo END In-reply-to: <1117804646.9816.37.camel@dicaprio.akademie1.de> References: <1117804646.9816.37.camel@dicaprio.akademie1.de> Comments: In-reply-to Markus Bertheau =?UTF-8?Q?=E2=98=AD?= message dated "Fri, 03 Jun 2005 15:17:26 +0200" Date: Fri, 03 Jun 2005 10:16:34 -0400 Message-ID: <4626.1117808194@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.109 tagged_above=0 required=5 tests=AWL, UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200506/48 X-Sequence-Number: 21649 Markus Bertheau =?UTF-8?Q?=E2=98=AD?= writes: > is it planned to support the following insert syntax? > INSERT INTO table VALUES (CASE WHEN arg_whatever IS NULL THEN DEFAULT > ELSE arg_whatever END); No. AFAICS, SQL99 only defines DEFAULT as the direct INSERT or UPDATE target expression. regards, tom lane