Re: [HACKERS] problem when optimizing the window aggregation

2012-08-21 Thread Tom Lane
Wang, Chaoyong chaoyong.w...@emc.com writes: I used the function datumCopy as following: peraggstate-transValue = datumCopy(peraggstate-tempTransValue, peraggstate-transtypeByVal, peraggstate-transtypeLen); You need to guard that with an is-null check, because datumCopy isn't designed to cope

Re: [HACKERS] problem when optimizing the window aggregation

2012-08-21 Thread Wang, Chaoyong
:47 To: Wang, Chaoyong Cc: pgsql-hackers@postgresql.org Subject: Re: [HACKERS] problem when optimizing the window aggregation Wang, Chaoyong chaoyong.w...@emc.com writes: I used the function datumCopy as following: peraggstate-transValue = datumCopy(peraggstate-tempTransValue, peraggstate