Best Practices for Managing Schema Changes Dynamically with libpq - Mailing list pgsql-general

From Sasmit Utkarsh
Subject Best Practices for Managing Schema Changes Dynamically with libpq
Date
Msg-id CAM-5MT2gc+=tm5ErdoEyHDef3NzNL2UbAkrykdca9=1VJZi4fg@mail.gmail.com
Whole thread Raw
Responses Re: Best Practices for Managing Schema Changes Dynamically with libpq
Re: Best Practices for Managing Schema Changes Dynamically with libpq
Re: Best Practices for Managing Schema Changes Dynamically with libpq
List pgsql-general
Dear PostgreSQL Community Team,

I am working on a project that uses libpq along with C language to interact with PostgreSQL, and we face challenges with managing schema changes dynamically in production while avoiding downtime. Specifically, we need guidance on handling table structure changes/additions without tightly coupling these changes to application updates.

Current Approach:
Schema changes are deployed first, followed by application updates to align with the new structure.

Challenges:
Ensuring application stability during the transitional phase when the schema and code are not fully in sync.
Handling table structure changes (e.g., adding new columns) dynamically without requiring immediate code changes.

Questions:
Are there recommended best practices for managing such schema changes with libpq?
How can we efficiently handle table additions/updates while keeping the application and database in sync dynamically?

I would appreciate any guidance, patterns, or examples that can help us implement a robust solution.

Thank you for your time and support!

Regards,
Sasmit Utkarsh
+91-7674022625

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Autovacuum and visibility maps
Next
From: Ron Johnson
Date:
Subject: Re: Autovacuum and visibility maps