Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TYUVk-0007b6-KJ for pgsql-docs@postgresql.org; Wed, 14 Nov 2012 04:23:36 +0000 Received: from mail-ob0-f174.google.com ([209.85.214.174]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TYUVi-0000JP-Ny for pgsql-docs@postgresql.org; Wed, 14 Nov 2012 04:23:36 +0000 Received: by mail-ob0-f174.google.com with SMTP id wc20so21029obb.19 for ; Tue, 13 Nov 2012 20:23:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=lOGSK9HqpXgl5MRh/qVTDoq3Ti1ktB2fNN8aEamos6w=; b=sJ/MP3NLrn7oFP5mF/Semm+T0h3m7MvLMvP50xFU5HWr6g0TVRL+9attmV7E1UOJHb 8kpt4sokaNqLn852XszNVAsB0pSoE1/f6EZwp+3CVjMCOF5Gf4sKiD0R1qcc8lF/H7YK k+BxvS70u25fv12+tw+w+oLHAbXD8KT6d4VUcr+eBFWnr7TdRa5lSQLCiL9iuiAvAF5F Y8ZVg2S5UOZd9GxC5AaF3P3kKXMA20PpQnnSwZzS2tAq7zpK8LAdXMIq+YF8g05M4vrf lCm2yZcBf/raSM3gADgrwuqQXAz4/qK33/tBGwUTbNvN7nrvMMR/J+1X9sYzYudqsl84 FxBw== Received: by 10.60.12.225 with SMTP id b1mr19440044oec.96.1352867014081; Tue, 13 Nov 2012 20:23:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.60.79.130 with HTTP; Tue, 13 Nov 2012 20:23:13 -0800 (PST) In-Reply-To: <50A01024.5010007@femto-st.fr> References: <50A01024.5010007@femto-st.fr> From: Josh Kupershmidt Date: Tue, 13 Nov 2012 23:23:13 -0500 Message-ID: Subject: Re: Incomplete compatibility information for triggers To: Louis-Claude Canon Cc: pgsql-docs@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201211/10 X-Sequence-Number: 7502 On Sun, Nov 11, 2012 at 3:52 PM, Louis-Claude Canon wrote: > the compatibility section of the "create trigger" page > (http://www.postgresql.org/docs/devel/static/sql-createtrigger.html) claims > that a missing functionality is the ability to define aliases for the "old" > and "new" rows or tables. If I am understanding this correctly, another > related missing functionality is that PostgreSQL does not allow the old and > new tables to be referenced for statement-level triggers (i.e., the "OLD > TABLE" that contains all the deleted/modified rows in case of > deletion/update). I think this is also worth noting as any workaround for it > seems to be more difficult (if possible at all) than for the missing alias > feature. +1, it seems like a useful missing piece from the SQL:2011 standard. Care to send a documentation patch? Josh