1. 16 May, 2020 3 commits
  2. 15 May, 2020 18 commits
  3. 14 May, 2020 17 commits
  4. 13 May, 2020 2 commits
    • Alvaro Herrera's avatar
      Dial back -Wimplicit-fallthrough to level 3 · 17cc133f
      Alvaro Herrera authored
      The additional pain from level 4 is excessive for the gain.
      
      Also revert all the source annotation changes to their original
      wordings, to avoid back-patching pain.
      
      Discussion: https://postgr.es/m/31166.1589378554@sss.pgh.pa.us
      17cc133f
    • Tom Lane's avatar
      Improve management of SLRU statistics collection. · 81ca8686
      Tom Lane authored
      Instead of re-identifying which statistics bucket to use for a given
      SLRU on every counter increment, do it once during shmem initialization.
      This saves a fair number of cycles, and there's no real cost because
      we could not have a bucket assignment that varies over time or across
      backends anyway.
      
      Also, get rid of the ill-considered decision to let pgstat.c pry
      directly into SLRU's shared state; it's cleaner just to have slru.c
      pass the stats bucket number.
      
      In consequence of these changes, there's no longer any need to store
      an SLRU's LWLock tranche info in shared memory, so get rid of that,
      making this a net reduction in shmem consumption.  (That partly
      reverts fe702a7b.)
      
      This is basically code review for 28cac71b, so I also cleaned up
      some comments, removed a dangling extern declaration, fixed some
      things that should be static and/or const, etc.
      
      Discussion: https://postgr.es/m/3618.1589313035@sss.pgh.pa.us
      81ca8686