Re: sequence on daily log partitioned table

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: senor <frio_cervesa(at)hotmail(dot)com>
Cc: "pgsql-general(at)lists" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: sequence on daily log partitioned table
Date: 2025-04-22 05:02:21
Message-ID: CAKFQuwbHvjjrYSKV2JioP-R0HmTtsztMYv_fCV9odyHvMhTqow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Monday, April 21, 2025, senor <frio_cervesa(at)hotmail(dot)com> wrote:
>
> I'm mainly interested in understanding how this works or why it can't
>

Partition routing happens on fully-formed tuples. They thus must be formed
initially using only context, like defaults, attached to the partitioned
table.

You can do what you want if you directly insert into the individual
partitions, using the partitioned table as a read-only interface.

It looks like this:

https://dbfiddle.uk/Xc3cUHSO

David J.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Anton Shepelev 2025-04-22 08:31:30 Re: Cannot turn track_counts on
Previous Message senor 2025-04-22 04:26:10 sequence on daily log partitioned table