Re: [ADMIN] triggers are not shared between parent and child tables?

2012-03-12 Thread Rural Hunter
hmmif you ask me, I would like to suggest add this part in the fisrt step(create the master table) of 5.9.2 of this doc: http://www.postgresql.org/docs/9.1/static/ddl-partitioning.html The doc mentions here that there is no point to define indexes/constraints on parent table. But it didn't m

Re: [ADMIN] triggers are not shared between parent and child tables?

2012-03-12 Thread Kevin Grittner
Rural Hunter wrote: > is it worth mentioning in the doc? Do you have a suggestion for what language you would have found helpful, or which section(s) of the docs should be modified? -Kevin -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscriptio

Re: [ADMIN] triggers are not shared between parent and child tables?

2012-03-12 Thread Rural Hunter
yes, I understand that. but is it worth mentioning in the doc? 于2012年3月12日 22:11:16,Kevin Grittner写到: Rural Hunter wrote: "triggers are not shared between parent and child tables". is it true? Yes. You can use the same trigger *function* for more than one trigger though. -Kevin -- Se

Re: [ADMIN] triggers are not shared between parent and child tables?

2012-03-12 Thread Kevin Grittner
Rural Hunter wrote: > "triggers are not shared between parent and child tables". is it > true? Yes. You can use the same trigger *function* for more than one trigger though. -Kevin -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: ht

[ADMIN] triggers are not shared between parent and child tables?

2012-03-11 Thread Rural Hunter
I implemented table partition recently and found that the tiggers on parent table are not working any more, except the before insert trigger which redirects data to children table. The after insert/update triggers are not working now. I understand the after insert trigger may not working since

Re: [ADMIN] Triggers on system catalog

2011-03-28 Thread Guillaume Lelarge
Le 28/03/2011 15:44, Shridhar Polas a écrit : > [...] > Is there a way to create triggers on system catalog tables like > pg_class, pg_attribute etc...? > No. -- Guillaume http://www.postgresql.fr http://dalibo.com -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make c

[ADMIN] Triggers on system catalog

2011-03-28 Thread Shridhar Polas
Hi, Is there a way to create triggers on system catalog tables like pg_class, pg_attribute etc...? Thanks, Shridhar

Re: [ADMIN] Triggers on Stored Procedures

2010-12-27 Thread Kevin Grittner
Resending because I just noticed that the list was not copied on the rest of the exchange. (Omer, please keep the list copied in any future exchanges, as it tends to make the discussion available on search engines for those who may have similar questions.) Omer wasn't sure about what I was propos

Re: [ADMIN] Triggers on Stored Procedures

2010-12-27 Thread Kevin Grittner
Omer Anson wrote: > First of all, I apologise if I am posting this in the wrong place. Not a bad place to start, I guess. If it gets into the realm of an enhancement request or proposal it might belong on -hackers, but since you're asking about how it might be done now, this is good. > I wo

[ADMIN] Triggers on Stored Procedures

2010-12-27 Thread Omer Anson
Hello. First of all, I apologise if I am posting this in the wrong place. I would like to implement aspect-oriented programming in SQL. To that end, I figured I need a notification method whenever a stored procedure is executed (If possible, with rudimentary filtering). I have seen that this can

Re: [ADMIN] triggers on system tables ?

2009-01-23 Thread Tom Lane
Kevin Kempter writes: > Is it possible to add triggers to system catalog and/or statistics collector > tables ? No. regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailp

[ADMIN] triggers on system tables ?

2009-01-23 Thread Kevin Kempter
Hi All; Is it possible to add triggers to system catalog and/or statistics collector tables ? Thanks in advance -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin

Re: [ADMIN] Triggers & BLOB's

2008-09-12 Thread Alvaro Herrera
kevin kempter wrote: > Hi All; > > Can I put an update/insert/delete trigger on a BLOB (lo_* style) column, > It looks like the trigger should actually live on the data column of the > pg_largeobject table to be effective. Is this correct ? You can't put a trigger in pg_largeobject. Of course,

[ADMIN] Triggers & BLOB's

2008-09-12 Thread kevin kempter
Hi All; Can I put an update/insert/delete trigger on a BLOB (lo_* style) column, It looks like the trigger should actually live on the data column of the pg_largeobject table to be effective. Is this correct ? Thanks in advance... -- Sent via pgsql-admin mailing list (pgsql-admin@postgres

[ADMIN] triggers

2005-11-20 Thread Enzo D'addario
Hi, I originally implemented a number of triggers in our production DB using 'plpgsql' and they have been running flawlessly for many years. It has now become necessary to split up our main DB into a number of separate DB's. My question is: Is it possible for a table insert/update(via trigger)

Re: [ADMIN] triggers

2005-09-08 Thread Chris Browne
[EMAIL PROTECTED] (Kailash Vyas) writes: > hi > I have a query regarding triggers. > On INSERT, UPDATE, DELETE I want to fire a trigger to relect it to another > database on postgres sever. > how can I do this operation. > Thanks in advance, > Kailash Vyas If you wish the trigger to result in som

Re: [ADMIN] triggers

2005-09-08 Thread Stephan Szabo
On Thu, 8 Sep 2005, Kailash Vyas wrote: > hi > > I have a query regarding triggers. > On INSERT, UPDATE, DELETE I want to fire a trigger to relect it to another > database on postgres sever. > how can I do this operation. This is tricky, because you probably want to have the same transactional oc

Re: [ADMIN] triggers

2005-09-08 Thread Guido Barosio
http://www.google.co.uk/search?hl=en&q=TRIGGER+%2B+postgresql+%2B+8&meta=   which actually will guide you to:   http://www.postgresql.org/docs/current/static/sql-createtrigger.html   ..that actually is the pgsql man.   rtfm :)   Best wishes, Guido  On 9/8/05, Kailash Vyas <[EMAIL PROTECTED]> wrote:

[ADMIN] triggers

2005-09-08 Thread Kailash Vyas
hi I have a query regarding triggers. On INSERT, UPDATE, DELETE I want to fire a trigger to relect it to another database on postgres sever. how can I do this operation. Thanks in advance, Kailash Vyas

Re: [ADMIN] triggers to foreign keys

2003-06-12 Thread Tom Lane
Stef <[EMAIL PROTECTED]> writes: > If one has upgraded postgres from 7.1.2 to 7.3.1, > how does one convert all the triggers that represent > 7.1.2 foreign keys to actual foreign keys. The contrib/adddepend module is supposed to help with this (I've not used it myself though).

[ADMIN] triggers to foreign keys

2003-06-12 Thread Stef
If one has upgraded postgres from 7.1.2 to 7.3.1, how does one convert all the triggers that represent 7.1.2 foreign keys to actual foreign keys. What I really want to have, is that when I dump the new upgraded database, that the tables will be dumped with the original "foreign key" syntax as they

[ADMIN] Triggers taking much time to insert data

2003-01-20 Thread shreedhar
Hi All, I have table with almost 3,500 records with 9 fields which is similar structure to Table1. From that I am porting to following structure Table 1. T1f1 integer serial (primary key), T1f2 varchar(100) (unique), T1f3 integer default 0, T1f4 text, T1f5 boolean default 'f', T1f6 boolean defau

[ADMIN] Triggers/Rules?

2002-12-05 Thread Geoff
Guys, I've have a legacy summary table ( monitor_summary ) which represents a count of the number of records in another table ( document_status ). Here are the table definitions. CREATE TABLE monitor_summary ( id SERIAL PRIMARY KEY, -- Internal ID

Re: [ADMIN] Triggers... Questions... Yes.

2002-06-13 Thread Tom Lane
Tim Ellis <[EMAIL PROTECTED]> writes: > Yeh. Good question. I would assume their generator MEANT > (max(autonum,0)+1) supposing that a "ANSI Level 2"-compliant server's > max function might return the second value if the first is NULL. But no > matter how you slice it, that looks syntactically wro

Re: [ADMIN] Triggers... Questions... Yes.

2002-06-13 Thread Tim Ellis
> > I just used Dezign for Databases and created a simple table in what it > > claimed was "ANSI Level 2" compliance with a one-up "autonum" column. > > There is no such animal as "ANSI Level 2" SQL. That explains a lot of things. About this DDL problem and Dezign for Databases both. > > set (

Re: [ADMIN] Triggers... Questions... Yes.

2002-06-13 Thread Tom Lane
Tim Ellis <[EMAIL PROTECTED]> writes: > I just used Dezign for Databases and created a simple table in what it > claimed was "ANSI Level 2" compliance with a one-up "autonum" column. There is no such animal as "ANSI Level 2" SQL. > create trigger transaction_autonum_inc > before insert on tran

Re: [ADMIN] Triggers... Questions... Yes.

2002-06-13 Thread Stephan Szabo
On Thu, 13 Jun 2002, Tim Ellis wrote: > I just used Dezign for Databases and created a simple table in what it > claimed was "ANSI Level 2" compliance with a one-up "autonum" column. > > It spewed forth the following code: > > -- file generated by "dezign for databases" > -- create-date:6/1

[ADMIN] Triggers... Questions... Yes.

2002-06-13 Thread Tim Ellis
I just used Dezign for Databases and created a simple table in what it claimed was "ANSI Level 2" compliance with a one-up "autonum" column. It spewed forth the following code: -- file generated by "dezign for databases" -- create-date:6/13/2002

Re: [ADMIN] Triggers on postgres

2000-02-17 Thread PostgreSQL Server
hello!! If you already have created the triggers functions, the correct description of this is in the file: /postgres/postgresql-6.4.2/contrib/spi/REAME Depending on the type of trigger or integrity to applY , you must create functions only on the administrator account (.

Re: [ADMIN] Triggers on postgres

2000-01-31 Thread Peter Vazsonyi
On Sun, 30 Jan 2000, Mario Simeone wrote: > I'm using PostgreSQL 6.4.2 on SuSE. I' m trying to create a trigger... but there are available 6.5.2 rpm version, and 6.5.3 in source. > postgres says me : Triggers are non implemented yet. These word are also on > page 114 of Users guide. > Postgres d

[ADMIN] Triggers on postgres

2000-01-31 Thread Mario Simeone
I'm using PostgreSQL 6.4.2 on SuSE. I' m trying to create a trigger... but postgres says me : Triggers are non implemented yet. These word are also on page 114 of Users guide. Postgres doesn't support triggers ?

[ADMIN] Triggers

1999-11-26 Thread Mario Simeone
When ?