[GENERAL] Do all Postgres queries touch Shared_Buffers at some point?

2013-12-29 Thread Shiv Sharma
I am puzzled about the extent to which shared_bufferes is used for different queries. Do _all_ queries "touch" shared buffers at some point of their execution? Many of our warehouse queries are seq_scan followed by HASH. I know work_mem is assigned for HASH joins: but does this mean that thes

Re: [GENERAL] PG replication across DataCenters

2013-12-29 Thread Bill Moran
On Tue, 24 Dec 2013 14:39:42 +0800 Sameer Kumar wrote: > > * Cascading replication chains (a really big deal when you want > > multiple slaves in the secondary facility and don't want to hog > > your bandwidth) > > Really? which version of Postgres are we talking about? I think cascaded > r

Re: [GENERAL] Do all Postgres queries touch Shared_Buffers at some point?

2013-12-29 Thread Michael Paquier
On Sun, Dec 29, 2013 at 9:05 PM, Shiv Sharma wrote: > I am puzzled about the extent to which shared_bufferes is used for different > queries. Do _all_ queries "touch" shared buffers at some point of their > execution? > > Many of our warehouse queries are seq_scan followed by HASH. I know > wo

Re: [GENERAL] PG replication across DataCenters

2013-12-29 Thread Sameer Kumar
>> > * Quick and easy movement of the master to any of the database in >> > >> > the cluster without destroying replication. >> > >> > Again, which version? Re-mastering is made simple in v9.3. >> I'm not seeing that in the documentation. In fact, what I'm finding >> seems to suggest the opposi

Re: [GENERAL] PG replication across DataCenters

2013-12-29 Thread Bill Moran
On Mon, 30 Dec 2013 00:15:37 +0800 Sameer Kumar wrote: > >> > * Quick and easy movement of the master to any of the database in > >> > > >> > the cluster without destroying replication. > >> > > >> > Again, which version? Re-mastering is made simple in v9.3. > > >> I'm not seeing that in the d

Re: [GENERAL] PG replication across DataCenters

2013-12-29 Thread Sameer Kumar
> > What I don't see streaming working for is DR drills. I need to, in a > controlled manner, move the entire application to the secondary datacenter, > while keeping all the nodes in sync, make sure everything operates properly > from there (which means allowing database updates), then move it al

Re: [GENERAL] Do all Postgres queries touch Shared_Buffers at some point?

2013-12-29 Thread Shiv Sharma
Thanks. We are on Greenplum GP 4.2 (Postgres 8.2). As per GP suggestions, we have 6 primary/6 mirror instances on each server. The server has 64 G RAM, and shared_buffers is at ...125 MB :-). I suppose the idea is for the OS buffer cache to do the legwork. But still...performance is at least "n

Re: [GENERAL] Replication failed after stalling

2013-12-29 Thread Joe Van Dyk
On Wed, Dec 18, 2013 at 3:39 PM, Sergey Konoplev wrote: > On Wed, Dec 18, 2013 at 11:26 AM, Joe Van Dyk wrote: > > I'm running Postgresql 9.3. I have a streaming replication server. > Someone > > was running a long COPY query (8 hours) on the standby which halted > > replication. The replication

Re: [GENERAL] Replication failed after stalling

2013-12-29 Thread Sergey Konoplev
On Sun, Dec 29, 2013 at 9:56 PM, Joe Van Dyk wrote: > On Wed, Dec 18, 2013 at 3:39 PM, Sergey Konoplev wrote: >> >> On Wed, Dec 18, 2013 at 11:26 AM, Joe Van Dyk wrote: >> > I'm running Postgresql 9.3. I have a streaming replication server. >> > Someone >> > was running a long COPY query (8 hour