Re: Rows removed on child table when updating parent partitioned table.

From: Jonathan Strong <jonathanrstrong(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Eduard Català <eduard(dot)catala(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Rows removed on child table when updating parent partitioned table.
Date: 2020-10-01 19:17:59
Message-ID: CAK8Y=HUHZxj1_r3z4k2uOEUFMGYv7WvqAhD-b-v9TKeUpxAAFQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Oct 1, 2020 at 2:02 PM David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:

> The convention on these lists is to inline or bottom-post, please do not
> top-post.
>
> On Thu, Oct 1, 2020 at 10:41 AM Jonathan Strong <jonathanrstrong(at)gmail(dot)com>
> wrote:
>
>> I've been away from coding for several years, but dusting off my chops
>> and getting back up to speed with PostgreSQL (love it!). So please forgive
>> me if my early answers here come off as naive. But my understanding of this
>> suggests that you shouldn't be using "update" on a serial field.
>>
>
> Yes Jonathan, your present understanding is flawed. The OP has provided
> a self-contained simple test case for the problem at hand - which even if
> not "best practice" is indeed valid to do and demonstrates the problem
> quite clearly. Without actually testing it out I would say that this is
> likely indeed an oversight in the partition row movement feature - it
> didn't take into account the ON UPDATE/ON DELETE clause.
>

Understood - thx. I'll watch and learn for a while. Thanks as well for the
list etiquette advice. I'll endeavor to follow convention.

- Jon

In response to

Browse pgsql-general by date

  From Date Subject
Next Message tutiluren 2020-10-01 23:08:13 Re: Can I get some PostgreSQL developer feedback on these five general issues I have with PostgreSQL and its ecosystem?
Previous Message David G. Johnston 2020-10-01 18:01:47 Re: Rows removed on child table when updating parent partitioned table.