Re: [HACKERS] Check that streaming replica received all data after master shutdown

2015-01-15 Thread Sameer Kumar
from that you want this check, I suppose > you're not guaranteed not to have trouble or not trusting the > mechanism itself. > > ​Right! I was coming from the point that if master has shutdown gracefully then you don't really need to worry about ensuring with such checks on St

Re: [HACKERS] Check that streaming replica received all data after master shutdown

2015-01-15 Thread Sameer Kumar
On Wed, Jan 14, 2015 at 2:11 AM, Heikki Linnakangas wrote: > On 01/13/2015 12:11 PM, Vladimir Borodin wrote: > >> >> 05 янв. 2015 г., в 18:15, Vladimir Borodin написал(а): >> >> Hi all. >>> >>> I have a simple script for planned switchover of PostgreSQL (9.3 and >>> 9.4) master to one of its re

Re: [HACKERS] Using pg_rewind for differential backup

2014-12-03 Thread Sameer Kumar
​ > ​This discussion is not really adapted on hackers as pg_rewind is not > included in Postgres core code. Please let's discuss your proposal there.​ ​Got it​. But given the above, can we keep this discussion thread here? Best Regards, *Sameer Kumar | Database Consultant* *ASH

[HACKERS] Using pg_rewind for differential backup

2014-11-27 Thread Sameer Kumar
https://github.com/vmware/pg_rewind Best Regards, *Sameer Kumar | Database Consultant* *ASHNIK PTE. LTD.* 101 Cecil Street, #11-11 Tong Eng Building, Singapore 069533 M: *+65 8110 0350 <%2B65%208110%200350>* T: +65 6438 3504 | www.ashnik.com *[image: icons]* [image: Email patch] <htt

Re: [HACKERS] using rpmbuild with PostgreSQL 9.2.6 source code

2014-01-20 Thread Sameer Kumar
> you need installed devel packages > > > I tried to install these packages (uuid-devel and systemd-unit) but yum can not locate these packages. I tried to install selinux-policy but I found out that selinux-policy 3.7.19 is already installed and is the latest package available in Red Hat repositor

Re: [HACKERS] Changes in Trigger Firing

2013-12-05 Thread Sameer Kumar
One scenario where I can forsee an issue is when someone uses the tablename with-in the trigger function on which the trigger was fired. I am not sure how and what issue might crop up but this will be one of my test cases. -- View this message in context: http://postgresql.1045698.n5.nabble.com

Re: [HACKERS] Changes in Trigger Firing

2013-12-05 Thread Sameer Kumar
I have been finally able to get the right set of files. I going with below approach: 1) Add a new column in pg_trigger called tgiscascaded 2) Change pg_trigger.h for this 3) Made changes in trigger.c to insert this values 4) Corresponding changes made in - reltrigger.h

Re: [HACKERS] Changes in Trigger Firing

2013-12-05 Thread Sameer Kumar
> > > I read somewhere that "the best editor is the > one you master" (1) :) > 1: http://www.postgresql.org/message-id/m2wrs6giyp@hi-media.com > > Thanks, I am using eclipse now. Any comments about the utility of this feature? Or is it just me who thinks this can be useful? I think users/dev

Re: [HACKERS] Changes in Trigger Firing

2013-12-04 Thread Sameer Kumar
> > > > > > CreateTrigStmt is passed to CreateTrigger function as an arguement. I am > > struggling to understand how the values for various members of trigger > are > > set and where [which file] calls CreateTrigStmt. > > > > > > Can someone provide some help on this? > > I think you need better t

[HACKERS] Changes in Trigger Firing

2013-12-03 Thread Sameer Kumar
tmt is passed to CreateTrigger function as an arguement. I am struggling to understand how the values for various members of trigger are set and where [which file] calls CreateTrigStmt. Can someone provide some help on this? Best Regards, *Sameer Kumar | Database Consultant* *ASHNIK PTE. LTD. *

Re: [HACKERS] Re: Using indexes for ORDER BY and PARTITION BY clause in windowing functions

2013-11-18 Thread Sameer Kumar
On Thu, Nov 14, 2013 at 6:51 PM, Kyotaro HORIGUCHI < horiguchi.kyot...@lab.ntt.co.jp> wrote: > Hello, > > > When I read it again and try to relate, I get your point. Actually true, > > hashes must always be performed as last option (if that is what you too > > meant) and if there are few other ope

Re: [HACKERS] [PATCH] Use MAP_HUGETLB where supported (v3)

2013-11-16 Thread Sameer Kumar
I was recently running some tests with huge page tables. I ran them on two different architectures: x86 and PPC64. I saw some discussion going on over here so thought of sharing. I was using 3 Cores, 8GB RAM, 2 LUN for filesystem (1 for dbfiles and 1 for logfiles) for these tests... I had dedicat

Re: [HACKERS] Re: Using indexes for ORDER BY and PARTITION BY clause in windowing functions

2013-11-05 Thread Sameer Kumar
> Hello, > > > > With this index, you will get a different plan like this, > > > > > Exactly my point, can we look at making windowing functions > > smart and make use of available indexes? > > I might have guessed.. > > > > > Does this satisfies your needs? > > > > > Not exactly. If I have missed

Re: [HACKERS] Re: Using indexes for ORDER BY and PARTITION BY clause in windowing functions

2013-10-28 Thread Sameer Kumar
> > > > > Agree that windowing function will return all the rows compared to max > and > > group by returing only max rows per group. But even while arriving at the > > aggregate/sorting windowing function seems to spend more effort than > group > > by/order by. > > (I'll apologise in advance for p

Re: [HACKERS] Re: Using indexes for ORDER BY and PARTITION BY clause in windowing functions

2013-10-23 Thread Sameer Kumar
function. Another thing regarding work_memory, I have generally seen that windowing functions expect more amount of memory for sorting compared to grouping/ordering clauses. On 24 Oct 2013 10:54, "David Johnston" wrote: > Sameer Kumar wrote > > edb=# explain analyze select max(score)

Re: [HACKERS] Using indexes for ORDER BY and PARTITION BY clause in windowing functions

2013-10-23 Thread Sameer Kumar
On Wed, Oct 23, 2013 at 10:58 PM, Tom Lane wrote: > Sameer Kumar writes: > > I am not sure why but my PostgreSQL does not seem to be using indexes for > > ORDER BY clause or PARTITION BY CLAUSE which I use with windowing > function. > > When the entire contents of the

[HACKERS] Using indexes for ORDER BY and PARTITION BY clause in windowing functions

2013-10-23 Thread Sameer Kumar
GROUP BY clauses in a normal sql statement and they seem to use indexes nicely. Is this being already considered for development? Best Regards, *Sameer Kumar | Database Consultant* *ASHNIK PTE. LTD.*