1. 15 Nov, 1999 3 commits
    • Tom Lane's avatar
      Clean up possible memory leakage in nodeSubplan · c8c3e07e
      Tom Lane authored
      c8c3e07e
    • Tom Lane's avatar
      Implement subselects in target lists. Also, relax requirement that · f68e11f3
      Tom Lane authored
      subselects can only appear on the righthand side of a binary operator.
      That's still true for quantified predicates like x = ANY (SELECT ...),
      but a subselect that delivers a single result can now appear anywhere
      in an expression.  This is implemented by changing EXPR_SUBLINK sublinks
      to represent just the (SELECT ...) expression, without any 'left hand
      side' or combining operator --- so they're now more like EXISTS_SUBLINK.
      To handle the case of '(x, y, z) = (SELECT ...)', I added a new sublink
      type MULTIEXPR_SUBLINK, which acts just like EXPR_SUBLINK used to.
      But the grammar will only generate one for a multiple-left-hand-side
      row expression.
      f68e11f3
    • Tom Lane's avatar
      Update sanity_check regress test to pass now that pg_index · 1ecb129d
      Tom Lane authored
      and pg_amop have indexes.
      1ecb129d
  2. 14 Nov, 1999 5 commits
  3. 13 Nov, 1999 2 commits
  4. 12 Nov, 1999 2 commits
  5. 11 Nov, 1999 2 commits
    • Bruce Momjian's avatar
      Update for documentation in libpq changes. · 6b99fcf3
      Bruce Momjian authored
      6b99fcf3
    • Bruce Momjian's avatar
      In the spirit of TODO item · 2a24ec6f
      Bruce Momjian authored
      * Add use of 'const' for varibles in source tree
      (which is misspelled, btw.)
      I went through the front-end libpq code and did so. This affects in
      particular the various accessor functions (such as PQdb() and
      PQgetvalue()) as well as, by necessity, the internal helpers they use.
      
      I have been really thorough in that regard, perhaps some people will find
      it annoying that things like
      char * foo = PQgetvalue(res, 0, 0)
      will generate a warning. On the other hand it _should_ generate one. This
      is no real compatibility break, although a few clients will have to be
      fixed to suppress warnings. (Which again would be in the spirit of the
      above TODO.)
      
      In addition I replaced some int's by size_t's and removed some warnings
      (and generated some new ones -- grmpf!). Also I rewrote PQoidStatus (so it
      actually honors the const!) and supplied a new function PQoidValue that
      returns a proper Oid type. This is only front-end stuff, none of the
      communicaton stuff was touched.
      
      
      The psql patch also adds some new consts to honor the new libpq situation,
      as well as fixes a fatal condition that resulted when using the -V
      (--version) option and there is no database listening.
      
      
      So, to summarize, the psql you should definitely put in (with or without
      the libpq). If you think I went too far with the const-mania in libpq, let
      me know and I'll make adjustments. If you approve it, I will also update
      the docs.
      
              -Peter
      
      --
      Peter Eisentraut                  Sernanders vaeg 10:115
      2a24ec6f
  6. 10 Nov, 1999 1 commit
  7. 08 Nov, 1999 1 commit
  8. 07 Nov, 1999 1 commit
  9. 06 Nov, 1999 5 commits
  10. 05 Nov, 1999 11 commits
  11. 04 Nov, 1999 7 commits