Re: Exportaciòn de tablas a CSV

From: Lucas Luengas <lucasluengas(at)gmail(dot)com>
To: Rafael Valenzuela <ravamo(at)gmail(dot)com>
Cc: Lista Postgres ES <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: Exportaciòn de tablas a CSV
Date: 2020-04-02 18:14:37
Message-ID: CAHxAJ-KmdOwm959mJAZEL3RAdEw+u38YE+MjBehPkpUp4MC-Yw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda

Hola.
¿Estás ejecutándolo en un servidor de réplica de base de datos?
En caso afirmativo, prueba con:
hot_standby_feedback = on

Saludos.

On Thu, Apr 2, 2020 at 7:56 PM Rafael Valenzuela <ravamo(at)gmail(dot)com> wrote:

> Buenas :
> Tengo una duda a ver si alguien con mas experiencia que yo me pueda
> arrogar algo de luz. Estoy exportando unas tablas a formato CSV pero al
> ejecutar el copy (*COPY (SELECT * FROM table) TO STDOUT WITH CSV HEADER;*)
> me saca estos errores.
>
> - ERROR: canceling statement due to conflict with recovery
> - DETAIL: User query might have needed to see row versions that must
> be removed.
>
> He aumentado el parametro *statement_timeout* a 1000000 pero aun así me
> falla y lo que mas me sorprende es que el tamaño más grande es de 12 GB
> pero el listado seria este.
>
> - '475 MB'
> - '475 MB'
> - '12 GB'
> - '34 MB'
> - '83 MB'
> - '1312 kB'
> - '128 kB'
> - '68 MB'
> - '63 MB'
>
> Tengo buena conectividad entre el host de la base de datos, no se si es
> posible cambiar alguna settings mas ... la versión que tengo es
>
> PostgreSQL 9.6.16 on x86_64-pc-linux-gnu, compiled by clang version
> 7.0.0-3~ubuntu0.18.04.1 (tags/RELEASE_700/final), 64-bit
>
>
> Saludos
>
> { name : "Rafael Valenzuela",
>
> open source : ["Saiku Admin Console","Anaytical Sport"],
>
> location : "Madrid Spain",
>
> twitter : ["@sowe <https://twitter.com/sowe>"] ,
>
> linkedin : profile
> <http://es.linkedin.com/pub/rafael-valenzuela/19/694/61a/> ,
> phone : 0034649884067
>
> }
>

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Daymel Bonne 2020-04-02 18:17:44 Re: Exportaciòn de tablas a CSV
Previous Message Anthony Sotolongo 2020-04-02 18:13:43 Re: Exportaciòn de tablas a CSV