Re: [HACKERS] gist vacuum seaq access

2014-09-20 Thread Костя Кузнецов
Heikki.I have idea. when i begining vacuum i must create structure like hash table. And the first action i fill this hash table.in code this look like:for( blkno = ..; all pages; blkno++) {  if(! gistPageIsLeaf(blkno)) { for( all tuples in blkno ) { hash[ blkno that is referenced by the

Re: [HACKERS] gist vacuum seaq access

2014-09-12 Thread Heikki Linnakangas
On 09/11/2014 12:16 PM, Костя Кузнецов wrote: After discussion of gist seaq access in vaccum there are 2 issue: Heikki says : Vacuum needs to memorize the current NSN when it begins 1) how i may getting corect NSN. The "current NSN" is just current WAL insert location, so GetXLogInsertRecPtr()

[HACKERS] gist vacuum seaq access

2014-09-11 Thread Костя Кузнецов
After discussion of gist seaq access in vaccum there are 2 issue: Heikki says :Vacuum needs to memorize the current NSN when it begins1) how i may getting corect NSN. Also i must setting F_DELETED flag on empty page and to clean parent from link on deleted_pages2) how i may getting parent of page f