pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raschkowski, Michael <michael.raschkowski@auconet-it.com>
To: pgsql-bugs@lists.postgresql.org
Cc: Hartmut Bolten <hartmut.bolten@auconet-it.com>
Cc: Hannes Just <hannes.just@auconet-it.com>
Subject: Trigger does not work after partitioning
Date: Thu, 19 Mar 2020 17:44:59 +0100
Message-ID: <001c01d5fe0d$baddddb0$30999910$@auconet-it.com> (raw)

Hello,

 

I am using Postgres 12.1 on Windows 10.

 

I wrote the script for the partitioning of some tables and have noticed that
some triggers do not work after partitioning. In attached example, you can
see that the table test1 gets a trigger that sets the field instancenbr to 1
after each insertion.  Nevertheless, the field instancenbr stays to have
NULL-Value.

 

Is it a bug or I have not taken something into account?

 

Thanks in advance!  

 


Viele Grüße / Kind regards,

Dr. Michael Raschkowski 
Software Architect

Auconet GmbH - ein Unternehmen der Beta Systems Gruppe
An den Treptowers 1, 12435 Berlin
Phone: +49 30 254 690-356
Fax: +49 30 254 690-199
Email:  <mailto:michael.raschkowski@auconet-it.com>
michael.raschkowski@auconet-it.com
 <http://www.auconet-it.com/; www.auconet-it.com


Mandatory Information for business emails according to German trade laws /
Pflichtangaben für geschäftliche E-mails gemäß Handelsgesetzbuch:

Auconet GmbH - ein Unternehmen der Beta Systems Gruppe
An den Treptowers 1
12435 Berlin
Germany
Phone: +49-(0)30-254 690-0
Fax: +49-(0))30-254 690-199
 <mailto:info@auconet-it.com> info@auconet-it.com
 <http://www.auconet-it.com/; www.auconet-it.com

Management / Geschäftsführer: Hartmut Bolten, Sebastian Zang
Legal form / Rechtsform: GmbH | Registered office / Sitz: Berlin
Commercial register / Handelsregister: Amtsgericht Charlottenburg HRB 141
887 B
VAT-ID / Ust-ID-Nr.: DE316422231 | Tax No. / St.-Nr.: 30/036/75431
Bank / Bankverbindung: Commerzbank AG, BIC: COBADEFF, IBAN: DE25 1004 0000
0230 9391 00

 

 

Attachments:

  error_part_trigger.sql (application/octet-stream, 928B) download

view thread (2+ messages)  latest in thread

Message-ID: <001c01d5fe0d$baddddb0$30999910$@auconet-it.com>
Permalink:  ../001c01d5fe0d$baddddb0$30999910$@auconet-it.com/
Also on:    postgresql.org/message-id/001c01d5fe0d$baddddb0$30999910$@auconet-it.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-bugs@postgresql.org
  Cc: michael.raschkowski@auconet-it.com, hartmut.bolten@auconet-it.com, hannes.just@auconet-it.com
  Subject: Re: Trigger does not work after partitioning
  In-Reply-To: <001c01d5fe0d$baddddb0$30999910$@auconet-it.com>
  References: <001c01d5fe0d$baddddb0$30999910$@auconet-it.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