1. 30 7月, 2010 8 次提交
    • S
      Rename asyncCommitLSN to asyncXactLSN to reflect changed role in 9.0. · 5b8bd052
      Simon Riggs 提交于
      Transaction aborts now record their LSN to avoid corner case
      behaviour in SR/HS, hence change of name of variables and functions.
      As pointed out by Fujii Masao. Cosmetic changes only.
      5b8bd052
    • T
    • R
      Avoid using text_to_cstring() in levenshtein functions. · 980341b3
      Robert Haas 提交于
      Operating directly on the underlying varlena saves palloc and memcpy
      overhead, which testing shows to be significant.
      
      Extracted from a larger patch by Alexander Korotkov.
      980341b3
    • T
      Clean up some inconsistencies in the volatility marking of various I/O · aab353a6
      Tom Lane 提交于
      related functions.  Per today's discussion, we will henceforth assume
      that datatype I/O functions are either stable or immutable, never volatile.
      (This implies in particular that domain CHECK constraint expressions shouldn't
      be volatile, since domain_in executes them.)  In turn, functions that execute
      the I/O functions of arbitrary datatypes should always be labeled stable.
      This affects the labeling of array_to_string, which was unsafely marked
      immutable, and record_in, record_out, record_recv, record_send,
      domain_in, domain_recv, which were over-conservatively marked volatile.
      The array I/O functions were already marked stable, which is correct
      per this policy but would have been wrong if we maintained domain_in
      as volatile.
      
      Back-patch to 9.0, along with an earlier fix to correctly mark cash_in
      and cash_out as stable not immutable (since they depend on lc_monetary).
      
      No catversion bump --- the implications of this are not currently
      severe enough to justify a forced initdb.
      aab353a6
    • P
      Fix indentation of verbatim block elements · 66424a28
      Peter Eisentraut 提交于
      Block elements with verbatim formatting (literallayout, programlisting,
      screen, synopsis) should be aligned at column 0 independent of the surrounding
      SGML, because whitespace is significant, and indenting them creates erratic
      whitespace in the output.  The CSS stylesheets already take care of indenting
      the output.
      
      Assorted markup improvements to go along with it.
      66424a28
    • T
      Fix another longstanding problem in copy_relation_data: it was blithely · 984d56b8
      Tom Lane 提交于
      assuming that a local char[] array would be aligned on at least a word
      boundary.  There are architectures on which that is pretty much guaranteed to
      NOT be the case ... and those arches also don't like non-aligned memory
      accesses, meaning that log_newpage() would crash if it ever got invoked.
      Even on Intel-ish machines there's a potential for a large performance penalty
      from doing I/O to an inadequately aligned buffer.  So palloc it instead.
      
      Backpatch to 8.0 --- 7.4 doesn't have this code.
      984d56b8
    • T
      Work around a documentation toolchain problem by replacing the "AIX-fixlevels" · 5b48e2ec
      Tom Lane 提交于
      table with a <variablelist> carrying the same information.  Previously the
      9.0 documentation was failing to build as a US-size PDF file.  It's quite
      obscure what the real problem is or why this avoids it, but we need a hack
      now so we can build docs for beta4.
      
      In passing do a bit of editing in the AIX installation docs, in particular
      remove a long-obsolete claim that the regression tests are likely to fail.
      5b48e2ec
    • R
      Fix possible page corruption by ALTER TABLE .. SET TABLESPACE. · 1a078629
      Robert Haas 提交于
      If a zeroed page is present in the heap, ALTER TABLE .. SET TABLESPACE will
      set the LSN and TLI while copying it, which is wrong, and heap_xlog_newpage()
      will do the same thing during replay, so the corruption propagates to any
      standby.  Note, however, that the bug can't be demonstrated unless archiving
      is enabled, since in that case we skip WAL logging altogether, and the LSN/TLI
      are not set.
      
      Back-patch to 8.0; prior releases do not have tablespaces.
      
      Analysis and patch by Jeff Davis.  Adjustments for back-branches and minor
      wordsmithing by me.
      1a078629
  2. 29 7月, 2010 3 次提交
  3. 28 7月, 2010 7 次提交
  4. 27 7月, 2010 3 次提交
  5. 26 7月, 2010 2 次提交
  6. 25 7月, 2010 4 次提交
  7. 24 7月, 2010 3 次提交
  8. 23 7月, 2010 2 次提交
  9. 22 7月, 2010 4 次提交
    • R
      Add missing function prototype. · bca03b12
      Robert Haas 提交于
      Fujii Masao
      bca03b12
    • R
      4da29da1
    • R
      Add options to force quoting of all identifiers. · ce68df46
      Robert Haas 提交于
      I've added a quote_all_identifiers GUC which affects the behavior
      of the backend, and a --quote-all-identifiers argument to pg_dump
      and pg_dumpall which sets the GUC and also affects the quoting done
      internally by those applications.
      
      Design by Tom Lane; review by Alex Hunsaker; in response to bug #5488
      filed by Hartmut Goebel.
      ce68df46
    • R
      Centralize DML permissions-checking logic. · b8c6c71d
      Robert Haas 提交于
      Remove bespoke code in DoCopy and RI_Initial_Check, which now instead
      fabricate call ExecCheckRTPerms with a manufactured RangeTblEntry.
      This is intended to make it feasible for an enhanced security provider
      to actually make use of ExecutorCheckPerms_hook, but also has the
      advantage that RI_Initial_Check can allow use of the fast-path when
      column-level but not table-level permissions are present.
      
      KaiGai Kohei.  Reviewed (in an earlier version) by Stephen Frost, and by me.
      Some further changes to the comments by me.
      b8c6c71d
  10. 21 7月, 2010 2 次提交
  11. 20 7月, 2010 2 次提交