Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2057

SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE documentation or implementation error on its arguments.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6, 10.3.1.4
    • 10.3.1.4
    • SQL
    • None
    • Any

    Description

      There seems to be an error on the SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE documentation or the implementation itself when passing the following arguments:

      PURGE_ROWS
      If PURGE_ROWS is set to a non-zero value, then a single pass is made through the table which will purge committed deleted rows from the table.
      <snip>

      DEFRAGMENT_ROWS
      If DEFRAGMENT_ROWS is set to a non-zero value, then a single defragment pass is made which will move existing rows from the end of the table towards the front of the table.
      <snip>

      TRUNCATE_END
      If TRUNCATE_END is set to a non-zero value, then all contiguous pages at the end of the table will be returned to the operating system.
      <snip>

      The implementation only checks if the above arguments are 1s.

      org.apache.derby.iapi.db.OnlineCompress.compressTable(
      schema,
      tablename,
      (purgeRows == 1),
      (defragementRows == 1),
      (truncateEnd == 1));
      ...

      Attachments

        1. derby2057-trunk-diff01.txt
          4 kB
          Yip Ng
        2. derby2057-trunk-diff02.txt
          5 kB
          Yip Ng
        3. derby2057-trunk-stat01.txt
          0.2 kB
          Yip Ng
        4. derby2057-trunk-stat02.txt
          0.3 kB
          Yip Ng

        Activity

          People

            yipng Yip Ng
            yipng Yip Ng
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: