Switch branches/tags
Nothing to show
Commits on Nov 11, 2011
  1. Reorganizing to fit recommended PGXN recommended structure (src/, sql…

    tvondra committed Nov 11, 2011
    …/), added META.json.
  2. Allow checking toast tables. They're just like any other table, as fa…

    hlinnaka committed Nov 11, 2011
    …r as
    our checks are concerned.
  3. Ignore non-btree indexes, when checking all indexes of a table, becau…

    hlinnaka committed Nov 11, 2011
    …se we
    don't know how to check them.
  4. Relax the check on number of attributes, to not throw bogus warnings …

    hlinnaka committed Nov 11, 2011
  5. Change the way from and to block number arguments work.

    hlinnaka committed Nov 11, 2011
    First of all, calling pg_check() without range arguments always threw an
    error if the table was completely empty, with zero blocks.
    Change the block number arguments to 64-bit ints, because that way it's
    easier to pass block numbers larger than 2^31 (otherwise you'd need to pass
    them in as negative int4s, that then get casted internally to unsigned ints).
    Also change the end block number arguments to be exclusive, not inclusive.
    So e.g. if you specify range 5-8, it scans pages 5, 6 and 7, but not 8.
    That generally makes it easier to write programs that call pg_check in a
    loop with increasing page numbers, and also simplifies the logic in
    pg_check itself a little bit, IMHO.
  6. Silence a few compiler warnings like:

    hlinnaka committed Nov 11, 2011
    format ‘%d’ expects type ‘int’, but argument 4 has type ‘long unsigned int’
  7. Change the functions to take the relation name as 'regclass', instead of

    hlinnaka committed Nov 11, 2011
    text. Makes it easier to do things like "SELECT pg_check_table(oid) FROM
    pg_class", and simplifies the code a bit, too.
  8. The lengths in line pointers are not MAXALIGNed. I was getting bogus …

    hlinnaka committed Nov 11, 2011
    from this, when testing on a simple table with a single int4 column, on a
    64-bit machine.
Commits on May 2, 2011
  1. initial commit

    tvondra committed May 2, 2011