Re: Particionar tabla existente PG11

From: Eduardo Arenas <edomax(at)gmail(dot)com>
To: Ruben Fitó <r(dot)fito(at)ubiquat(dot)com>
Cc: pgsql-es-ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Particionar tabla existente PG11
Date: 2019-08-06 13:23:03
Message-ID: AD17EBF2-9669-4C2C-90D1-9319B527EF66@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Rubén, OK.

En que versión de PostgreSQL estás?

Saludos

Eduardo

> On Aug 6, 2019, at 08:56, Ruben Fitó <r(dot)fito(at)ubiquat(dot)com> wrote:
>
> Hola Eduardo,
>
> Bueno, a priori no es posible. Hay que hacer una especie de "migración" que es justo lo que quería evitar por tema de tiempo.
>
> Se podría hacer una trampilla creando una nueva tabla particionada y haciendo un attach sobre la tabla actual y crear particiones que no colisionen con la tabla actual.
>
> Pero bueno me lo tengo que mirar con cariño ya que hay otras limitaciones, como las primary key o las foreign key.
>
> Un saludo.
>
> On Tue, 6 Aug 2019 at 12:41, Eduardo Arenas <edomax(at)gmail(dot)com <mailto:edomax(at)gmail(dot)com>> wrote:
> Rubén, Revisa la documentación oficial
>
> https://www.postgresql.org/docs/current/ddl-partitioning.html <https://www.postgresql.org/docs/current/ddl-partitioning.html>
>
> Saludos
>
>
> El mar., 6 de agosto de 2019 2:02 a. m., Ruben Fitó <r(dot)fito(at)ubiquat(dot)com <mailto:r(dot)fito(at)ubiquat(dot)com>> escribió:
> Hola lista,
>
> Cómo puedo particionar una tabla existente?
>
> He "googleado" y veo que hay que crear tabla auxiliar, triggers, etc...
>
> PG11 no tiene alguna forma de hacerlo ? Si lo hay, no he llegado a esa parte de la documentación, jajaj.
>
> Gracias por adelantado.
>
> Saludos
>
>
> --
> Ruben Fitó
> Software Engineer
>
> r(dot)fito(at)ubiquat(dot)com <mailto:j(dot)catarineu(at)ubiquat(dot)com>
> www.ubiquat.com <http://www.ubiquat.com/>
> Tota la informació continguda en aquest document i arxius adjunts és CONFIDENCIAL protegida per llei de secret comercial. Si l'ha rebut per error, si us plau elimini'l i posi's en contacte amb l'emissor.
>
> All information contained in this document and any attachments are CONFIDENTIAL and protected under trade secret laws. If you receive this message by mistake, please delete it and notify it immediately to the sender.
>
>
> --
> Ruben Fitó
> Software Engineer
>
> r(dot)fito(at)ubiquat(dot)com <mailto:j(dot)catarineu(at)ubiquat(dot)com>
> www.ubiquat.com <http://www.ubiquat.com/>
> Tota la informació continguda en aquest document i arxius adjunts és CONFIDENCIAL protegida per llei de secret comercial. Si l'ha rebut per error, si us plau elimini'l i posi's en contacte amb l'emissor.
>
> All information contained in this document and any attachments are CONFIDENTIAL and protected under trade secret laws. If you receive this message by mistake, please delete it and notify it immediately to the sender.

In response to

Responses

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Ruben Fitó 2019-08-06 13:43:42 Re: Particionar tabla existente PG11
Previous Message Ruben Fitó 2019-08-06 12:56:52 Re: Particionar tabla existente PG11