1. 23 Aug, 2012 5 commits
  2. 22 Aug, 2012 8 commits
  3. 21 Aug, 2012 6 commits
    • Tom Lane's avatar
      Avoid somewhat-theoretical overflow risks in RecordIsValid(). · 10685ec0
      Tom Lane authored
      This improves on commit 51fed14d by
      eliminating the assumption that we can form <some pointer value> +
      <some offset> without overflow.  The entire point of those tests is that
      we don't trust the offset value, so coding them in a way that could wrap
      around if the buffer happens to be near the top of memory doesn't seem
      sound.  Instead, track the remaining space as a size_t variable and
      compare offsets against that.
      
      Also, improve comment about why we need the extra early check on
      xl_tot_len.
      10685ec0
    • Tom Lane's avatar
      Fix dumping of security_barrier views with circular dependencies. · 0f524ea0
      Tom Lane authored
      If a view has circular dependencies, pg_dump splits it into a CREATE TABLE
      and a CREATE RULE command to break the dependency loop.  However, if the
      view has reloptions, those options cannot be applied in the CREATE TABLE
      command, because views and tables have different allowed reloptions so
      CREATE TABLE would reject them.  Instead apply the reloptions after the
      CREATE RULE, using ALTER VIEW SET.
      0f524ea0
    • Robert Haas's avatar
      Improve C comments in GetSnapshotData. · 4b373e42
      Robert Haas authored
      Move discussion of why our algorithm for taking snapshots in recovery
      to a more appropriate location in the function, and delete incorrect
      mention of taking a lock.
      4b373e42
    • Robert Haas's avatar
      Add a note to the MVCC chapter that some things aren't transactional. · 82ef3d30
      Robert Haas authored
      Craig Ringer, slightly edited by me.
      82ef3d30
    • Peter Eisentraut's avatar
      Teach compiler that ereport(>=ERROR) does not return · 71450d7f
      Peter Eisentraut authored
      When elevel >= ERROR, we add an abort() call to the ereport() macro to
      give the compiler a hint that the ereport() expansion will not return,
      but the abort() isn't actually reached because the longjmp happens in
      errfinish().
      
      Because the effect of ereport() varies with the elevel, we cannot use
      standard compiler attributes such as noreturn for this.
      71450d7f
    • Peter Eisentraut's avatar
      ffdd5a0e
  4. 20 Aug, 2012 5 commits
  5. 19 Aug, 2012 2 commits
  6. 18 Aug, 2012 2 commits
    • Tom Lane's avatar
      Make use of LATERAL in information_schema.sequences view. · c246eb5a
      Tom Lane authored
      It said "XXX: The following could be improved if we had LATERAL" ...
      so let's do that.
      
      No catversion bump since either version of the view works fine.
      c246eb5a
    • Tom Lane's avatar
      Another round of planner fixes for LATERAL. · 084a29c9
      Tom Lane authored
      Formerly, subquery pullup had no need to examine other entries in the range
      table, since they could not contain any references to the subquery being
      pulled up.  That's no longer true with LATERAL, so now we need to be able
      to visit rangetable subexpressions to replace Vars referencing the
      pulled-up subquery.  Also, this means that extract_lateral_references must
      be unsurprised at encountering lateral PlaceHolderVars, since such might be
      created when pulling up a subquery that's underneath an outer join with
      respect to the lateral reference.
      084a29c9
  7. 17 Aug, 2012 3 commits
  8. 16 Aug, 2012 9 commits