doc patch for ALTER TRIGGER
doc patch for ALTER TRIGGER
От:
Joe Conway <mail@joeconway.com>
Дата:
Here's a doc patch for ALTER TRIGGER RENAME. Please apply if there are
no objections.
Thanks,
Joe
diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/allfiles.sgml pgsql/doc/src/sgml/ref/allfiles.sgml
*** pgsql.cvs.orig/doc/src/sgml/ref/allfiles.sgml Fri Apr 19 21:20:22 2002
--- pgsql/doc/src/sgml/ref/allfiles.sgml Fri Apr 19 21:39:31 2002
***************
*** 40,45 ****
--- 40,46 ----
+
diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/alter_trigger.sgml pgsql/doc/src/sgml/ref/alter_trigger.sgml
*** pgsql.cvs.orig/doc/src/sgml/ref/alter_trigger.sgml Wed Dec 31 16:00:00 1969
--- pgsql/doc/src/sgml/ref/alter_trigger.sgml Fri Apr 19 22:35:05 2002
***************
*** 0 ****
--- 1,178 ----
+
+
+
+
+
+ ALTER TRIGGER
+
+ SQL - Language Statements
+
+
+
+ ALTER TRIGGER
+
+
+ change the definition of a trigger
+
+
+
+
+ 2002-04-19
+
+
+ ALTER TRIGGER trigger ON table
+ RENAME TO newname
+
+
+
+
+ 2002-04-19
+
+
+ Inputs
+
+
+
+
+
+ trigger
+
+
+ The name of an existing trigger to alter.
+
+
+
+
+
+ table
+
+
+ The name of the table on which this trigger acts.
+
+
+
+
+
+ newname
+
+
+ New name for the existing trigger.
+
+
+
+
+
+
+
+
+
+
+ 2002-04-19
+
+
+ Outputs
+
+
+
+
+
+ ALTER
+
+
+ Message returned from trigger renaming.
+
+
+
+
+
+ ERROR
+
+
+ Message returned if trigger is not available, or new name is a duplicate of another existing trigger on the table.
+
+
+
+
+
+
+
+
+
+
+ 2002-04-19
+
+
+ Description
+
+
+ ALTER TRIGGER changes the definition of an existing trigger.
+ The RENAME clause causes the name of a trigger on the given table
+ to change without otherwise changing the trigger definition.
+
+
+
+ You must own the table on which the trigger acts in order to change its properties.
+
+
+
+
+ 2002-04-19
+
+
+ Notes
+
+
+ Refer to CREATE TRIGGER for a further description
+ of valid arguments.
+
+
+
+
+
+
+ Usage
+
+
+ To rename an existing trigger:
+
+ ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs;
+
+
+
+
+
+
+ Compatibility
+
+
+
+
+ 2002-04-19
+
+ SQL92
+
+ The clause to rename triggers is a
+ PostgreSQL extension from SQL92.
+
+
+
+
+
+
diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/create_trigger.sgml pgsql/doc/src/sgml/ref/create_trigger.sgml
*** pgsql.cvs.orig/doc/src/sgml/ref/create_trigger.sgml Fri Apr 19 21:20:22 2002
--- pgsql/doc/src/sgml/ref/create_trigger.sgml Fri Apr 19 21:41:52 2002
***************
*** 298,303 ****
--- 298,304 ----
+
PostgreSQL Programmer's Guide
diff -cNr pgsql.cvs.orig/doc/src/sgml/reference.sgml pgsql/doc/src/sgml/reference.sgml
*** pgsql.cvs.orig/doc/src/sgml/reference.sgml Fri Apr 19 21:20:22 2002
--- pgsql/doc/src/sgml/reference.sgml Fri Apr 19 21:38:01 2002
***************
*** 49,54 ****
--- 49,55 ----
&alterDatabase;
&alterGroup;
&alterTable;
+ &alterTrigger;
&alterUser;
&analyze;
&begin;
Re: doc patch for ALTER TRIGGER
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Your patch has been added to the PostgreSQL unapplied patches list at: http://candle.pha.pa.us/cgi-bin/pgpatches I will try to apply it within the next 48 hours. --------------------------------------------------------------------------- Joe Conway wrote: > Here's a doc patch for ALTER TRIGGER RENAME. Please apply if there are > no objections. > > Thanks, > > Joe > diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/allfiles.sgml pgsql/doc/src/sgml/ref/allfiles.sgml > *** pgsql.cvs.orig/doc/src/sgml/ref/allfiles.sgml Fri Apr 19 21:20:22 2002 > --- pgsql/doc/src/sgml/ref/allfiles.sgml Fri Apr 19 21:39:31 2002 > *************** > *** 40,45 **** > --- 40,46 ---- > > > > + > > > > diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/alter_trigger.sgml pgsql/doc/src/sgml/ref/alter_trigger.sgml > *** pgsql.cvs.orig/doc/src/sgml/ref/alter_trigger.sgml Wed Dec 31 16:00:00 1969 > --- pgsql/doc/src/sgml/ref/alter_trigger.sgml Fri Apr 19 22:35:05 2002 > *************** > *** 0 **** > --- 1,178 ---- > + > + > + > + > + > + ALTER TRIGGER > + > + SQL - Language Statements > + > + > + > + ALTER TRIGGER > + > + > + change the definition of a trigger > + > + > + > + > + 2002-04-19 > + > + > + ALTER TRIGGER trigger ON table > + RENAME TO newname > + > + > + > + > + 2002-04-19 > + > + > + Inputs > + > + > + > + > + > + trigger > + > + > + The name of an existing trigger to alter. > + > + > + > + > + > + table > + > + > + The name of the table on which this trigger acts. > + > + > + > + > + > + newname > + > + > + New name for the existing trigger. > + > + > + > + > + > + > + > + > + > + > + 2002-04-19 > + > + > + Outputs > + > + > + > + > + > + ALTER > + > + > + Message returned from trigger renaming. > + > + > + > + > + > + ERROR > + > + > + Message returned if trigger is not available, or new name is a duplicate of another existing trigger on the table. > + > + > + > + > + > + > + > + > + > + > + 2002-04-19 > + > + > + Description > + > + > + ALTER TRIGGER changes the definition of an existing trigger. > + The RENAME clause causes the name of a trigger on the given table > + to change without otherwise changing the trigger definition. > + > + > + > + You must own the table on which the trigger acts in order to change its properties. > + > + > + > + > + 2002-04-19 > + > + > + Notes > + > + > + Refer to CREATE TRIGGER for a further description > + of valid arguments. > + > + > + > + > + > + > + Usage > + > + > + To rename an existing trigger: > + > + ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs; > + > + > + > + > + > + > + Compatibility > + > + > + > + > + 2002-04-19 > + > + SQL92 > + > + The clause to rename triggers is a > + PostgreSQL extension from SQL92. > + > + > + > + > + > + > diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/create_trigger.sgml pgsql/doc/src/sgml/ref/create_trigger.sgml > *** pgsql.cvs.orig/doc/src/sgml/ref/create_trigger.sgml Fri Apr 19 21:20:22 2002 > --- pgsql/doc/src/sgml/ref/create_trigger.sgml Fri Apr 19 21:41:52 2002 > *************** > *** 298,303 **** > --- 298,304 ---- > > > > + > > PostgreSQL Programmer's Guide > > diff -cNr pgsql.cvs.orig/doc/src/sgml/reference.sgml pgsql/doc/src/sgml/reference.sgml > *** pgsql.cvs.orig/doc/src/sgml/reference.sgml Fri Apr 19 21:20:22 2002 > --- pgsql/doc/src/sgml/reference.sgml Fri Apr 19 21:38:01 2002 > *************** > *** 49,54 **** > --- 49,55 ---- > &alterDatabase; > &alterGroup; > &alterTable; > + &alterTrigger; > &alterUser; > &analyze; > &begin; > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Re: doc patch for ALTER TRIGGER
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Patch applied. Thanks. --------------------------------------------------------------------------- Joe Conway wrote: > Here's a doc patch for ALTER TRIGGER RENAME. Please apply if there are > no objections. > > Thanks, > > Joe > diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/allfiles.sgml pgsql/doc/src/sgml/ref/allfiles.sgml > *** pgsql.cvs.orig/doc/src/sgml/ref/allfiles.sgml Fri Apr 19 21:20:22 2002 > --- pgsql/doc/src/sgml/ref/allfiles.sgml Fri Apr 19 21:39:31 2002 > *************** > *** 40,45 **** > --- 40,46 ---- > > > > + > > > > diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/alter_trigger.sgml pgsql/doc/src/sgml/ref/alter_trigger.sgml > *** pgsql.cvs.orig/doc/src/sgml/ref/alter_trigger.sgml Wed Dec 31 16:00:00 1969 > --- pgsql/doc/src/sgml/ref/alter_trigger.sgml Fri Apr 19 22:35:05 2002 > *************** > *** 0 **** > --- 1,178 ---- > + > + > + > + > + > + ALTER TRIGGER > + > + SQL - Language Statements > + > + > + > + ALTER TRIGGER > + > + > + change the definition of a trigger > + > + > + > + > + 2002-04-19 > + > + > + ALTER TRIGGER trigger ON table > + RENAME TO newname > + > + > + > + > + 2002-04-19 > + > + > + Inputs > + > + > + > + > + > + trigger > + > + > + The name of an existing trigger to alter. > + > + > + > + > + > + table > + > + > + The name of the table on which this trigger acts. > + > + > + > + > + > + newname > + > + > + New name for the existing trigger. > + > + > + > + > + > + > + > + > + > + > + 2002-04-19 > + > + > + Outputs > + > + > + > + > + > + ALTER > + > + > + Message returned from trigger renaming. > + > + > + > + > + > + ERROR > + > + > + Message returned if trigger is not available, or new name is a duplicate of another existing trigger on the table. > + > + > + > + > + > + > + > + > + > + > + 2002-04-19 > + > + > + Description > + > + > + ALTER TRIGGER changes the definition of an existing trigger. > + The RENAME clause causes the name of a trigger on the given table > + to change without otherwise changing the trigger definition. > + > + > + > + You must own the table on which the trigger acts in order to change its properties. > + > + > + > + > + 2002-04-19 > + > + > + Notes > + > + > + Refer to CREATE TRIGGER for a further description > + of valid arguments. > + > + > + > + > + > + > + Usage > + > + > + To rename an existing trigger: > + > + ALTER TRIGGER emp_stamp ON emp RENAME TO emp_track_chgs; > + > + > + > + > + > + > + Compatibility > + > + > + > + > + 2002-04-19 > + > + SQL92 > + > + The clause to rename triggers is a > + PostgreSQL extension from SQL92. > + > + > + > + > + > + > diff -cNr pgsql.cvs.orig/doc/src/sgml/ref/create_trigger.sgml pgsql/doc/src/sgml/ref/create_trigger.sgml > *** pgsql.cvs.orig/doc/src/sgml/ref/create_trigger.sgml Fri Apr 19 21:20:22 2002 > --- pgsql/doc/src/sgml/ref/create_trigger.sgml Fri Apr 19 21:41:52 2002 > *************** > *** 298,303 **** > --- 298,304 ---- > > > > + > > PostgreSQL Programmer's Guide > > diff -cNr pgsql.cvs.orig/doc/src/sgml/reference.sgml pgsql/doc/src/sgml/reference.sgml > *** pgsql.cvs.orig/doc/src/sgml/reference.sgml Fri Apr 19 21:20:22 2002 > --- pgsql/doc/src/sgml/reference.sgml Fri Apr 19 21:38:01 2002 > *************** > *** 49,54 **** > --- 49,55 ---- > &alterDatabase; > &alterGroup; > &alterTable; > + &alterTrigger; > &alterUser; > &analyze; > &begin; > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026