Incomplete compatibility information for triggers

Started by Louis-Claude Canonover 13 years ago5 messagesdocs
Jump to latest
#1Louis-Claude Canon
louis-claude.canon@femto-st.fr

Hello,

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.

Regards,

Louis-Claude Canon

#2Josh Kupershmidt
schmiddy@gmail.com
In reply to: Louis-Claude Canon (#1)
Re: Incomplete compatibility information for triggers

On Sun, Nov 11, 2012 at 3:52 PM, Louis-Claude Canon
<louis-claude.canon@femto-st.fr> 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

#3Louis-Claude Canon
louis-claude.canon@femto-st.fr
In reply to: Josh Kupershmidt (#2)
Re: Incomplete compatibility information for triggers

Le 14/11/2012 05:23, Josh Kupershmidt a écrit :

On Sun, Nov 11, 2012 at 3:52 PM, Louis-Claude Canon
<louis-claude.canon@femto-st.fr> 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?

Let me know if it requires a second round.

By the way, I can propose another patch regarding the transaction
isolation relatively to my previous post on pgsql-bugs.

Louis

Attachments:

0001-Document-the-missing-OLD-NEW-TABLE-trigger-feature.patchtext/x-patch; name=0001-Document-the-missing-OLD-NEW-TABLE-trigger-feature.patchDownload
#4Josh Kupershmidt
schmiddy@gmail.com
In reply to: Louis-Claude Canon (#3)
Re: Incomplete compatibility information for triggers

On Wed, Nov 14, 2012 at 2:19 PM, Louis-Claude Canon
<louis-claude.canon@femto-st.fr> wrote:

Le 14/11/2012 05:23, Josh Kupershmidt a écrit :

On Sun, Nov 11, 2012 at 3:52 PM, Louis-Claude Canon
<louis-claude.canon@femto-st.fr> 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?

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 isolation
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

Attachments:

0002-Document-the-missing-OLD-NEW-TABLE-trigger-feature.patchapplication/octet-stream; name=0002-Document-the-missing-OLD-NEW-TABLE-trigger-feature.patchDownload+13-3
#5Peter Eisentraut
peter_e@gmx.net
In reply to: Josh Kupershmidt (#4)
Re: Incomplete compatibility information for triggers

On Sun, 2013-01-13 at 14:47 -0700, Josh Kupershmidt wrote:

On Wed, Nov 14, 2012 at 2:19 PM, Louis-Claude Canon
<louis-claude.canon@femto-st.fr> wrote:

Le 14/11/2012 05:23, Josh Kupershmidt a écrit :

On Sun, Nov 11, 2012 at 3:52 PM, Louis-Claude Canon
<louis-claude.canon@femto-st.fr> 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?

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.

Committed.

--
Sent via pgsql-docs mailing list (pgsql-docs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs