Skip to content
Snippets Groups Projects
  1. Jul 27, 2003
  2. May 24, 2003
    • Tom Lane's avatar
      Improve implementation of btrim/ltrim/rtrim: provide a special case for · 11d5c820
      Tom Lane authored
      single-byte encodings, and a direct C implementation of the single-argument
      forms (where spaces are always what gets trimmed).  This is in preparation
      for using rtrim1() as the bpchar-to-text cast operator, but is a useful
      performance improvement even if we decide not to do that.
      11d5c820
  3. Sep 04, 2002
  4. Aug 29, 2002
  5. Aug 22, 2002
    • Bruce Momjian's avatar
      b4f24fed
    • 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
  6. Jun 20, 2002
  7. Jan 08, 2002
  8. Oct 25, 2001
  9. Sep 23, 2001
  10. Sep 22, 2001
  11. Sep 14, 2001
    • Bruce Momjian's avatar
      > Here's a revised patch. Changes: · c1fbf066
      Bruce Momjian authored
      >
      > 1. Now outputs '\\' instead of '\134' when using encode(bytea, 'escape')
      > Note that I ended up leaving \0 as \000 so that there are no ambiguities
      > when decoding something like, for example, \0123.
      >
      > 2. Fixed bug in byteain which allowed input values which were not valid
      > octals (e.g. \789), to be parsed as if they were octals.
      >
      > Joe
      >
      
      Here's rev 2 of the bytea string support patch. Changes:
      
      1. Added missing declaration for MatchBytea function
      2. Added PQescapeBytea to fe-exec.c
      3. Applies cleanly on cvs tip from this afternoon
      
      I'm hoping that someone can review/approve/apply this before beta starts, so
      I guess I'd vote (not that it counts for much) to delay beta a few days :-)
      
      Joe Conway
      c1fbf066
  12. Mar 22, 2001
  13. Dec 08, 2000
  14. Dec 03, 2000
  15. Sep 25, 2000
    • Bruce Momjian's avatar
      the patch include: · ebdfac3b
      Bruce Momjian authored
              - rename ichar() to chr() (discussed with Tom)
      
              - add docs for oracle compatible routines:
      
                      btrim()
                      ascii()
                      chr()
                      repeat()
      
              - fix bug with timezone in to_char()
      
              - all to_char() variants return NULL instead textin("")
                if it's needful.
      
       The contrib/odbc is without changes and contains same routines as main
      tree ... because I not sure how plans are Thomas with this :-)
      
                                              Karel
      ---------------------------------------------------------------------------
      
      This effectively one line patch should fix the fact that
      foreign key definitions in create table were erroring if
      a primary key was defined.  I was using the columns
      list to get the columns of the table for comparison, but
      it got reused as a temporary list inside the primary key
      stuff.
      
      Stephan Szabo
      ebdfac3b
  16. Jul 06, 2000
  17. Jul 04, 2000
    • Jan Wieck's avatar
      TOAST · 57d8080a
      Jan Wieck authored
          WARNING: This is actually broken - we have self-deadlocks
      	         due to concurrent changes in buffer management.
      			 Vadim and me are working on it.
      
      Jan
      57d8080a
  18. Jun 13, 2000
  19. Apr 12, 2000
  20. Apr 07, 2000
    • Thomas G. Lockhart's avatar
      Add transcendental math functions (sine, cosine, etc) · a349733b
      Thomas G. Lockhart authored
      Add a random number generator and seed setter (random(), SET SEED)
      Fix up the interval*float8 math to carry partial months
       into the time field.
      Add float8*interval so we have symmetry in the available math.
      Fix the parser and define.c to accept SQL92 types as field arguments.
      Fix the parser to accept SQL92 types for CREATE TYPE, etc. This is
       necessary to allow...
      Bit/varbit support in contrib/bit cleaned up to compile and load
       cleanly. Still needs some work before final release.
      Implement the "SOME" keyword as a synonym for "ANY" per SQL92.
      Implement ascii(text), ichar(int4), repeat(text,int4) to help
       support the ODBC driver.
      Enable the TRUNCATE() function mapping in the ODBC driver.
      a349733b
  21. Mar 15, 2000
    • Tom Lane's avatar
      Fix busted TRANSLATE() code --- it coredumped due to pfree()'ing the · 77f48853
      Tom Lane authored
      wrong pointer.
      77f48853
    • Thomas G. Lockhart's avatar
      Implement column aliases on views "CREATE VIEW name (collist)". · 64568100
      Thomas G. Lockhart authored
      Implement TIME WITH TIME ZONE type (timetz internal type).
      Remap length() for character strings to CHAR_LENGTH() for SQL92
       and to remove the ambiguity with geometric length() functions.
      Keep length() for character strings for backward compatibility.
      Shrink stored views by removing internal column name list from visible rte.
      Implement min(), max() for time and timetz data types.
      Implement conversion of TIME to INTERVAL.
      Implement abs(), mod(), fac() for the int8 data type.
      Rename some math functions to generic names:
       round(), sqrt(), cbrt(), pow(), etc.
      Rename NUMERIC power() function to pow().
      Fix int2 factorial to calculate result in int4.
      Enhance the Oracle compatibility function translate() to work with string
       arguments (from Edwin Ramirez).
      Modify pg_proc system table to remove OID holes.
      64568100
  22. Jul 15, 1999
  23. Jul 14, 1999
  24. May 26, 1999
  25. Feb 21, 1999
    • Marc G. Fournier's avatar
      · 8c3e8a8a
      Marc G. Fournier authored
      From: Tatsuo Ishii <t-ishii@sra.co.jp>
      
      Ok. I made patches replacing all of "#if FALSE" or "#if 0" to "#ifdef
      NOT_USED" for current. I have tested these patches in that the
      postgres binaries are identical.
      8c3e8a8a
  26. Sep 01, 1998
  27. Aug 11, 1998
    • Bruce Momjian's avatar
      the following patch fixes a bug in the oracle compatibility · f22c6f92
      Bruce Momjian authored
          functions btrim() ltrim() and rtrim().
      
          The error was that the character after the set  was  included
          in the tests (ptr2 pointed to the character after the vardata
          part of set if no match found,  so  comparing  *ptr  or  *end
          against *ptr2 MAY match -> strip).
      
      
      Jan
      
      --
      
      #======================================================================#
      # It's easier to get forgiveness for being wrong than for being
      right. # # Let's break this rule - forgive me.
      # #======================================== jwieck@debis.com (Jan
      Wieck) #
      f22c6f92
  28. Jun 15, 1998
  29. Apr 27, 1998
    • Marc G. Fournier's avatar
      From: t-ishii@sra.co.jp · f554af0a
      Marc G. Fournier authored
      Hi, here are patches I promised (against 6.3.2):
      
      * character_length(), position(), substring() are now aware of
                multi-byte characters
      * add octet_length()
      * add --with-mb option to configure
      * new regression tests for EUC_KR
        (contributed by "Soonmyung. Hong" <hong@lunaris.hanmesoft.co.kr>)
      * add some test cases to the EUC_JP regression test
      * fix problem in regress/regress.sh in case of System V
      * fix toupper(), tolower() to handle 8bit chars
      
      note that:
      
      o  patches for both configure.in and configure are
      included. maybe the one for configure is not necessary.
      
      o pg_proc.h was modified to add octet_length(). I used OIDs
      (1374-1379) for that. Please let me know if these numbers are not
      appropriate.
      f554af0a
  30. Feb 26, 1998
  31. Jan 13, 1998
    • Marc G. Fournier's avatar
      > It seems there is a mistake in substr function: · f0445dcb
      Marc G. Fournier authored
      > then you try get substr, which consists only of last char in string
      > you get all string
      >
      > For example:
      > userbase=> select substr('123456', 6,1) ;
      > substr
      > ------
      > 123456
      > (1 row)
      >
      
      From Edmund Mergl <E.Mergl@bawue.de>
      f0445dcb
  32. Sep 08, 1997
  33. Sep 07, 1997
  34. Jul 29, 1997
  35. May 07, 1997
Loading