p ostgresq l b u fg ers
play

P ostgreSQ L B u fg ers Vi k Feari ng PG C onf. EU W arsaw O - PowerPoint PPT Presentation

P ostgreSQ L B u fg ers Vi k Feari ng PG C onf. EU W arsaw O ctober 25, 20 17 V i k Feari n g Change and and to and. i rc: xocol atl Tw i tter: @ pg_ xocol atl P ostgreSQ L B u fg ers B acken d D ata D i


  1. P ostgreSQ L B u fg ers Vi k Feari ng PG C onf. EU W arsaw O ctober 25, 20 17

  2. V i k Feari n g Change “and and” to “and”. i rc: xocol atl Tw i tter: @ pg_ xocol atl

  3. P ostgreSQ L B u fg ers

  4. B acken d

  5. D ata D i rectory d a t a _ d i r e c t o r y

  6. d a t a _ d i r e c t o r y

  7. d a t a _ d i r e c t o r y

  8. P age = B l ock = B u fg er 8 kB B L O C K S Z

  9. Sh ared B u fg ers s h a r e d _ b u f f e r s

  10. d a t a _ d i r e c t o r y

  11. U sag e Cou n t 1 . . 5

  12. Cl ockSw eep

  13. Whups!

  14. W ri te- A h ead Log (W A L) p g _ x l o g

  15. W ri te- A h ead Log (W A L) p g _ w a l

  16. p g _ w a l d a t a _ d i r e c t o r y

  17. W A L B u fg ers w a l _ b u f f e r s

  18. d a t a _ d i r e c t o r y

  19. Whups!

  20. W A L W ri ter w a l _ w r i t e r _ d e l a y

  21. p g _ w a l d a t a _ d i r e c t o r y

  22. B ackgrou n d W ri ter b g w r i t e r _ l r u _ m u l t i p l i e r b g w r i t e r _ l r u _ m a x p a g e s b g w r i t e r _ d e l a y

  23. Ch eckp oi n ts c h e c k p o i n t _ t i m e o u t c h e c k p o i n t _ c o m p l e t i o n _ t a r g e t m i n _ w a l _ s i z e • m a x _ w a l _ s i z e

  24. p g _ w a l d a t a _ d i r e c t o r y

  25. B u fg er R i n gs

  26. Tem p orary Tab l es t e m p _ b u f f e r s t e m p _ t a b l e s p a c e s t e m p _ f i l e _ l i m i t

  27. p g _ w a l d a t a _ d i r e c t o r y

  28. V i e w " p u b l i c . p g _ b u f f e r c a c h e " C o l u m n | T y p e | M o d i f i e r s - - - - - - - - - - - - - - - - - - + - - - - - - - - - - + - - - - - - - - - - - b u f f e r i d | i n t e g e r | r e l f i l e n o d e | o i d | r e l t a b l e s p a c e | o i d | r e l d a t a b a s e | o i d | r e l f o r k n u m b e r | s m a l l i n t | r e l b l o c k n u m b e r | b i g i n t | i s d i r t y | b o o l e a n | u s a g e c o u n t | s m a l l i n t | p i n n i n g _ b a c k e n d s | i n t e g e r |

  29. V i e w " p g _ c a t a l o g . p g _ s t a t _ b g w r i t e r " C o l u m n | T y p e | M o d i f i e r s - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - c h e c k p o i n t s _ t i m e d | b i g i n t | c h e c k p o i n t s _ r e q | b i g i n t | c h e c k p o i n t _ w r i t e _ t i m e | d o u b l e p r e c i s i o n | c h e c k p o i n t _ s y n c _ t i m e | d o u b l e p r e c i s i o n | b u f f e r s _ c h e c k p o i n t | b i g i n t | b u f f e r s _ c l e a n | b i g i n t | m a x w r i t t e n _ c l e a n | b i g i n t | b u f f e r s _ b a c k e n d | b i g i n t | b u f f e r s _ b a c k e n d _ f s y n c | b i g i n t | b u f f e r s _ a l l o c | b i g i n t | s t a t s _ r e s e t | t i m e s t a m p w i t h t i m e z o n e |

  30. S E T t r a c k _ i o _ t i m i n g = o n ; E X P L A I N ( A N A L Y Z E , B U F F E R S )

  31. - > N e s t e d L o o p L e f t J o i n ( c o s t = 3 6 5 7 1 8 . 9 2 . . 9 6 3 3 8 1 6 . 5 7 r o w s = 1 2 7 0 6 3 2 w i d t h = 8 4 ) ( a c t u a l t i m e = 3 1 3 0 5 . 2 1 4 . . 7 5 8 3 3 7 7 3 . 6 7 8 r o w s = 2 1 7 5 6 4 1 l o o p s = 1 ) J o i n F i l t e r : ( u . x = v . y ) R o w s R e m o v e d b y J o i n F i l t e r : 1 8 3 6 3 8 0 1 7 0 9 B u f f e r s : s h a r e d h i t = 6 0 0 3 3 4 8 7 1 2 r e a d = 2 3 7 8 7 4 6 d i r t i e d = 7 9 8 4 I / O T i m i n g s : r e a d = 9 6 1 4 5 4 . 6 5 1

  32. V i e w " p g _ c a t a l o g . p g _ s t a t _ d a t a b a s e " C o l u m n | T y p e | M o d i f i e r s - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - d a t i d | o i d | d a t n a m e | n a m e | n u m b a c k e n d s | i n t e g e r | x a c t _ c o m m i t | b i g i n t | x a c t _ r o l l b a c k | b i g i n t | b l k s _ r e a d | b i g i n t | b l k s _ h i t | b i g i n t | t u p _ r e t u r n e d | b i g i n t | t u p _ f e t c h e d | b i g i n t | t u p _ i n s e r t e d | b i g i n t | t u p _ u p d a t e d | b i g i n t | t u p _ d e l e t e d | b i g i n t | c o n f l i c t s | b i g i n t | t e m p _ f i l e s | b i g i n t | t e m p _ b y t e s | b i g i n t | d e a d l o c k s | b i g i n t | b l k _ r e a d _ t i m e | d o u b l e p r e c i s i o n | b l k _ w r i t e _ t i m e | d o u b l e p r e c i s i o n | s t a t s _ r e s e t | t i m e s t a m p w i t h t i m e z o n e |

  33. V i e w " p g _ c a t a l o g . p g _ s t a t i o _ a l l _ t a b l e s " C o l u m n | T y p e | M o d i f i e r s - - - - - - - - - - - - - - - - - + - - - - - - - - + - - - - - - - - - - - r e l i d | o i d | s c h e m a n a m e | n a m e | r e l n a m e | n a m e | h e a p _ b l k s _ r e a d | b i g i n t | h e a p _ b l k s _ h i t | b i g i n t | i d x _ b l k s _ r e a d | b i g i n t | i d x _ b l k s _ h i t | b i g i n t | t o a s t _ b l k s _ r e a d | b i g i n t | t o a s t _ b l k s _ h i t | b i g i n t | t i d x _ b l k s _ r e a d | b i g i n t | t i d x _ b l k s _ h i t | b i g i n t |

  34. V i e w " p g _ c a t a l o g . p g _ s t a t i o _ a l l _ i n d e x e s " C o l u m n | T y p e | M o d i f i e r s - - - - - - - - - - - - - - - + - - - - - - - - + - - - - - - - - - - - r e l i d | o i d | i n d e x r e l i d | o i d | s c h e m a n a m e | n a m e | r e l n a m e | n a m e | i n d e x r e l n a m e | n a m e | i d x _ b l k s _ r e a d | b i g i n t | i d x _ b l k s _ h i t | b i g i n t |

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend