1. 17 1月, 2018 4 次提交
    • A
      43f2fd58
    • H
      Reclaim space when an AO segment is dropped at AO compaction. · 8165e1b1
      Heikki Linnakangas 提交于
      In the first cut of the walreplication work, I left out the part that
      drops a segfile during AO compaction, because there was no
      straightforward native PostgreSQL function to drop just a single segfile.
      However, that leads to a massive disk space leak, as the space freed by
      VACUUM on an AO table is not reclaimed, until the same segment number is
      used again for further insertions, so we clearly must do something about
      that.
      
      Instead of dropping the segfile altogether, like we used to, truncate the
      file to 0 bytes. Mostly because that's more expedient to do, as we have
      the functions to do that and to WAL-log that, whereas code to fully remove
      just a single segfile doesn't exist. But if you squint a bit, you could
      even call that an optimization: it saves the overhead of recreating the
      file again, if you load more data to it later.
      8165e1b1
    • H
      Remove mismerged, dead chunk of code. · 4cdbe0b8
      Heikki Linnakangas 提交于
      Pointed out by Coverity.
      4cdbe0b8
    • H
      Remove unnecessary NULL checks. · f13c334c
      Heikki Linnakangas 提交于
      As Coverity pointed out, 'pelem' has already been dereferenced in the
      function, and hence it can never be NULL here. And indeed it should never
      be NULL.
      
      With 'prule', we explicitly checked for NULL earlier in the function.
      f13c334c
  2. 16 1月, 2018 3 次提交
  3. 15 1月, 2018 1 次提交
    • D
      Update timezone data and management code to match PostgreSQL · ba5cfa93
      Daniel Gustafsson 提交于
      The timezone data in Greenplum are from the base version of
      PostgreSQL that the current version of Greenplum is based on.
      This cause issues since it means we are years behind on tz
      changes that have happened. This pulls in the timezone data
      and code from PostgreSQL 10.1 with as few changes to Greenplum
      as possible to minimize merge conflicts. The goal is to gain
      data rather than features, and for Greenplum for each release
      to be able to stay current with the iana tz database as it is
      imported into upstream PostgreSQL.
      
      This removes a Greenplum specific test for the Yakutsk timezone
      as it was made obsolete by upstream tz commit 1ac038c2c3f25f72.
      ba5cfa93
  4. 13 1月, 2018 32 次提交