Skip to content
Snippets Groups Projects
  1. Nov 16, 2007
  2. Mar 25, 2007
  3. Jan 05, 2007
  4. Oct 04, 2006
  5. May 21, 2006
    • Tom Lane's avatar
      Change the backend to reject strings containing invalidly-encoded multibyte · c61a2f58
      Tom Lane authored
      characters in all cases.  Formerly we mostly just threw warnings for invalid
      input, and failed to detect it at all if no encoding conversion was required.
      The tighter check is needed to defend against SQL-injection attacks as per
      CVE-2006-2313 (further details will be published after release).  Embedded
      zero (null) bytes will be rejected as well.  The checks are applied during
      input to the backend (receipt from client or COPY IN), so it no longer seems
      necessary to check in textin() and related routines; any string arriving at
      those functions will already have been validated.  Conversion failure
      reporting (for characters with no equivalent in the destination encoding)
      has been cleaned up and made consistent while at it.
      
      Also, fix a few longstanding errors in little-used encoding conversion
      routines: win1251_to_iso, win866_to_iso, euc_tw_to_big5, euc_tw_to_mic,
      mic_to_euc_tw were all broken to varying extents.
      
      Patches by Tatsuo Ishii and Tom Lane.  Thanks to Akio Ishida and Yasuo Ohgaki
      for identifying the security issues.
      c61a2f58
  6. Mar 05, 2006
  7. Dec 26, 2005
  8. Dec 25, 2005
    • Bruce Momjian's avatar
      I have added these macros to c.h: · 261114a2
      Bruce Momjian authored
              #define HIGHBIT                 (0x80)
              #define IS_HIGHBIT_SET(ch)      ((unsigned char)(ch) & HIGHBIT)
      
      and removed CSIGNBIT and mapped it uses to HIGHBIT.  I have also added
      uses for IS_HIGHBIT_SET where appropriate.  This change is
      purely for code clarity.
      261114a2
  9. Oct 29, 2005
  10. Oct 15, 2005
  11. Sep 24, 2005
  12. Jun 15, 2005
  13. Mar 07, 2005
  14. Dec 31, 2004
    • PostgreSQL Daemon's avatar
      · 2ff50159
      PostgreSQL Daemon authored
      Tag appropriate files for rc3
      
      Also performed an initial run through of upgrading our Copyright date to
      extend to 2005 ... first run here was very simple ... change everything
      where: grep 1996-2004 && the word 'Copyright' ... scanned through the
      generated list with 'less' first, and after, to make sure that I only
      picked up the right entries ...
      2ff50159
  15. Aug 29, 2004
  16. Nov 29, 2003
    • PostgreSQL Daemon's avatar
      · 969685ad
      PostgreSQL Daemon authored
      $Header: -> $PostgreSQL Changes ...
      969685ad
  17. Aug 04, 2003
  18. Jul 25, 2003
  19. Apr 12, 2003
    • Tatsuo Ishii's avatar
      Fix encoding conversion function bug. · 35a09959
      Tatsuo Ishii authored
      See following posting for more details.
      
      Subject: Re: [HACKERS] [BUGS] Bug #943: Server-Encoding from EUC_TW to UTF-8 doesn't
      From: Tatsuo Ishii <t-ishii@sra.co.jp>
      To: michael.enke@wincor-nixdorf.com, pgsql-bugs@postgresql.org
      Cc: pgsql-hackers@postgresql.org
      Date: Sat, 12 Apr 2003 10:51:45 +0900 (JST)
      35a09959
  20. Mar 10, 2003
  21. Sep 04, 2002
  22. Aug 14, 2002
  23. Jul 19, 2002
  24. Jul 18, 2002
    • Tatsuo Ishii's avatar
      I have committed many support files for CREATE CONVERSION. Default · eb335a03
      Tatsuo Ishii authored
      conversion procs and conversions are added in initdb. Currently
      supported conversions are:
      
      UTF-8(UNICODE) <--> SQL_ASCII, ISO-8859-1 to 16, EUC_JP, EUC_KR,
      		    EUC_CN, EUC_TW, SJIS, BIG5, GBK, GB18030, UHC,
      		    JOHAB, TCVN
      
      EUC_JP <--> SJIS
      EUC_TW <--> BIG5
      MULE_INTERNAL <--> EUC_JP, SJIS, EUC_TW, BIG5
      
      Note that initial contents of pg_conversion system catalog are created
      in the initdb process. So doing initdb required is ideal, it's
      possible to add them to your databases by hand, however. To accomplish
      this:
      
      psql -f your_postgresql_install_path/share/conversion_create.sql your_database
      
      So I did not bump up the version in cataversion.h.
      
      TODO:
      Add more conversion procs
      Add [CASCADE|RESTRICT] to DROP CONVERSION
      Add tuples to pg_depend
      Add regression tests
      Write docs
      Add SQL99 CONVERT command?
      --
      Tatsuo Ishii
      eb335a03
  25. Jun 13, 2002
  26. Mar 06, 2002
    • Bruce Momjian's avatar
      Change made to elog: · 92288a1c
      Bruce Momjian authored
      o  Change all current CVS messages of NOTICE to WARNING.  We were going
      to do this just before 7.3 beta but it has to be done now, as you will
      see below.
      
      o Change current INFO messages that should be controlled by
      client_min_messages to NOTICE.
      
      o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc.
      to always go to the client.
      
      o Remove INFO from the client_min_messages options and add NOTICE.
      
      Seems we do need three non-ERROR elog levels to handle the various
      behaviors we need for these messages.
      
      Regression passed.
      92288a1c
  27. Mar 05, 2002
    • Bruce Momjian's avatar
      > Tatsuo Ishii wrote: · a8bd7e1c
      Bruce Momjian authored
      > > > > It was made to cope with encoding such as an Asian bloc in 7.2Beta2.
      > > > >
      > > > > Added ServerEncoding
      > > > >         Korean (JOHAB), Thai (WIN874),
      > > > >         Vietnamese (TCVN), Arabic (WIN1256)
      > > > >
      > > > > Added ClientEncoding
      > > > >         Simplified Chinese (GBK), Korean (UHC)
      > > > >
      > > > >
      > > > >
      > http://www.sankyo-unyu.co.jp/Pool/postgresql-7.2b2.newencoding.diff.tar.gz
      > > > > (608K)
      > > >
      > > > Looks good.  I need some people to review this for me.
      > >
      > > For me they look good too. The only missing part is a
      > > documentation. I will ask him to write it up. If he couldn't, I will
      > > do it for him.
      > > > The diff is 3mb
      > > > but appears to address only additions to multibyte.  I have attached a
      > > > list of files it modifies.  Also, look at the sizes of the mb/
      > > > directory.  It is getting large:
      > > >
      > > >   4       ./CVS
      > > >   6       ./Unicode/CVS
      > > >   3433    ./Unicode
      > > >   6197    .
      > >
      > > Yes. We definitely need the on-the-fly encoding addition capability:
      > > i.e. CREATE CHRACTER SET in the future...
      > > --
      > > Tatsuo Ishii
      > >
      > >
      
      Address chainge.
      
      http://www.sankyo-unyu.co.jp/Pool/postgresql-7.2.newencoding.diff.gz
      
      Add PsqlODBC and document ...etc patch.
      
      Eiji Tokuya
      a8bd7e1c
  28. Nov 05, 2001
  29. Oct 28, 2001
  30. Oct 25, 2001
  31. Oct 16, 2001
    • Tatsuo Ishii's avatar
      Ok, here is the modified encoding table (column1 is the standard name, · cfe01796
      Tatsuo Ishii authored
      2 is our "official" name, and 3 is alias). If there's no objection, I
      will change them.
      
      ASCII		SQL_ASCII
      UTF-8		UNICODE		UTF_8
      MULE-INTERNAL	MULE_INTERNAL
      ISO-8859-1	LATIN1		ISO_8859_1
      ISO-8859-2	LATIN2		ISO_8859_2
      ISO-8859-3	LATIN3		ISO_8859_3
      ISO-8859-4	LATIN4		ISO_8859_4
      ISO-8859-5	ISO_8859_5
      ISO-8859-6	ISO_8859_6
      ISO-8859-7	ISO_8859_7
      ISO-8859-8	ISO_8859_8
      ISO-8859-9	LATIN5		ISO_8859_9
      ISO-8859-10	LATIN6		ISO_8859_10
      ISO-8859-13	LATIN7		ISO_8859_13
      ISO-8859-14	LATIN8		ISO_8859_14
      ISO-8859-15	LATIN9		ISO_8859_15
      ISO-8859-16	LATIN10		ISO_8859_16
      cfe01796
  32. Oct 11, 2001
  33. Sep 25, 2001
  34. Sep 22, 2001
  35. Sep 11, 2001
  36. Sep 06, 2001
    • Tatsuo Ishii's avatar
      Commit Karel's patch. · 22776711
      Tatsuo Ishii authored
      -------------------------------------------------------------------
      Subject: Re: [PATCHES] encoding names
      From: Karel Zak <zakkr@zf.jcu.cz>
      To: Peter Eisentraut <peter_e@gmx.net>
      Cc: pgsql-patches <pgsql-patches@postgresql.org>
      Date: Fri, 31 Aug 2001 17:24:38 +0200
      
      On Thu, Aug 30, 2001 at 01:30:40AM +0200, Peter Eisentraut wrote:
      > > 		- convert encoding 'name' to 'id'
      >
      > I thought we decided not to add functions returning "new" names until we
      > know exactly what the new names should be, and pending schema
      
       Ok, the patch not to add functions.
      
      > better
      >
      >     ...(): encoding name too long
      
       Fixed.
      
       I found new bug in command/variable.c in parse_client_encoding(), nobody
      probably never see this error:
      
      if (pg_set_client_encoding(encoding))
      {
      	elog(ERROR, "Conversion between %s and %s is not supported",
                           value, GetDatabaseEncodingName());
      }
      
      because pg_set_client_encoding() returns -1 for error and 0 as true.
      It's fixed too.
      
       IMHO it can be apply.
      
      		Karel
      PS:
      
          * following files are renamed:
      
      src/utils/mb/Unicode/KOI8_to_utf8.map  -->
              src/utils/mb/Unicode/koi8r_to_utf8.map
      
      src/utils/mb/Unicode/WIN_to_utf8.map  -->
              src/utils/mb/Unicode/win1251_to_utf8.map
      
      src/utils/mb/Unicode/utf8_to_KOI8.map -->
              src/utils/mb/Unicode/utf8_to_koi8r.map
      
      src/utils/mb/Unicode/utf8_to_WIN.map -->
              src/utils/mb/Unicode/utf8_to_win1251.map
      
         * new file:
      
      src/utils/mb/encname.c
      
         * removed file:
      
      src/utils/mb/common.c
      
      --
       Karel Zak  <zakkr@zf.jcu.cz>
       http://home.zf.jcu.cz/~zakkr/
      
       C, PostgreSQL, PHP, WWW, http://docs.linux.cz, http://mape.jcu.cz
      22776711
  37. May 28, 2001
Loading