Skip to content
Snippets Groups Projects
  1. Aug 22, 2012
    • 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
  2. Aug 21, 2012
  3. Aug 20, 2012
  4. Aug 19, 2012
  5. Aug 18, 2012
    • 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
  6. Aug 17, 2012
  7. Aug 16, 2012
Loading