Re: Particionar tabla existente PG11

From: Ruben Fitó <r(dot)fito(at)ubiquat(dot)com>
To: Eduardo Arenas <edomax(at)gmail(dot)com>
Cc: pgsql-es-ayuda <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Particionar tabla existente PG11
Date: 2019-08-06 12:56:52
Message-ID: CANiYpQyjVimYi2hcVvbGE0WHvdUFRfwpJaEfxveKpbZPpi=8dA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

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> wrote:

> Rubén, Revisa la documentación oficial
>
> 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>
> 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
>> [image: Ubiquat Technologies, SL]
>> r(dot)fito(at)ubiquat(dot)com <j(dot)catarineu(at)ubiquat(dot)com>
>> 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
[image: Ubiquat Technologies, SL]
r(dot)fito(at)ubiquat(dot)com <j(dot)catarineu(at)ubiquat(dot)com>
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 Eduardo Arenas 2019-08-06 13:23:03 Re: Particionar tabla existente PG11
Previous Message Eduardo Arenas 2019-08-06 10:41:05 Re: Particionar tabla existente PG11