1. 22 Aug, 2002 13 commits
    • Bruce Momjian's avatar
      Fix for documention: · 090884be
      Bruce Momjian authored
      >>" It's also possible to select no escape character by writing ESCAPE ''.
      >>In this case there is no way to turn off the special meaning of
      >>underscore and percent signs in the pattern."
      
      Joe Conway
      090884be
    • Bruce Momjian's avatar
      This patch should fix the problem. Doesn't include my previous patch · d86dee3e
      Bruce Momjian authored
      for repeat(). Again, somewhat off-the-cuff, so I might have missed
      something...
      
      test=# select lpad('xxxxx',1431655765,'yyyyyyyyyyyyyyyy');
      ERROR:  Requested length too large
      test=# select rpad('xxxxx',1431655765,'yyyyyyyyyyyyyyyy');
      ERROR:  Requested length too large
      
      (That's on a Unicode DB, haven't tested other encodings but AFAICT
      this fix should still work.)
      
      Neil Conway
      d86dee3e
    • Bruce Momjian's avatar
      repeat() fix: · cbe733d7
      Bruce Momjian authored
      > Neil Conway <neilc@samurai.com> writes:
      > > +   /* Check for integer overflow */
      > > +   if (tlen / slen != count)
      > > +           elog(ERROR, "Requested buffer is too large.");
      >
      > What about slen == 0?
      
      Good point -- that wouldn't cause incorrect results or a security
      problem, but it would reject input that we should really accept.
      
      Revised patch is attached.
      
      Neil Conway
      cbe733d7
    • Bruce Momjian's avatar
      > > I had great difficulty in finding how to change the search path, so here · c76f5aa5
      Bruce Momjian authored
      > > is a patch to add some cross-referencing.
      
      Oliver Elphick
      c76f5aa5
    • Bruce Momjian's avatar
      # Disallow TRUNCATE on tables that are involved in referential · 47b37a6b
      Bruce Momjian authored
      constraints
      
      
      The issue with finding and removing foreign key constraints is no longer
      an issue, so please apply the attached.
      
      It does NOT check for rules or on delete triggers (old style foreign
      keys) as those are difficult to deal with (remove, truncate, re-add).
      
      Rod Taylor
      47b37a6b
    • Bruce Momjian's avatar
      Add: · dac22ee4
      Bruce Momjian authored
      > * Allow bytea to handle LIKE with non-TEXT patterns
      dac22ee4
    • Bruce Momjian's avatar
      As suggested by Tom, this patch restricts the right-hand argument of · a334ae3f
      Bruce Momjian authored
      bytealike to TEXT.
      
      This leaves like_escape_bytea() without anything to do, but I left it in
      place in anticipation of the eventual bytea pattern selectivity
      functions. If there is agreement that this would be the best long term
      solution, I'll take it as a TODO for 7.4.
      
      Joe Conway
      a334ae3f
    • Bruce Momjian's avatar
    • Bruce Momjian's avatar
      Add: · 89260124
      Bruce Momjian authored
      replace(string, from, to)
         -- replaces all occurrences of "from" in "string" to "to"
      split(string, fldsep, column)
         -- splits "string" on "fldsep" and returns "column" number piece
      to_hex(int32_num) & to_hex(int64_num)
         -- takes integer number and returns as hex string
      
      Joe Conway
      89260124
    • Bruce Momjian's avatar
      Remove libpq++ SGML documentation. · f6353c6e
      Bruce Momjian authored
      f6353c6e
    • Bruce Momjian's avatar
    • Marc G. Fournier's avatar
      · da4683fb
      Marc G. Fournier authored
      Okay, libpq++ is moved to GBorg, and all traces of it have been removed
      from the core repository ... I haven't *moved* the libpq++ files out of the
      tree, mainly as we want to keep them in place for past branches ...
      
      Peter, I think I've covered all the files I need, and re-ran autoconf to make
      sure the configure file is in place properly ...
      da4683fb
    • Tom Lane's avatar
      Add a bunch of pseudo-types to replace the behavior formerly associated · b663f344
      Tom Lane authored
      with OPAQUE, as per recent pghackers discussion.  I still want to do some
      more work on the 'cstring' pseudo-type, but I'm going to commit the bulk
      of the changes now before the tree starts shifting under me ...
      b663f344
  2. 21 Aug, 2002 6 commits
  3. 20 Aug, 2002 12 commits
  4. 19 Aug, 2002 7 commits
  5. 18 Aug, 2002 2 commits