1. 21 Nov, 2002 1 commit
  2. 15 Nov, 2002 5 commits
  3. 14 Nov, 2002 1 commit
  4. 08 Nov, 2002 1 commit
    • Tom Lane's avatar
      Add extra_float_digits GUC parameter to allow adjustment of displayed · d2c744aa
      Tom Lane authored
      precision for float4, float8, and geometric types.  Set it in pg_dump
      so that float data can be dumped/reloaded exactly (at least on platforms
      where the float I/O support is properly implemented).  Initial patch by
      Pedro Ferreira, some additional work by Tom Lane.
      d2c744aa
  5. 01 Nov, 2002 1 commit
    • Tom Lane's avatar
      Arrange to compile flex output files as inclusions into other files · cab9437a
      Tom Lane authored
      (usually bison output files), not as standalone files.  This hack
      works around flex's insistence on including <stdio.h> before we are
      able to include postgres.h; postgres.h will already be read before
      the compiler starts to read the flex output file.  Needed for largefile
      support on some platforms.
      cab9437a
  6. 31 Oct, 2002 1 commit
  7. 02 Oct, 2002 1 commit
  8. 22 Sep, 2002 1 commit
  9. 12 Sep, 2002 1 commit
  10. 10 Sep, 2002 1 commit
  11. 04 Sep, 2002 1 commit
  12. 02 Sep, 2002 2 commits
  13. 01 Sep, 2002 1 commit
  14. 30 Aug, 2002 2 commits
    • Tom Lane's avatar
      AUTOCOMMIT mode is now an available backend GUC variable; setting it · 26993b29
      Tom Lane authored
      to false provides more SQL-spec-compliant behavior than we had before.
      I am not sure that setting it false is actually a good idea yet; there
      is a lot of client-side code that will probably be broken by turning
      autocommit off.  But it's a start.
      
      Loosely based on a patch by David Van Wie.
      26993b29
    • Bruce Momjian's avatar
      Complete TODO item: · 63653f7f
      Bruce Momjian authored
      	* Remove wal_files postgresql.conf option because WAL files are
      	  now recycled
      63653f7f
  15. 29 Aug, 2002 3 commits
    • Bruce Momjian's avatar
      This patch reserves the last superuser_reserved_connections slots for · 626eca69
      Bruce Momjian authored
      connections by the superuser only.
      
      This patch replaces the last patch I sent a couple of days ago.
      
      It closes a connection that has not been authorised by a superuser if it would
      leave less than the GUC variable ReservedBackends
      (superuser_reserved_connections in postgres.conf) backend process slots free
      in the SISeg. This differs to the first patch which only reserved the last
      ReservedBackends slots in the procState array. This has made the free slot
      test more expensive due to the use of a lock.
      
      After thinking about a comment on the first patch I've also made it a fatal
      error if the number of reserved slots is not less than the maximum number of
      connections.
      
      Nigel J. Andrews
      626eca69
    • Tom Lane's avatar
      Adjust nodeFunctionscan.c to reset transient memory context between calls · e4186762
      Tom Lane authored
      to the table function, thus preventing memory leakage accumulation across
      calls.  This means that SRFs need to be careful to distinguish permanent
      and local storage; adjust code and documentation accordingly.  Patch by
      Joe Conway, very minor tweaks by Tom Lane.
      e4186762
    • Tom Lane's avatar
      Code review for standalone composite types, query-specified composite · 64505ed5
      Tom Lane authored
      types, SRFs.  Not happy with memory management yet, but I'll commit these
      other changes.
      64505ed5
  16. 26 Aug, 2002 1 commit
    • Tom Lane's avatar
      Modify array operations to include array's element type OID in the · 5cabcfcc
      Tom Lane authored
      array header, and to compute sizing and alignment of array elements
      the same way normal tuple access operations do --- viz, using the
      tupmacs.h macros att_addlength and att_align.  This makes the world
      safe for arrays of cstrings or intervals, and should make it much
      easier to write array-type-polymorphic functions; as examples see
      the cleanups of array_out and contrib/array_iterator.  By Joe Conway
      and Tom Lane.
      5cabcfcc
  17. 18 Aug, 2002 1 commit
  18. 15 Aug, 2002 1 commit
    • Bruce Momjian's avatar
      As discussed on several occasions previously, the new anonymous · 45e25445
      Bruce Momjian authored
      composite type capability makes it possible to create a system view
      based on a table function in a way that is hopefully palatable to
      everyone. The attached patch takes advantage of this, moving
      show_all_settings() from contrib/tablefunc into the backend (renamed
      all_settings(). It is defined as a builtin returning type RECORD. During
      initdb a system view is created to expose the same information presently
      available through SHOW ALL. For example:
      
      test=# select * from pg_settings where name like '%debug%';
                name          | setting
      -----------------------+---------
        debug_assertions      | on
        debug_pretty_print    | off
        debug_print_parse     | off
        debug_print_plan      | off
        debug_print_query     | off
        debug_print_rewritten | off
        wal_debug             | 0
      (7 rows)
      
      
      Additionally during initdb two rules are created which make it possible
      to change settings by updating the system view -- a "virtual table" as
      Tom put it. Here's an example:
      
      Joe Conway
      45e25445
  19. 14 Aug, 2002 2 commits
  20. 12 Aug, 2002 1 commit
    • Tom Lane's avatar
      Change memory-space accounting mechanism in tuplesort.c and tuplestore.c · 77a7e996
      Tom Lane authored
      to make a reasonable attempt at accounting for palloc overhead, not just
      the requested size of each memory chunk.  Since in many scenarios this
      will make for a significant reduction in the amount of space acquired,
      partially compensate by doubling the default value of SORT_MEM to 1Mb.
      Per discussion in pgsql-general around 9-Jun-2002..
      77a7e996
  21. 07 Aug, 2002 1 commit
  22. 31 Jul, 2002 1 commit
    • Tom Lane's avatar
      Instead of having a configure-time DEFAULT_ATTSTATTARGET, store -1 in · ce7565ab
      Tom Lane authored
      attstattarget to indicate 'use the default'.  The default is now a GUC
      variable default_statistics_target, and so may be changed on the fly.  Along
      the way we gain the ability to have pg_dump dump the per-column statistics
      target when it's not the default.  Patch by Neil Conway, with some kibitzing
      from Tom Lane.
      ce7565ab
  23. 30 Jul, 2002 1 commit
    • Bruce Momjian's avatar
      Here are two patches. The guc_and_tablefunc patch addresses the two · 23a8b77d
      Bruce Momjian authored
      changes mentioned above, and also adds a new function to the tablefunc
      API. The tablefunc API change adds the following function:
      
      * Oid foidGetTypeId(Oid foid) - Get a function's typeid given the
      * function Oid. Use this together with TypeGetTupleDesc() to get a
      * TupleDesc which is derived from the function's declared return type.
      
      In the next post I'll send the contrib/tablefunc patch, which
      illustrates the usage of this new function. Also attached is a doc patch
      for this change. The doc patch also adds a function that I failed to
      document previously.
      
      Joe Conway
      23a8b77d
  24. 20 Jul, 2002 3 commits
  25. 18 Jul, 2002 1 commit
    • 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
  26. 13 Jul, 2002 1 commit
  27. 16 Jun, 2002 1 commit
  28. 17 May, 2002 2 commits