1. 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
  2. 11 10月, 2001 1 次提交
  3. 25 9月, 2001 1 次提交
  4. 22 9月, 2001 1 次提交
  5. 11 9月, 2001 1 次提交
  6. 06 9月, 2001 1 次提交
    • T
      Commit Karel's patch. · 22776711
      Tatsuo Ishii 提交于
      -------------------------------------------------------------------
      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
  7. 28 5月, 2001 1 次提交
  8. 29 4月, 2001 1 次提交
  9. 22 3月, 2001 1 次提交
  10. 11 2月, 2001 1 次提交
  11. 10 2月, 2001 1 次提交
    • T
      Restructure the key include files per recent pghackers discussion: there · d08741ea
      Tom Lane 提交于
      are now separate files "postgres.h" and "postgres_fe.h", which are meant
      to be the primary include files for backend .c files and frontend .c files
      respectively.  By default, only include files meant for frontend use are
      installed into the installation include directory.  There is a new make
      target 'make install-all-headers' that adds the whole content of the
      src/include tree to the installed fileset, for use by people who want to
      develop server-side code without keeping the complete source tree on hand.
      Cleaned up a whole lot of crufty and inconsistent header inclusions.
      d08741ea
  12. 17 11月, 2000 1 次提交
  13. 30 10月, 2000 1 次提交
  14. 27 10月, 2000 1 次提交
  15. 12 10月, 2000 1 次提交
  16. 27 8月, 2000 1 次提交
  17. 28 6月, 2000 1 次提交
    • T
      First phase of memory management rewrite (see backend/utils/mmgr/README · 1aebc361
      Tom Lane 提交于
      for details).  It doesn't really do that much yet, since there are no
      short-term memory contexts in the executor, but the infrastructure is
      in place and long-term contexts are handled reasonably.  A few long-
      standing bugs have been fixed, such as 'VACUUM; anything' in a single
      query string crashing.  Also, out-of-memory is now considered a
      recoverable ERROR, not FATAL.
      Eliminate a large amount of crufty, now-dead code in and around
      memory management.
      Fix problem with holding off SIGTRAP, SIGSEGV, etc in postmaster and
      backend startup.
      1aebc361
  18. 20 5月, 2000 1 次提交
  19. 13 4月, 2000 1 次提交
  20. 13 1月, 2000 1 次提交
  21. 12 7月, 1999 1 次提交
  22. 26 5月, 1999 4 次提交
  23. 26 4月, 1999 1 次提交
  24. 24 3月, 1999 1 次提交
  25. 03 2月, 1999 1 次提交
    • B
      Included patches make some enhancements to the multi-byte support. · a7ad43cd
      Bruce Momjian 提交于
      o allow to use Big5 (a Chinese encoding used in Taiwan) as a client
        encoding. In this case the server side encoding should be EUC_TW
      
      o add EUC_TW and Big5 test cases to the regression and the mb test
        (contributed by Jonah Kuo)
      
      o fix mistake in include/mb/pg_wchar.h. An encoding id for EUC_TW was
        not correct (was 3 and now is 4)
      
      o update documents (doc/README.mb and README.mb.jp)
      
      o update psql helpfile (bin/psql/psqlHelp.h)
      
      --
      Tatsuo Ishii
      t-ishii@sra.co.jp
      a7ad43cd
  26. 14 12月, 1998 1 次提交
  27. 01 9月, 1998 1 次提交
  28. 24 8月, 1998 1 次提交
    • B
      o note that now pg_database has a new attribuite "encoding" even · c0b01461
      Bruce Momjian 提交于
      if MULTIBYTE is not enabled. So be sure to run initdb.
      
      o these patches are made against the latest source tree (after
      Bruce's massive patch, I think) BTW, I noticed that after running
      regression, the oid field of pg_type seems disappeared.
      
      	regression=> select oid from pg_type; ERROR:  attribute
      	'oid' not found
      
      this happens after the constraints test. This occures with/without
      my patches. strange...
      
      o pg_database_mb.h, pg_class_mb.h, pg_attribute_mb.h are no longer
      used, and shoud be removed.
      
      o GetDatabaseInfo() in utils/misc/database.c removed (actually in
      #ifdef 0). seems nobody uses.
      
      t-ishii@sra.co.jp
      c0b01461
  29. 24 7月, 1998 1 次提交
    • M
      · bf00bbb0
      Marc G. Fournier 提交于
      I really hope that I haven't missed anything in this one...
      
      From: t-ishii@sra.co.jp
      
      Attached are patches to enhance the multi-byte support.  (patches are
      against 7/18 snapshot)
      
      * determine encoding at initdb/createdb rather than compile time
      
      Now initdb/createdb has an option to specify the encoding. Also, I
      modified the syntax of CREATE DATABASE to accept encoding option. See
      README.mb for more details.
      
      For this purpose I have added new column "encoding" to pg_database.
      Also pg_attribute and pg_class are changed to catch up the
      modification to pg_database.  Actually I haved added pg_database_mb.h,
      pg_attribute_mb.h and pg_class_mb.h. These are used only when MB is
      enabled. The reason having separate files is I couldn't find a way to
      use ifdef or whatever in those files. I have to admit it looks
      ugly. No way.
      
      * support for PGCLIENTENCODING when issuing COPY command
      
      commands/copy.c modified.
      
      * support for SQL92 syntax "SET NAMES"
      
      See gram.y.
      
      * support for LATIN2-5
      * add UNICODE regression test case
      * new test suite for MB
      
      New directory test/mb added.
      
      * clean up source files
      
      Basic idea is to have MB's own subdirectory for easier maintenance.
      These are include/mb and backend/utils/mb.
      bf00bbb0
  30. 19 7月, 1998 1 次提交
  31. 16 6月, 1998 1 次提交