Re: pg12 - migrate tables to partitions structure

Michael Lewis <[email protected]>
Newsgroups gmane.comp.db.postgresql.performance
Message-ID <CAHOFxGpowLyS1gDzc6CMLVzpE2AmoQzxUpFads98aCJxkan7Xg@mail.gmail.com>
Is this being done because it can be, or is it solving a real-life pain
point? Just wondering what the perspective is here.

Much of partitioning strategy seems to me to revolve around how the system
is used, and not just the schema and what is possible. For instance, you
can mimic primary and foreign key behavior with triggers as described here,
and that would bypass some of the restrictions on what can be done.
https://www.depesz.com/2018/10/02/foreign-key-to-partitioned-table/

This would allow you to change out the primary key for a simple index
perhaps, and partition however you want. Just because something can be
done, does not mean it should be.

>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.