Re: PG11: particionado, parallel query y performance

From: Martín Marqués <martin(at)2ndquadrant(dot)com>
To: Hellmuth Vargas <hivs77(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Ruben Fitó <r(dot)fito(at)ubiquat(dot)com>, Lista Postgres ES <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: PG11: particionado, parallel query y performance
Date: 2019-07-14 20:05:26
Message-ID: f9b518c5-a0c5-1d60-7822-62742ce88e75@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

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

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Hellmuth Vargas 2019-07-15 17:24:35 Re: PG11: particionado, parallel query y performance
Previous Message Hellmuth Vargas 2019-07-12 10:24:57 Re: PG11: particionado, parallel query y performance