Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuVP3-00048S-2E for pgsql-docs@arkaria.postgresql.org; Sun, 13 Jan 2013 21:47:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1TuVP1-0001d9-VR for pgsql-docs@arkaria.postgresql.org; Sun, 13 Jan 2013 21:47:40 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuVP1-0001d3-1Z for pgsql-docs@postgresql.org; Sun, 13 Jan 2013 21:47:39 +0000 Received: from mail-vb0-f42.google.com ([209.85.212.42]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TuVOy-0006Jq-5l for pgsql-docs@postgresql.org; Sun, 13 Jan 2013 21:47:38 +0000 Received: by mail-vb0-f42.google.com with SMTP id fa15so3050106vbb.29 for ; Sun, 13 Jan 2013 13:47: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=YCEhTFk2oIzgMgXtm5NRCNdQZUZzZfEopqBY5RqBl9w=; b=va8sUZAIAoYptuYAhtS54pQ9qiuoEHZJFFO7OqFJzi5GJl1H8PYVbHotuhy1GUFNQr +Z8m2MYNWuoxCZsMP54KT+dH9ga76sevjTrOI00TwciL6a8LScg6IWEfuiaKCDK7+cxb i46jKsbtO2Ss0Ri7j7X35ZiXioq/XUYB/k9JE7VRm6dN04Dk7eNrksycZeFWmTzucK93 rZZ+mhvWxwtwrqCS0cuh/1MPKO7zQR0cBzGW5CjkbujqK66XqcLf8DrL0sSWdX4cqYMi 8GabSI9QwMyycFHrJSdOMAe4ehYTSY9XqeAhpIHYHs5pTGTLDVxmSU+eDOKsxuT8B0p2 EK7Q== Received: by 10.52.21.179 with SMTP id w19mr88248098vde.55.1358113654515; Sun, 13 Jan 2013 13:47:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.85.41 with HTTP; Sun, 13 Jan 2013 13:47:14 -0800 (PST) In-Reply-To: <50A40AEB.1020804@femto-st.fr> References: <50A01024.5010007@femto-st.fr> <50A40AEB.1020804@femto-st.fr> From: Josh Kupershmidt Date: Sun, 13 Jan 2013 14:47:14 -0700 Message-ID: Subject: Re: Incomplete compatibility information for triggers To: Louis-Claude Canon Cc: pgsql-docs@postgresql.org Content-Type: multipart/mixed; boundary=20cf307d0678f1267004d33279cd X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-docs Precedence: bulk Sender: pgsql-docs-owner@postgresql.org --20cf307d0678f1267004d33279cd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Nov 14, 2012 at 2:19 PM, Louis-Claude Canon wrote: > Le 14/11/2012 05:23, Josh Kupershmidt a =E9crit : > >> 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 f= or >>> 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? > > > Let me know if it requires a second round. A (belated) +1 for this patch. There were two small typos which I've fixed in the attached version. You may want to add this patch soon to the 2013-01 CommitFest so it doesn't get lost. > By the way, I can propose another patch regarding the transaction isolati= on > relatively to my previous post on pgsql-bugs. If that doc change hasn't been made yet, you may want to post a patch. Josh --20cf307d0678f1267004d33279cd Content-Type: application/octet-stream; name="0002-Document-the-missing-OLD-NEW-TABLE-trigger-feature.patch" Content-Disposition: attachment; filename="0002-Document-the-missing-OLD-NEW-TABLE-trigger-feature.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hbwprzl31 ZGlmZiAtLWdpdCBhL2RvYy9zcmMvc2dtbC9yZWYvY3JlYXRlX3RyaWdnZXIu c2dtbCBiL2RvYy9zcmMvc2dtbC9yZWYvY3JlYXRlX3RyaWdnZXIuc2dtbApu ZXcgZmlsZSBtb2RlIDEwMDY0NAppbmRleCAwZjg3YjFmLi40OWE4MTMwCioq KiBhL2RvYy9zcmMvc2dtbC9yZWYvY3JlYXRlX3RyaWdnZXIuc2dtbAotLS0g Yi9kb2Mvc3JjL3NnbWwvcmVmL2NyZWF0ZV90cmlnZ2VyLnNnbWwKKioqKioq KioqKioqKioqIENSRUFURSBUUklHR0VSIHZpZXdfaW5zZXJ0CioqKiA0ODQs NDk0ICoqKioKICAgIDxwYXJhPgogICAgIFRoZSA8Y29tbWFuZD5DUkVBVEUg VFJJR0dFUjwvY29tbWFuZD4gc3RhdGVtZW50IGluCiAgICAgPHByb2R1Y3Ru YW1lPlBvc3RncmVTUUw8L3Byb2R1Y3RuYW1lPiBpbXBsZW1lbnRzIGEgc3Vi c2V0IG9mIHRoZQohICAgIDxhY3JvbnltPlNRTDwvPiBzdGFuZGFyZC4gVGhl IGZvbGxvd2luZyBmdW5jdGlvbmFsaXR5IGlzIGN1cnJlbnRseSBtaXNzaW5n OgogIAogICAgIDxpdGVtaXplZGxpc3Q+CiAgICAgIDxsaXN0aXRlbT4KICAg ICAgIDxwYXJhPgogICAgICAgIFNRTCBhbGxvd3MgeW91IHRvIGRlZmluZSBh bGlhc2VzIGZvciB0aGUgPHF1b3RlPm9sZDwvcXVvdGU+CiAgICAgICAgYW5k IDxxdW90ZT5uZXc8L3F1b3RlPiByb3dzIG9yIHRhYmxlcyBmb3IgdXNlIGlu IH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FMIGFsbG93 cyB5b3UgdG8gZGVmaW5lIGFsaWFzZXMgZm9yIHRoZSA8cXVvdGU+b2xkPC9x dW90ZT4KICAgICAgICBhbmQgPHF1b3RlPm5ldzwvcXVvdGU+IHJvd3Mgb3Ig dGFibGVzIGZvciB1c2UgaW4gdGhlIGRlZmluaXRpb24KICAgICAgICBvZiB0 aGUgdHJpZ2dlcmVkIGFjdGlvbiAoZS5nLiwgPGxpdGVyYWw+Q1JFQVRFIFRS SUdHRVIgLi4uIE9OCg== --20cf307d0678f1267004d33279cd Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-docs --20cf307d0678f1267004d33279cd--