Re: Running query without trigger?
От
Charles Clavadetscher
Тема
Re: Running query without trigger?
Дата
Msg-id
00e601d1d9ae$b6040a30$220c1e90$@swisspug.org
Ответ на
Running query without trigger? (hamann.w@t-online.de)
Список
Дерево обсуждения
Running query without trigger? hamann.w@t-online.de
Re: Running query without trigger? "Charles Clavadetscher" <clavadetscher@swisspug.org>
Re: Running query without trigger? Christian Elmerot <ce@one.com>
Re: Running query without trigger? hamann.w@t-online.de
Re: Running query without trigger? hamann.w@t-online.de
Re: Running query without trigger? Berend Tober <btober@computer.org>
Good morning > -----Original Message----- > From: pgsql-general-owner@postgresql.org [mailto:pgsql-general-owner@postgresql.org] On Behalf Of hamann.w@t- > online.de > Sent: Samstag, 9. Juli 2016 08:20 > To: pgsql-general@postgresql.org > Subject: [GENERAL] Running query without trigger? > > > Hi, > > a table is associated with a trigger for normal use. > An admin (someone with ALTER privilege) can disable tthe trigger, run some bulk update, and then re-enable it. This > means, however, that normal user activity has to be locked out. > > There are two possible scenarios: the bulk update would not cause trigger activity at all, because of the values and > columns involved. > or - the bulk update is followed by another bulk transaction that is equivalent to trigger invocations per row. > At least in the first case, running this particular query without triggering the trigger, but normal activity still > going on, would be really great Is there a way to achieve this? In general it helps better if you provide the version of PostgreSQL that you are using. If you have a way to identify the bulk update from a record field, e.g. a timestamp or something like this, you may use WHEN to exclude them from firing the trigger. I am not sure if it is possible to use a condition other than using the fields of the old or new record. https://www.postgresql.org/docs/current/static/sql-createtrigger.html Regards Charles > > Regards > Wolfgang Hamann > > > > > -- > Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-general
В списке pgsql-general по дате отправления