Buenas Hellmuth,

El 12/7/19 a las 07:24, Hellmuth Vargas escribió:
> Hola Alvaro
> 
> Me llama la atención lo que menciona sobre las limitaciones del
> particionamiento y la replicación lógica, no puede indicar a que
> limitaciones se refiere... Estoy también interesado en implementar una
> solución basado en esto... De antemano muchas gracias 

Eso es porque la replicación lógica solo se puede hacer entre tablas
físicas. Tratar de replicar la table raíz de una partición terminará en
un error así:

ERROR:  logical replication target relation "public.mypartitiontable" is
not a table

Dicha restriccion esta en la documentacion de replicación lógica:

https://www.postgresql.org/docs/11/logical-replication-restrictions.html

```
Replication is only possible from base tables to base tables. That is,
the tables on the publication and on the subscription side must be
normal tables, not views, materialized views, partition root tables, or
foreign tables. In the case of partitions, you can therefore replicate a
partition hierarchy one-to-one, but you cannot currently replicate to a
differently partitioned setup. Attempts to replicate tables other than
base tables will result in an error.
```

Saludos,

-- 
Martín Marqués                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services


Reply via email to