1. 10 Mar, 2005 1 commit
    • Tom Lane's avatar
      Make the behavior of HAVING without GROUP BY conform to the SQL spec. · 595ed2a8
      Tom Lane authored
      Formerly, if such a clause contained no aggregate functions we mistakenly
      treated it as equivalent to WHERE.  Per spec it must cause the query to
      be treated as a grouped query of a single group, the same as appearance
      of aggregate functions would do.  Also, the HAVING filter must execute
      after aggregate function computation even if it itself contains no
      aggregate functions.
      595ed2a8
  2. 26 May, 2003 1 commit
    • Tom Lane's avatar
      Cause CHAR(n) to TEXT or VARCHAR conversion to automatically strip trailing · f45df8c0
      Tom Lane authored
      blanks, in hopes of reducing the surprise factor for newbies.  Remove
      redundant operators for VARCHAR (it depends wholly on TEXT operations now).
      Clean up resolution of ambiguous operators/functions to avoid surprising
      choices for domains: domains are treated as equivalent to their base types
      and binary-coercibility is no longer considered a preference item when
      choosing among multiple operators/functions.  IsBinaryCoercible now correctly
      reflects the notion that you need *only* relabel the type to get from type
      A to type B: that is, a domain is binary-coercible to its base type, but
      not vice versa.  Various marginal cleanup, including merging the essentially
      duplicate resolution code in parse_func.c and parse_oper.c.  Improve opr_sanity
      regression test to understand about binary compatibility (using pg_cast),
      and fix a couple of small errors in the catalogs revealed thereby.
      Restructure "special operator" handling to fetch operators via index opclasses
      rather than hardwiring assumptions about names (cleans up the pattern_ops
      stuff a little).
      f45df8c0
  3. 21 Nov, 2002 1 commit
  4. 26 Jun, 2002 1 commit
    • Bruce Momjian's avatar
      The attached patch fixes some spelling mistakes, makes the · 73ad6ca9
      Bruce Momjian authored
      comments on one of the optimizer functions a lot more
      clear, adds a summary of the recent KSQO discussion to the
      comments in the code, adds regression tests for the bug with
      sequence state Tom fixed recently and another reg. test, and
      removes some PostQuel legacy stuff: ExecAppend -> ExecInsert,
      ExecRetrieve -> ExecSelect, etc.
      
      Error messages remain unchanged until a vote.
      
      Neil Conway
      73ad6ca9
  5. 25 Jun, 2002 2 commits
    • Bruce Momjian's avatar
      Back out cleanup patch. Got old version and needs work. · e2c00704
      Bruce Momjian authored
      Neil Conway
      e2c00704
    • Bruce Momjian's avatar
      The attached patch fixes some spelling mistakes, makes the · ed275aea
      Bruce Momjian authored
      comments on one of the optimizer functions a lot more
      clear, adds a summary of the recent KSQO discussion to the
      comments in the code, adds regression tests for the bug with
      sequence state Tom fixed recently and another reg. test, and
      removes some PostQuel legacy stuff: ExecAppend -> ExecInsert,
      ExecRetrieve -> ExecSelect, etc. This was changed because the
      elog() messages from this routine are user-visible, so we
      should be using the SQL terms.
      
      Neil Conway
      ed275aea
  6. 06 Jan, 2000 1 commit
  7. 02 Sep, 1998 1 commit
    • Bruce Momjian's avatar
      > David Hartwig wrote: · bcc15f15
      Bruce Momjian authored
      >
      > Please apply this HAVING regression patch.
      > > My bad.   It is caused by a known bug having to do with GROUP BY.
      It ain't$
      > > nothing to do with HAVING.  For some reason the bug went away for a
      while, $
      > > script.  It must have, because that is how I created the expected
      file.   :(
      > >
      > > A patch to the regression will be forthcoming.
      >
      bcc15f15
  8. 29 Aug, 1998 1 commit
    • Bruce Momjian's avatar
      · 5a722414
      Bruce Momjian authored
      This patch resolves some regression test failures caused by platform
      dependencies.
      
      David Hartwig
      5a722414
  9. 08 Jul, 1998 1 commit