1. 10 2月, 2006 4 次提交
    • B
      Allow psql multi-line column values to align in the proper columns · c01999a5
      Bruce Momjian 提交于
        If the second output column value is 'a\nb', the 'b' should appear
        in the second display column, rather than the first column as it
        does now.
      
      Change libpq's PQdsplen() to return more useful values.
      
      > Note: this changes the PQdsplen function, it can now return zero or
      > minus one which was not possible before. It doesn't appear anyone is
      > actually using the functions other than psql but it is a change. The
      > functions are not actually documentated anywhere so it's not like we're
      > breaking a defined interface. The new semantics follow the Unicode
      > standard.
      
      BACKWARD COMPATIBLE CHANGE.
      
      The only user-visible change I saw in the regression tests is that a
      SELECT * on a table where all the columns have been dropped doesn't
      return a blank line like before.  This seems like a step forward.
      
      Martijn van Oosterhout
      c01999a5
    • B
      This fixes pg_dump so that when using the '-O' no owners option it does · 593763c0
      Bruce Momjian 提交于
      not print the owner name in the object comment.
      
      eg:
      
      --
      -- Name: actor; Type: TABLE; Schema: public; Owner: chriskl; Tablespace:
      --
      
      Becomes:
      
      --
      -- Name: actor; Type: TABLE; Schema: public; Owner: -; Tablespace:
      --
      
      This makes it far easier to do 'user independent' dumps.  Especially for
      distribution to third parties.
      
      Christopher Kings-Lynne
      593763c0
    • T
      ff2cc83f
    • T
      1 Fix bug with very short word: prefix and suffix might be overlapped, · 46a25ce6
      Teodor Sigaev 提交于
        sorry but fix can't be applyed to previous version: it's require
        refill tsvector...
      2 Small optimize of load time for huge dictionaries
      3 use palloc instead of malloc during load dict file
      46a25ce6
  2. 09 2月, 2006 4 次提交
  3. 08 2月, 2006 4 次提交
    • M
      Added just another test case. · e3740d2c
      Michael Meskes 提交于
       Fixed missing continuation line character.
       Do not translate $-quoting.
       Bit field notation belongs to a variable not a variable list.
       Output of line number only done by one function.
      e3740d2c
    • T
      Remove ancient hack to work around a peculiarity of libcurses on HPUX. · 115e5dd5
      Tom Lane 提交于
      Since we now use libtermcap in preference to libcurses, no need for hack
      anymore.
      115e5dd5
    • B
      Source code cleanup. · ad177f10
      Bruce Momjian 提交于
      ad177f10
    • B
      I think that NUMERIC datatype has a problem in the performance that · e7a9ccdb
      Bruce Momjian 提交于
      the format on Tuple(Numeric) and the format to calculate(NumericVar)
      are different. I understood that to reduce I/O. However, when many
      comparisons or calculations of NUMERIC are executed, the conversion
      of Numeric and NumericVar becomes a bottleneck.
      
      It is profile result when "create index on NUMERIC column" is executed:
      
        %   cumulative   self              self     total
       time   seconds   seconds    calls   s/call   s/call  name
       17.61     10.27    10.27 34542006     0.00     0.00  cmp_numerics
       11.90     17.21     6.94 34542006     0.00     0.00  comparetup_index
        7.42     21.54     4.33 71102587     0.00     0.00  AllocSetAlloc
        7.02     25.64     4.09 69084012     0.00     0.00  set_var_from_num
        4.87     28.48     2.84 69084012     0.00     0.00  alloc_var
        4.79     31.27     2.79 142205745     0.00     0.00  AllocSetFreeIndex
        4.55     33.92     2.65 34542004     0.00     0.00  cmp_abs
        4.07     36.30     2.38 71101189     0.00     0.00  AllocSetFree
        3.83     38.53     2.23 69084012     0.00     0.00  free_var
      
      The create index command executes many comparisons of Numeric values.
      Functions other than comparetup_index spent a lot of cycles for
      conversion from Numeric to NumericVar.
      
      An attached patch enables the comparison of Numeric values without
      executing conversion to NumericVar. The execution time of that SQL
      becomes half.
      
      o Test SQL (index_test table has 1,000,000 tuples)
       create index index_test_idx on index_test(num_col);
      
      o Test results (executed the test five times)
      (1)PentiumIII
       original: 39.789s  36.823s  36.737s  37.752s  37.019s
       patched : 18.560s  19.103s  18.830s  18.408s  18.853s
        4.07     36.30     2.38 71101189     0.00     0.00  AllocSetFree
        3.83     38.53     2.23 69084012     0.00     0.00  free_var
      
      The create index command executes many comparisons of Numeric values.
      Functions other than comparetup_index spent a lot of cycles for
      conversion from Numeric to NumericVar.
      
      An attached patch enables the comparison of Numeric values without
      executing conversion to NumericVar. The execution time of that SQL
      becomes half.
      
      o Test SQL (index_test table has 1,000,000 tuples)
       create index index_test_idx on index_test(num_col);
      
      o Test results (executed the test five times)
      (1)PentiumIII
       original: 39.789s  36.823s  36.737s  37.752s  37.019s
       patched : 18.560s  19.103s  18.830s  18.408s  18.853s
      
      (2)Pentium4
       original: 16.349s  14.997s  12.979s  13.169s  12.955s
       patched :  7.005s   6.594s   6.770s   6.740s   6.828s
      
      (3)Itanium2
       original: 15.392s  15.447s  15.350s  15.370s  15.417s
       patched :  7.413s   7.330s   7.334s   7.339s   7.339s
      
      (4)Ultra Sparc
       original: 64.435s  59.336s  59.332s  58.455s  59.781s
       patched : 28.630s  28.666s  28.983s  28.744s  28.595s
      
      Atsushi Ogawa
      e7a9ccdb
  4. 07 2月, 2006 6 次提交
    • B
      Remove question mark: · 15be0b8c
      Bruce Momjian 提交于
      < * %Disallow changing default expression of a SERIAL column?
      > * %Disallow changing default expression of a SERIAL column
      15be0b8c
    • P
      Make --version option print fixed program name. · 4d464076
      Peter Eisentraut 提交于
      4d464076
    • P
      Remove some checks for libraries that no one can identify. We'll see how · 50610ef8
      Peter Eisentraut 提交于
      that works out...
      50610ef8
    • B
      Split up wal-logging items: · 04a942e3
      Bruce Momjian 提交于
      < * Allow control over which tables are WAL-logged [walcontrol]
      > * Allow WAL logging to be turned off for a table, but the table
      >   might be dropped or truncated during crash recovery [walcontrol]
      <   commit.  To do this, only a single writer can modify the table, and
      <   writes must happen only on new pages.  Readers can continue accessing
      <   the table.  This would affect COPY, and perhaps INSERT/UPDATE too.
      <   Another option is to avoid transaction logging entirely and truncate
      <   or drop the table on crash recovery.  These should be implemented
      <   using ALTER TABLE, e.g. ALTER TABLE PERSISTENCE [ DROP | TRUNCATE |
      <   STABLE | DEFAULT ].  Tables using non-default logging should not use
      <   referential integrity with default-logging tables, and tables using
      <   stable logging probably can not have indexes.  One complexity is
      <   the handling of indexes on TOAST tables.
      >   commit.  This should be implemented using ALTER TABLE, e.g. ALTER
      >   TABLE PERSISTENCE [ DROP | TRUNCATE | DEFAULT ].  Tables using
      >   non-default logging should not use referential integrity with
      >   default-logging tables.  A table without dirty buffers during a
      >   crash could perhaps avoid the drop/truncate.
      >
      > * Allow WAL logging to be turned off for a table, but the table would
      >   avoid being truncated/dropped [walcontrol]
      >
      >   To do this, only a single writer can modify the table, and writes
      >   must happen only on new pages so the new pages can be removed during
      >   crash recovery.  Readers can continue accessing the table.  Such
      >   tables probably cannot have indexes.  One complexity is the handling
      >   of indexes on TOAST tables.
      04a942e3
    • B
      Fix HTML alignment in PQprint. · 8bf47f45
      Bruce Momjian 提交于
      Christoph Zwerschke
      8bf47f45
    • T
      Improve the tests to see if ScalarArrayOpExpr is strict. Original coding · 72153c05
      Tom Lane 提交于
      would basically punt in all cases for 'foo <> ALL (array)', which resulted
      in a performance regression for NOT IN compared to what we were doing in
      8.1 and before.  Per report from Pavel Stehule.
      72153c05
  5. 06 2月, 2006 4 次提交
  6. 05 2月, 2006 6 次提交
  7. 04 2月, 2006 8 次提交
  8. 03 2月, 2006 4 次提交