I need to install pg_partman v5.2.4

Leandro Silva - KMM 0 Reputation points
2025-05-02T15:16:05.4133333+00:00

Hello,

I need to install pg_partman v5.2.4 in my Postgres database. This link has a step-by-step guide

https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/how-to-use-pg-partman

, but it doesn't provide a way to define the pg_partman version I want.

v5.2.4 supports a varchar column filled with UUIDv7 values.

How can I install this version on my database?

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Adithya Prasad K 1,375 Reputation points Microsoft External Staff Moderator
    2025-05-02T17:14:44.8766667+00:00

    Hi Leandro Silva - KMM
    It looks like you're trying to install pg_partman v5.2.4 for your PostgreSQL database, and you need guidance on specifying that version since the documentation doesn't cover that.

    Here's what you can do:

    1. Check Version Availability: First, confirm that the version you want (5.2.4) is available for your PostgreSQL version. Based on the documentation, pg_partman v5.2.4 is not listed in the Azure PostgreSQL flexible server documentation, as they typically provide a limited set of versions.
    2. Installing the Extension: If you have confirmed that your PostgreSQL version supports pg_partman v5.2.4, you would typically create the extension using:
      
         CREATE EXTENSION pg_partman;
      
      
      However, to specify a version, you would need to have access to the specific binaries for that release, which might not be available on Azure directly.
    3. Manually Installing from Source: If the version isn't available directly, you might need to download the source code from the official pg_partman GitHub, then build it and install it manually on a self-managed PostgreSQL instance.
    4. Using a Different Environment: If Azure doesn't provide the version you need, consider hosting your PostgreSQL on a VM or using another cloud provider where you have more control over the installation of such extensions.
    5. Check Compatibility: Since you mentioned that v5.2.4 supports UUIDv7, double-check the compatibility of the rest of your setup (like the PostgreSQL version) with that feature.

    I hope this gives you a good starting point! If you have any further questions or need more details, feel free to ask.

    Please refer the below document for more information https://github.com/pgpartman/pg_partman/blob/development/doc/pg_partman.md
    https://github.com/pgpartman/pg_partman/releases

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.