0

Latest months I am working with PostgreSQL while coming from Microsoft world (SQLServer). My scenario is the following:

  1. Transfer data from different databases into single one (same set of tables and structure)
  2. Perform lightweight transformations (some simple joins, groups, sums and divisions)

The first part of transferring in real-time between PostgreSQL databases can be achieved using Logical Replication, especially in PostgreSQL 15 where you can select subset of columns of the tables.

For the second part there is the Incremental Materialized View extension for PostgreSQL, but this is currently supporting only Inner-Joins and does not work with Logical Replication, while having lot of other limitations. In addition is not yet implemented on Azure Managed Instances...

Any ideas of how we can archive the second goal?

asked Jan 24, 2023 at 8:28

1 Answer 1

0

After a lot investigation around PostgreSQL seems that there no other good choices (with native nature) which can help accomplish the real-time transformation.

What I did in my design was to be able to create three objects within the platform I am developing, one which generates a view for real-time (but slow) and second one calculated tables which are refreshed based on some interval using pg_cron until the Incremental Materialized View extension for PostgreSQL be available also in Azure Managed Instances.

answered Jun 13, 2023 at 17:29

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.