1. 12 9月, 2011 1 次提交
    • P
      Remove many -Wcast-qual warnings · 1b81c2fe
      Peter Eisentraut 提交于
      This addresses only those cases that are easy to fix by adding or
      moving a const qualifier or removing an unnecessary cast.  There are
      many more complicated cases remaining.
      1b81c2fe
  2. 02 1月, 2011 1 次提交
  3. 21 9月, 2010 1 次提交
  4. 03 1月, 2010 1 次提交
  5. 02 1月, 2009 1 次提交
  6. 02 1月, 2008 1 次提交
  7. 16 11月, 2007 2 次提交
  8. 25 3月, 2007 1 次提交
  9. 06 1月, 2007 1 次提交
  10. 04 10月, 2006 1 次提交
  11. 22 5月, 2006 1 次提交
    • T
      Change the backend to reject strings containing invalidly-encoded multibyte · c61a2f58
      Tom Lane 提交于
      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
  12. 05 3月, 2006 1 次提交
  13. 27 12月, 2005 1 次提交
  14. 25 12月, 2005 1 次提交
    • B
      I have added these macros to c.h: · 261114a2
      Bruce Momjian 提交于
              #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
  15. 29 10月, 2005 1 次提交
  16. 15 10月, 2005 1 次提交
  17. 25 9月, 2005 1 次提交
  18. 15 6月, 2005 1 次提交
  19. 07 3月, 2005 1 次提交
  20. 01 1月, 2005 1 次提交
    • P
      · 2ff50159
      PostgreSQL Daemon 提交于
      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
  21. 29 8月, 2004 1 次提交
  22. 30 11月, 2003 1 次提交
    • P
      · 969685ad
      PostgreSQL Daemon 提交于
      $Header: -> $PostgreSQL Changes ...
      969685ad
  23. 04 8月, 2003 2 次提交
  24. 26 7月, 2003 1 次提交
  25. 12 4月, 2003 1 次提交
    • T
      Fix encoding conversion function bug. · 35a09959
      Tatsuo Ishii 提交于
      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
  26. 11 3月, 2003 1 次提交
  27. 05 9月, 2002 1 次提交
  28. 14 8月, 2002 1 次提交
  29. 19 7月, 2002 2 次提交
  30. 18 7月, 2002 1 次提交
    • T
      I have committed many support files for CREATE CONVERSION. Default · eb335a03
      Tatsuo Ishii 提交于
      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
  31. 13 6月, 2002 1 次提交
  32. 06 3月, 2002 1 次提交
    • B
      Change made to elog: · 92288a1c
      Bruce Momjian 提交于
      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
  33. 05 3月, 2002 1 次提交
    • B
      > Tatsuo Ishii wrote: · a8bd7e1c
      Bruce Momjian 提交于
      > > > > 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
  34. 06 11月, 2001 1 次提交
  35. 28 10月, 2001 1 次提交
  36. 25 10月, 2001 1 次提交
  37. 16 10月, 2001 1 次提交
    • T
      Ok, here is the modified encoding table (column1 is the standard name, · cfe01796
      Tatsuo Ishii 提交于
      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