2ndQuadrant is now part of EDB

Bringing together some of the world's top PostgreSQL experts.

2ndQuadrant | PostgreSQL
Mission Critical Databases
  • Contact us
  • EN
    • FR
    • IT
    • ES
    • DE
    • PT
  • Support & Services
  • Products
  • Downloads
    • Installers
      • Postgres Installer
      • 2UDA – Unified Data Analytics
    • Whitepapers
      • Business Case for PostgreSQL Support
      • Security Best Practices for PostgreSQL
    • Case Studies
      • Performance Tuning
        • BenchPrep
        • tastyworks
      • Distributed Clusters
        • ClickUp
        • European Space Agency (ESA)
        • Telefónica del Sur
        • Animal Logic
      • Database Administration
        • Agilis Systems
      • Professional Training
        • Met Office
        • London & Partners
      • Database Upgrades
        • Alfred Wegener Institute (AWI)
      • Database Migration
        • International Game Technology (IGT)
        • Healthcare Software Solutions (HSS)
        • Navionics
  • Postgres Learning Center
    • Webinars
      • Upcoming Webinars
      • Webinar Library
    • Whitepapers
      • Business Case for PostgreSQL Support
      • Security Best Practices for PostgreSQL
    • Blog
    • Training
      • Course Catalogue
    • Case Studies
      • Performance Tuning
        • BenchPrep
        • tastyworks
      • Distributed Clusters
        • ClickUp
        • European Space Agency (ESA)
        • Telefónica del Sur
        • Animal Logic
      • Database Administration
        • Agilis Systems
      • Professional Training
        • Met Office
        • London & Partners
      • Database Upgrades
        • Alfred Wegener Institute (AWI)
      • Database Migration
        • International Game Technology (IGT)
        • Healthcare Software Solutions (HSS)
        • Navionics
    • Books
      • PostgreSQL 11 Administration Cookbook
      • PostgreSQL 10 Administration Cookbook
      • PostgreSQL High Availability Cookbook – 2nd Edition
      • PostgreSQL 9 Administration Cookbook – 3rd Edition
      • PostgreSQL Server Programming Cookbook – 2nd Edition
      • PostgreSQL 9 Cookbook – Chinese Edition
    • Videos
    • Events
    • PostgreSQL
      • PostgreSQL – History
      • Who uses PostgreSQL?
      • PostgreSQL FAQ
      • PostgreSQL vs MySQL
      • The Business Case for PostgreSQL
      • Security Information
      • Documentation
  • About Us
    • About 2ndQuadrant
    • 2ndQuadrant’s Passion for PostgreSQL
    • News
    • Careers
    • Team Profile
  • Blog
  • Menu Menu
You are here: Home1 / Blog2 / Webinars3 / Webinar: PostgreSQL Partitioning Roadmap [Follow Up]
Webinar: PostgreSQL Partitioning Roadmap
Bilal Ibrar

Webinar: PostgreSQL Partitioning Roadmap [Follow Up]

July 3, 2020/0 Comments/in Webinars /by Bilal Ibrar

Partitioning is an integral data management strategy for high-performance and high-volume database applications. PostgreSQL provides excellent partitioning support that is constantly evolving. 

In order to explore this topic in detail, 2ndQuadrant arranged a live webinar, “PostgreSQL Partitioning Roadmap”. The session was hosted by Simon Riggs, Founder, and CEO at 2ndQuadrant.

The webinar looked at the past and future development of partitioning in PostgreSQL, in addition to covering the following topics:

  • Partitioning – The Road so Far
  • New Partitioning Performance features in PostgreSQL 12
  • A look ahead at PostgreSQL 13
  • Future plans: Performance, Management, Sharding
  • BDR Autoscale

Those who weren’t able to attend the live webinar can now view the recording here.

Due to limited time, some of the questions were not answered during the live webinar, so answers by the host are provided below:


Question: As Greenplum moves to merge with mainstream Postgres, does the greater PG community see any benefits from features available today in Greenplum?  Will there be a syntax change in the future?

Answer:  If developers of Greenplum or other databases wish to contribute features to PostgreSQL with the appropriate licence, I’m sure many people will be happy.

 

Question: I would like to know if the hash partitioning could help to address the issue of distribution data among partitions?

Answer:  They would, but don’t help much with other aspects that people require from partitioning.

 

Question: Should the number of partitions be proportional to CPU/memory?

Answer:  No.

 

Question: We have a PG12 database that has a 730-partition table where each partition is 1 million rows (growth expected to 5 million in 5 years) that is partitioned by date, and where partitions with past dates are dropped and new empty partitions are added and populated. Partitions are uniformly populated. Performance has been superb since PG12. We are having difficulty scheduling a daily job to perform this maintenance since database backups and other scheduled operations are involved. Since dropping a partition locks the entire table, the backup is stalled, and this is presenting problems. We’re considering truncating the to-be-dropped partition(s) first, then dropping later. Would that help? Could you offer advice?

Answer:  Yes, truncating the partitions and then dropping later will work.

 

Question: Any way to alleviate the AccessExclusiveLock on the parent table for drop/detach? What to do on a busy server?

Answer:  Yes, that is a roadmap item.

 

Question: Does pglogical 2 now support PostgreSQL 12

Answer:  I’m hopeful that it will do in the future, but no hard plans yet.

 

Question: We have timestamps as integers (Unix timestamp) with very uniformly spread data, would it make sense to partition in chunks of a hundred thousand for instance rather than trying to squeeze it into months.

Answer:  Yes, range partitioning as integers could work. Not sure why you would pick one hundred thousand rows though.

 

Question: When partitioning time series data (like in your example), would there be any concerns or benefits with adding an ID column to be used as a primary key?  When partitions and primary keys, PG requires that your primary key be composite and include the column that you are partitioning on.  Is it better to skip primary keys altogether and just use the BRIN index?

Answer: In some cases, yes.

 

Question: The documentation says about partitioning limitations:
“BEFORE ROW triggers, if necessary, must be defined on individual partitions, not the partitioned table.”
If I understand slide 22, we can forget about this limitation in PG13. Correct

Answer: Yes.


To be the first to know about upcoming PostgreSQL webinars by 2ndQuadrant, visit our Webinars page.

For any questions, comments, or feedback, please visit our website or send an email to [email protected].

Tags: PostgreSQL, webinars
Share this entry
  • Share on Facebook
  • Share on Twitter
  • Share on WhatsApp
  • Share on LinkedIn
0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Get in touch with us!

Recent Posts

  • Random Data December 3, 2020
  • Webinar: COMMIT Without Fear – The Beauty of CAMO [Follow Up] November 13, 2020
  • Full-text search since PostgreSQL 8.3 November 5, 2020
  • Random numbers November 3, 2020
  • Webinar: Best Practices for Bulk Data Loading in PostgreSQL [Follow Up] November 2, 2020

Featured External Blogs

Tomas Vondra's Blog

Our Bloggers

  • Simon Riggs
  • Alvaro Herrera
  • Andrew Dunstan
  • Craig Ringer
  • Francesco Canovai
  • Gabriele Bartolini
  • Giulio Calacoci
  • Ian Barwick
  • Marco Nenciarini
  • Mark Wong
  • Pavan Deolasee
  • Petr Jelinek
  • Shaun Thomas
  • Tomas Vondra
  • Umair Shahid

PostgreSQL Cloud

2QLovesPG 2UDA 9.6 backup Barman BDR Business Continuity community conference database DBA development devops disaster recovery greenplum Hot Standby JSON JSONB logical replication monitoring OmniDB open source Orange performance PG12 pgbarman pglogical PG Phriday postgres Postgres-BDR postgres-xl PostgreSQL PostgreSQL 9.6 PostgreSQL10 PostgreSQL11 PostgreSQL 11 PostgreSQL 11 New Features postgresql repmgr Recovery replication security sql wal webinar webinars

Support & Services

24/7 Production Support

Developer Support

Remote DBA for PostgreSQL

PostgreSQL Database Monitoring

PostgreSQL Health Check

PostgreSQL Performance Tuning

Database Security Audit

Upgrade PostgreSQL

PostgreSQL Migration Assessment

Migrate from Oracle to PostgreSQL

Products

HA Postgres Clusters

Postgres-BDR®

2ndQPostgres

pglogical

repmgr

Barman

Postgres Cloud Manager

SQL Firewall

Postgres-XL

OmniDB

Postgres Installer

2UDA

Postgres Learning Center

Introducing Postgres

Blog

Webinars

Books

Videos

Training

Case Studies

Events

About Us

About 2ndQuadrant

What does 2ndQuadrant Mean?

News

Careers 

Team Profile

© 2ndQuadrant Ltd. All rights reserved. | Privacy Policy
  • Twitter
  • LinkedIn
  • Facebook
  • Youtube
  • Mail
Oracle to PostgreSQL – Binary Objects Oracle to PostgreSQL – Binary Objects PG Phriday: It’s the End of the World as We Know it (and Postgres is ...
Scroll to top
×