---
title: "Comment by Tushar Barate on \"Real-time data replication in Postgres and Node.js\" | Hashnode"
description: "Can logical replication be implemented to data from root table to partioned leaf table? eg. Root table is publisher and leaf partitioned tbale are subscribers."
url: "https://hashnode.com/posts/real-time-data-replication-in-postgres-and-nodejs/665038a496f3e57f2901039b/comment/6654159ba9e020a6ef383b61"
---

[Discussion](https://hashnode.com/posts/real-time-data-replication-in-postgres-and-nodejs/665038a496f3e57f2901039b)

Comment [Real-time data replication in Postgres and Node.js](https://hashnode.com/posts/real-time-data-replication-in-postgres-and-nodejs/665038a496f3e57f2901039b)

[Tushar Barate](https://hashnode.com/@tushar86)

[May 27, 2024](https://hashnode.com/posts/real-time-data-replication-in-postgres-and-nodejs/665038a496f3e57f2901039b/comment/6654159ba9e020a6ef383b61)

Can logical replication be implemented to data from root table to partioned leaf table?

eg. Root table is publisher and leaf partitioned tbale are subscribers.

Can this possible?

[Manuel Spigolon](https://hashnode.com/@Eomm)

[Jan 20, 2025](https://hashnode.com/posts/real-time-data-replication-in-postgres-and-nodejs/665038a496f3e57f2901039b/comment/6654159ba9e020a6ef383b61#reply-678e6856125256a88ff456b1)

In the `logical replication` your code get the data event and at that stage you can do what you want, such as writing the data back to another table.
