dbTalk Databases Forums  

\d mytable should display if trigger is enabled

comp.databases.postgresql comp.databases.postgresql


Discuss \d mytable should display if trigger is enabled in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #11  
Old   
Thomas Guettler
 
Posts: n/a

Default Re: \d mytable should display if trigger is enabled - 10-22-2008 , 05:35 AM






Hi Andreas,

I use 8.2.6. Good to know, that it will be included in the next release (8.4).


foo_esg_modw=# alter table foo_beleg disable trigger foo_beleg_tgr;
ALTER TABLE
foo_esg_modw=# \d foo_beleg
Tabelle »public.foo_beleg«
Spalte | Typ | Attribute
------------------+--------------------------+------------------------------------------------------------
id | integer | not null default nextval('foo_beleg_id_seq'::regclass)
...
Indexe:
...
Trigger:
foo_beleg_tgr AFTER INSERT OR DELETE OR UPDATE ON foo_beleg FOR EACH ROW EXECUTE PROCEDURE history_monitor()

foo_esg_modw=# select version();
version
--------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux)
(1 Zeile)

Andreas Kretschmer schrieb:

Quote:
Works for me:
..
PostgreSQL 8.4devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


Reply With Quote
  #12  
Old   
Thomas Guettler
 
Posts: n/a

Default Re: \d mytable should display if trigger is enabled - 10-22-2008 , 05:35 AM






Hi Andreas,

I use 8.2.6. Good to know, that it will be included in the next release (8.4).


foo_esg_modw=# alter table foo_beleg disable trigger foo_beleg_tgr;
ALTER TABLE
foo_esg_modw=# \d foo_beleg
Tabelle »public.foo_beleg«
Spalte | Typ | Attribute
------------------+--------------------------+------------------------------------------------------------
id | integer | not null default nextval('foo_beleg_id_seq'::regclass)
...
Indexe:
...
Trigger:
foo_beleg_tgr AFTER INSERT OR DELETE OR UPDATE ON foo_beleg FOR EACH ROW EXECUTE PROCEDURE history_monitor()

foo_esg_modw=# select version();
version
--------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux)
(1 Zeile)

Andreas Kretschmer schrieb:

Quote:
Works for me:
..
PostgreSQL 8.4devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


Reply With Quote
  #13  
Old   
Thomas Guettler
 
Posts: n/a

Default Re: \d mytable should display if trigger is enabled - 10-22-2008 , 05:35 AM



Hi Andreas,

I use 8.2.6. Good to know, that it will be included in the next release (8.4).


foo_esg_modw=# alter table foo_beleg disable trigger foo_beleg_tgr;
ALTER TABLE
foo_esg_modw=# \d foo_beleg
Tabelle »public.foo_beleg«
Spalte | Typ | Attribute
------------------+--------------------------+------------------------------------------------------------
id | integer | not null default nextval('foo_beleg_id_seq'::regclass)
...
Indexe:
...
Trigger:
foo_beleg_tgr AFTER INSERT OR DELETE OR UPDATE ON foo_beleg FOR EACH ROW EXECUTE PROCEDURE history_monitor()

foo_esg_modw=# select version();
version
--------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux)
(1 Zeile)

Andreas Kretschmer schrieb:

Quote:
Works for me:
..
PostgreSQL 8.4devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


Reply With Quote
  #14  
Old   
Thomas Guettler
 
Posts: n/a

Default Re: \d mytable should display if trigger is enabled - 10-22-2008 , 05:35 AM



Hi Andreas,

I use 8.2.6. Good to know, that it will be included in the next release (8.4).


foo_esg_modw=# alter table foo_beleg disable trigger foo_beleg_tgr;
ALTER TABLE
foo_esg_modw=# \d foo_beleg
Tabelle »public.foo_beleg«
Spalte | Typ | Attribute
------------------+--------------------------+------------------------------------------------------------
id | integer | not null default nextval('foo_beleg_id_seq'::regclass)
...
Indexe:
...
Trigger:
foo_beleg_tgr AFTER INSERT OR DELETE OR UPDATE ON foo_beleg FOR EACH ROW EXECUTE PROCEDURE history_monitor()

foo_esg_modw=# select version();
version
--------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux)
(1 Zeile)

Andreas Kretschmer schrieb:

Quote:
Works for me:
..
PostgreSQL 8.4devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


Reply With Quote
  #15  
Old   
Thomas Guettler
 
Posts: n/a

Default Re: \d mytable should display if trigger is enabled - 10-22-2008 , 05:35 AM



Hi Andreas,

I use 8.2.6. Good to know, that it will be included in the next release (8.4).


foo_esg_modw=# alter table foo_beleg disable trigger foo_beleg_tgr;
ALTER TABLE
foo_esg_modw=# \d foo_beleg
Tabelle »public.foo_beleg«
Spalte | Typ | Attribute
------------------+--------------------------+------------------------------------------------------------
id | integer | not null default nextval('foo_beleg_id_seq'::regclass)
...
Indexe:
...
Trigger:
foo_beleg_tgr AFTER INSERT OR DELETE OR UPDATE ON foo_beleg FOR EACH ROW EXECUTE PROCEDURE history_monitor()

foo_esg_modw=# select version();
version
--------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux)
(1 Zeile)

Andreas Kretschmer schrieb:

Quote:
Works for me:
..
PostgreSQL 8.4devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


Reply With Quote
  #16  
Old   
Thomas Guettler
 
Posts: n/a

Default Re: \d mytable should display if trigger is enabled - 10-22-2008 , 05:35 AM



Hi Andreas,

I use 8.2.6. Good to know, that it will be included in the next release (8.4).


foo_esg_modw=# alter table foo_beleg disable trigger foo_beleg_tgr;
ALTER TABLE
foo_esg_modw=# \d foo_beleg
Tabelle »public.foo_beleg«
Spalte | Typ | Attribute
------------------+--------------------------+------------------------------------------------------------
id | integer | not null default nextval('foo_beleg_id_seq'::regclass)
...
Indexe:
...
Trigger:
foo_beleg_tgr AFTER INSERT OR DELETE OR UPDATE ON foo_beleg FOR EACH ROW EXECUTE PROCEDURE history_monitor()

foo_esg_modw=# select version();
version
--------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux)
(1 Zeile)

Andreas Kretschmer schrieb:

Quote:
Works for me:
..
PostgreSQL 8.4devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


Reply With Quote
  #17  
Old   
Thomas Guettler
 
Posts: n/a

Default Re: \d mytable should display if trigger is enabled - 10-22-2008 , 05:35 AM



Hi Andreas,

I use 8.2.6. Good to know, that it will be included in the next release (8.4).


foo_esg_modw=# alter table foo_beleg disable trigger foo_beleg_tgr;
ALTER TABLE
foo_esg_modw=# \d foo_beleg
Tabelle »public.foo_beleg«
Spalte | Typ | Attribute
------------------+--------------------------+------------------------------------------------------------
id | integer | not null default nextval('foo_beleg_id_seq'::regclass)
...
Indexe:
...
Trigger:
foo_beleg_tgr AFTER INSERT OR DELETE OR UPDATE ON foo_beleg FOR EACH ROW EXECUTE PROCEDURE history_monitor()

foo_esg_modw=# select version();
version
--------------------------------------------------------------------------------------------
PostgreSQL 8.2.6 on x86_64-unknown-linux-gnu, compiled by GCC gcc (GCC) 4.2.1 (SUSE Linux)
(1 Zeile)

Andreas Kretschmer schrieb:

Quote:
Works for me:
..
PostgreSQL 8.4devel on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.3 (Ubuntu 4.2.3-2ubuntu7)

--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.