[GENERAL] pg_stat_replication.state: streaming/catchup

2014-04-21 Thread Torsten Förtsch
Hi, just out of curiosity, what's the difference between "streaming" and "catchup" state in pg_stat_replication. According to the documentation this field is "Current WAL sender state". But that does not tell me anything. Thanks, Torsten -- Sent via pgsql-general mailing list (pgsql-general@p

Re: [GENERAL] pg_stat_replication.state: streaming/catchup

2014-04-21 Thread Michael Paquier
On Mon, Apr 21, 2014 at 8:03 PM, Torsten Förtsch wrote: > Hi, > > just out of curiosity, what's the difference between "streaming" and > "catchup" state in pg_stat_replication. > > According to the documentation this field is "Current WAL sender state". > But that does not tell me anything. > When

Re: [GENERAL] pg_stat_replication.state: streaming/catchup

2014-04-21 Thread Torsten Förtsch
On 21/04/14 13:18, Michael Paquier wrote: > When a standby connects for the first time to a primary, it is not yet > synchronized, this is the "catchup" phase. Once the lag between the > standby and the master is reduced to zero for the first time, > replication state changes to "streaming". Thank

Re: [GENERAL] pg_stat_replication.state: streaming/catchup

2014-04-21 Thread Michael Paquier
On Mon, Apr 21, 2014 at 8:34 PM, Torsten Förtsch wrote: > On 21/04/14 13:18, Michael Paquier wrote: > s there a difference in the protocol used in those phases? Maybe the > catchup phase is optimized for bulk throughput? > There is no difference AFAIK, the same replication protocol is used: http:/

Re: [GENERAL] Altering array(composite-types) without breaking code when inserting them and similar questions

2014-04-21 Thread Dorian Hoxha
Maybe the char array link is wrong ? I don't think an array of arrays is good for my case. I'll probably go for json or separate table since it looks it's not possible to use composite-types. On Mon, Apr 21, 2014 at 4:02 AM, Rob Sargentg wrote: > Sorry, I should not have top-posted (Dang iPhon

Re: [GENERAL] Could use some advice on search architecture

2014-04-21 Thread Ron Pasch
I ended up running some tests using 5 million rows of products. I used about 5 properties that a product should always be matched to, and then I used the following in the select; (CASE property1 in (option1, option2, option3, etc) WHEN TRUE THEN 1 ELSE 0 END) + (CASE property2 in (option1, opt

[GENERAL] Make basebackup use low level API and rsync

2014-04-21 Thread wd
hi, I'v try to make a base backup use pg_start_backup, pg_stop_backup and rsync, but failed. After run select pg_start_backup('label') on db server, I run rsync on backup server, and got some errors like 'file has vanished: ', think this should be ok since it's documented in the manual. Then

Re: [GENERAL] Make basebackup use low level API and rsync

2014-04-21 Thread Michael Paquier
On Tue, Apr 22, 2014 at 1:28 PM, wd wrote: > I'v try to make a base backup use pg_start_backup, pg_stop_backup and > rsync, but failed. > > After run select pg_start_backup('label') on db server, I run rsync on > backup server, and got some errors like 'file has vanished: ', think > this shou