pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Ericson Smith <esconsult1@gmail.com>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Triggers and Full Text Search *
Date: Tue, 21 Apr 2020 11:12:28 -0700
Message-ID: <e98c2249-6767-4f21-511a-2c394ee8d768@aklaver.com> (raw)
In-Reply-To: <CAHRXdaqv+=S7u4WrvNOtFZiUbap3WAjM1bge82_h+y+DWRc-Rw@mail.gmail.com>
References: <CAKd6oBwKQ1R-Nie7+5WjwpjRjqym-cZEA73Z7bNF=vnQ5GqTog@mail.gmail.com>
	<VisenaEmail.3b.44e2a03bac7f4a2f.1719dcb2e65@tc7-visena>
	<CAHRXdaqv+=S7u4WrvNOtFZiUbap3WAjM1bge82_h+y+DWRc-Rw@mail.gmail.com>

On 4/21/20 11:04 AM, Ericson Smith wrote:
> I think COPY bypasses the triggers.

No:

https://www.postgresql.org/docs/12/sql-copy.html

"COPY FROM will invoke any triggers and check constraints on the 
destination table. However, it will not invoke rules."

> 
> Best Regards
> - Ericson Smith
> +1 876-375-9857 (whatsapp)
> +1 646-483-3420 (sms)
> 
> 
> 
> On Wed, Apr 22, 2020 at 12:32 AM Andreas Joseph Krogh 
> <andreas@visena.com <mailto:andreas@visena.com>> wrote:
> 
>     På tirsdag 21. april 2020 kl. 19:24:10, skrev Malik Rumi
>     <malik.a.rumi@gmail.com <mailto:malik.a.rumi@gmail.com>>:
> 
>         [...]
> 
>         I am not (yet) posting the trigger code because this post is
>         long already, and if your answers are 1) yes, 2) no and 3)
>         triggers often work / fail like this, then there’s no point and
>         we can wrap this up. But if not, I will happily post what I
>         have. Thank you.
> 
>     This is too much prose for the regular programmer, show us the code,
>     and point out what doesn't work for you, then we can help:-)
>     --
>     Andreas Joseph Krogh
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (8+ messages)  latest in thread

Message-ID: <e98c2249-6767-4f21-511a-2c394ee8d768@aklaver.com>
Permalink:  ../e98c2249-6767-4f21-511a-2c394ee8d768@aklaver.com/
Also on:    postgresql.org/message-id/e98c2249-6767-4f21-511a-2c394ee8d768@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, esconsult1@gmail.com, andreas@visena.com
  Subject: Re: Triggers and Full Text Search *
  In-Reply-To: <e98c2249-6767-4f21-511a-2c394ee8d768@aklaver.com>
  References: <CAKd6oBwKQ1R-Nie7+5WjwpjRjqym-cZEA73Z7bNF=vnQ5GqTog@mail.gmail.com> <VisenaEmail.3b.44e2a03bac7f4a2f.1719dcb2e65@tc7-visena> <CAHRXdaqv+=S7u4WrvNOtFZiUbap3WAjM1bge82_h+y+DWRc-Rw@mail.gmail.com> <e98c2249-6767-4f21-511a-2c394ee8d768@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox