1. 11 Nov, 2007 1 commit
    • Bruce Momjian's avatar
      Make /contrib install/uninstall script consistent: · 926bbab4
      Bruce Momjian authored
      	remove transactions
      	use create or replace function
      	make formatting consistent
      	set search patch on first line
      
      Add documentation on modifying *.sql to set the search patch, and
      mention that major upgrades should still run the installation scripts.
      
      Some of these issues were spotted by Tom today.
      926bbab4
  2. 30 Sep, 2007 1 commit
    • Tom Lane's avatar
      Properly mark mergeable/hashable equality operators (found by opr_sanity · 47d23471
      Tom Lane authored
      testing).  Combine the formerly independent opclasses for the various
      ISN types into opfamilies.  The latter causes some extra bleating from
      opr_sanity, since the module doesn't provide complete sets of cross-type
      operators, but it's still a good idea because it will give the planner
      more information to work with.  The missing cross-type operators no longer
      pose a risk of unexpected planner errors in 8.3, so there's no need to
      insist on filling them in (and I gather it wouldn't be very sound
      semantically to add them all).
      47d23471
  3. 05 Jun, 2007 1 commit
    • Tom Lane's avatar
      Downgrade implicit casts to text to be assignment-only, except for the ones · 31edbadf
      Tom Lane authored
      from the other string-category types; this eliminates a lot of surprising
      interpretations that the parser could formerly make when there was no directly
      applicable operator.
      
      Create a general mechanism that supports casts to and from the standard string
      types (text,varchar,bpchar) for *every* datatype, by invoking the datatype's
      I/O functions.  These new casts are assignment-only in the to-string direction,
      explicit-only in the other, and therefore should create no surprising behavior.
      Remove a bunch of thereby-obsoleted datatype-specific casting functions.
      
      The "general mechanism" is a new expression node type CoerceViaIO that can
      actually convert between *any* two datatypes if their external text
      representations are compatible.  This is more general than needed for the
      immediate feature, but might be useful in plpgsql or other places in future.
      
      This commit does nothing about the issue that applying the concatenation
      operator || to non-text types will now fail, often with strange error messages
      due to misinterpreting the operator as array concatenation.  Since it often
      (not always) worked before, we should either make it succeed or at least give
      a more user-friendly error; but details are still under debate.
      
      Peter Eisentraut and Tom Lane
      31edbadf
  4. 24 Nov, 2006 1 commit
    • Tom Lane's avatar
      Make contrib/isn pass the opr_sanity sanity checks: add missing · 2822c7c0
      Tom Lane authored
      commutator operators, and mark hash-opclass members as oprcanhash.
      This is a pretty ugly, brute-force solution, but it seems that getting
      rid of all these redundant-looking operators would require some tweaks
      in the core operator-resolution code to behave nicely, and I'm not
      willing to risk that just before RC1.
      2822c7c0
  5. 01 Oct, 2006 1 commit
  6. 10 Sep, 2006 1 commit
  7. 09 Sep, 2006 1 commit