youtube image
From YouTube: Postgres: Partitioning + FDW / foreign partitions

Description

Quick demo of using postgres declarative partitioning in combination with foreign data wrappers to push partitions to a foreign server.

We're tackling one table of the GitLab schema here, creating 8 partitions and distributing them on 2 shards. Shard in this example is a local database, which can also live on a remote cluster.

Part 1: https://www.youtube.com/watch?v=MiZFtM84x44
Part 2: https://www.youtube.com/watch?v=nt4Khi9Gr3o&feature=youtu.be
Part 3: https://youtu.be/ztQtNmSYmEo

https://gitlab.com/gitlab-org/database-team/team-tasks/-/issues/53