Re: [GENERAL] wal_retrieve_retry_interval

2017-05-27 Thread Michael Paquier
On Sat, May 27, 2017 at 2:40 PM, Ludovic Vaugeois-Pepin
 wrote:
> Say, with 9.6.2,  a hot_standby fails to connect to a replication slot:
> FATAL:  could not start WAL streaming: ERROR:  replication slot "test3"
> does not exist
> or
> FATAL:  could not connect to the primary server: FATAL:  the database
> system is starting up
>
> Is there a way to reduce the time it takes until the next attempt? I
> assumed, wrongly I think, that this would be wal_retrieve_retry_interval,
> but it seems that it won't make a difference. I tried setting it to 3s, but
> it seems to take 15s still. Here are two log samples:

Could you double-check your configuration? If I set
wal_retrieve_retry_interval to 1s on a standby, I am able to see a
connection attempt from a WAL receiver happening with this interval of
time in the case of repetitive failures.
-- 
Michael


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] COPY: row is too big

2017-05-27 Thread doganmeh
Yes, csvkit is what I decided to go with. Thank you all!



--
View this message in context: 
http://www.postgresql-archive.org/COPY-row-is-too-big-tp5936997p5963559.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


Re: [GENERAL] COPY: row is too big

2017-05-27 Thread doganmeh
Yes, the delimiter was indeed ",". I fixed my original post . Seems I
carelessly copy/pasted from excel. 



--
View this message in context: 
http://www.postgresql-archive.org/COPY-row-is-too-big-tp5936997p5963558.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[GENERAL] wal_retrieve_retry_interval

2017-05-27 Thread Ludovic Vaugeois-Pepin
Hi,

Say, with 9.6.2,  a hot_standby fails to connect to a replication slot:
FATAL:  could not start WAL streaming: ERROR:  replication slot "test3"
does not exist
or
FATAL:  could not connect to the primary server: FATAL:  the database
system is starting up

Is there a way to reduce the time it takes until the next attempt? I
assumed, wrongly I think, that this would be wal_retrieve_retry_interval,
but it seems that it won't make a difference. I tried setting it to 3s, but
it seems to take 15s still. Here are two log samples:

1.

< 2017-05-27 20:12:12.137 CEST > LOG:  consistent recovery state reached at
0/8000328
< 2017-05-27 20:12:12.137 CEST > LOG:  invalid record length at 0/8000328:
wanted 24, got 0
< 2017-05-27 20:12:12.137 CEST > LOG:  database system is ready to accept
read only connections
< 2017-05-27 20:12:12.142 CEST > FATAL:  could not connect to the primary
server: FATAL:  the database system is starting up

< 2017-05-27 20:12:27.208 CEST > LOG:  fetching timeline history file for
timeline 4 from primary server
< 2017-05-27 20:12:27.212 CEST > LOG:  started streaming WAL from primary
at 0/800 on timeline 3
< 2017-05-27 20:12:27.212 CEST > LOG:  replication terminated by primary
server
< 2017-05-27 20:12:27.212 CEST > DETAIL:  End of WAL reached on timeline 3
at 0/8000328.


2.

< 2017-05-26 19:17:48.462 CEST > LOG:  database system was shut down in
recovery at 2017-05-26 19:17:20 CEST
< 2017-05-26 19:17:48.462 CEST > LOG:  entering standby mode
< 2017-05-26 19:17:48.463 CEST > LOG:  consistent recovery state reached at
0/8000398
< 2017-05-26 19:17:48.463 CEST > LOG:  invalid record length at 0/8000398:
wanted 24, got 0
< 2017-05-26 19:17:48.464 CEST > LOG:  database system is ready to accept
read only connections
< 2017-05-26 19:17:48.470 CEST > FATAL:  could not start WAL streaming:
ERROR:  replication slot "test3" does not exist

< 2017-05-26 19:18:03.495 CEST > LOG:  fetching timeline history file for
timeline 4 from primary server
< 2017-05-26 19:18:03.498 CEST > LOG:  started streaming WAL from primary
at 0/800 on timeline 3
< 2017-05-26 19:18:03.498 CEST > LOG:  replication terminated by primary
server
< 2017-05-26 19:18:03.498 CEST > DETAIL:  End of WAL reached on timeline 3
at 0/8000398.



-bash-4.2$ psql
psql (9.6.2)
Type "help" for help.

postgres=# show wal_retrieve_retry_interval;
 wal_retrieve_retry_interval
-
 3s
(1 row)



Thanks

Ludovic