1. 06 11月, 2005 2 次提交
  2. 05 11月, 2005 2 次提交
    • T
      Repair an error introduced by log_line_prefix patch: it is not acceptable · 48052de7
      Tom Lane 提交于
      to assume that the string pointer passed to set_ps_display is good forever.
      There's no need to anyway since ps_status.c itself saves the string, and
      we already had an API (get_ps_display) to return it.
      I believe this explains Jim Nasby's report of intermittent crashes in
      elog.c when %i format code is in use in log_line_prefix.
      While at it, repair a previously unnoticed problem: on some platforms such as
      Darwin, the string returned by get_ps_display was blank-padded to the maximum
      length, meaning that lock.c's attempt to append " waiting" to it never worked.
      48052de7
    • T
      Disregard superuserness when checking to see if a role GRANT would · c3d8de09
      Tom Lane 提交于
      create circularity of role memberships.  This is a minimum-impact fix
      for the problem reported by Florian Pflug.  I thought about removing
      the superuser_arg test from is_member_of_role() altogether, as it seems
      redundant for many of the callers --- but not all, and it's way too late
      in the 8.1 cycle to be making large changes.  Perhaps reconsider this
      later.
      c3d8de09
  3. 04 11月, 2005 1 次提交
  4. 27 10月, 2005 1 次提交
  5. 25 10月, 2005 1 次提交
  6. 23 10月, 2005 1 次提交
  7. 22 10月, 2005 1 次提交
  8. 21 10月, 2005 1 次提交
  9. 19 10月, 2005 2 次提交
  10. 18 10月, 2005 1 次提交
  11. 15 10月, 2005 2 次提交
    • B
      Standard pgindent run for 8.1. · 1dc34982
      Bruce Momjian 提交于
      1dc34982
    • T
      Fix syslog bug: if any messages are emitted to write_syslog before · abd3f43b
      Tom Lane 提交于
      the facility has been set, the facility gets set to LOCAL0 and cannot
      be changed later.  This seems reasonably plausible to happen, particularly
      at higher debug log levels, though I am not certain it explains Han Holl's
      recent report.  Easiest fix is to teach the code how to change the value
      on-the-fly, which is nicer anyway.  I made the settings PGC_SIGHUP to
      conform with log_destination.
      abd3f43b
  12. 13 10月, 2005 2 次提交
  13. 12 10月, 2005 2 次提交
  14. 11 10月, 2005 1 次提交
  15. 10 10月, 2005 1 次提交
    • T
      Fix (hopefully for the last time) problems with datetime values displaying · 313ed1ed
      Tom Lane 提交于
      like '23:59:60' because of fractional-second roundoff problems.  Trying
      to control this upstream of the actual display code was hopeless; the right
      way is to explicitly round fractional seconds in the display code and then
      refigure the results if the fraction rounds up to 1.  Per bug #1927.
      313ed1ed
  16. 08 10月, 2005 2 次提交
  17. 07 10月, 2005 3 次提交
  18. 06 10月, 2005 1 次提交
    • T
      Revise pgstats stuff to fix the problems with not counting accesses · cb8b6618
      Tom Lane 提交于
      generated by bitmap index scans.  Along the way, simplify and speed up
      the code for counting sequential and index scans; it was both confusing
      and inefficient to be taking care of that in the per-tuple loops, IMHO.
      initdb forced because of internal changes in pg_stat view definitions.
      cb8b6618
  19. 04 10月, 2005 2 次提交
  20. 03 10月, 2005 2 次提交
    • T
      Expand pg_control information so that we can verify that the database · 64eea6c2
      Tom Lane 提交于
      was created on a machine with alignment rules and floating-point format
      similar to the current machine.  Per recent discussion, this seems like
      a good idea with the increasing prevalence of 32/64 bit environments.
      64eea6c2
    • T
      Change nextval and other sequence functions to specify their sequence · aa731ed8
      Tom Lane 提交于
      argument as a 'regclass' value instead of a text string.  The frontend
      conversion of text string to pg_class OID is now encapsulated as an
      implicitly-invocable coercion from text to regclass.  This provides
      backwards compatibility to the old behavior when the sequence argument
      is explicitly typed as 'text'.  When the argument is just an unadorned
      literal string, it will be taken as 'regclass', which means that the
      stored representation will be an OID.  This solves longstanding problems
      with renaming sequences that are referenced in default expressions, as
      well as new-in-8.1 problems with renaming such sequences' schemas or
      moving them to another schema.  All per recent discussion.
      Along the way, fix some rather serious problems in dbmirror's support
      for mirroring sequence operations (int4 vs int8 confusion for instance).
      aa731ed8
  21. 02 10月, 2005 1 次提交
    • T
      _SPI_execute_plan failed to return result tuple table to caller in · 1b61ee3c
      Tom Lane 提交于
      the ProcessUtility case, resulting in an intratransaction memory leak
      if a utility command actually did return any tuples, as reported by
      Dmitry Karasik.  Fix this and also make the behavior more consistent
      for cases involving nested SPI operations and multiple query trees,
      by ensuring that we store the state locally until it is ready to be
      returned to the caller.
      1b61ee3c
  22. 29 9月, 2005 1 次提交
  23. 28 9月, 2005 1 次提交
    • T
      Fix problems with PGXS builds against an installation tree that was · 4fc935a5
      Tom Lane 提交于
      relocated after installation.  We can't trust the installation paths
      inserted into Makefile.global by configure, so instead we must get the
      paths from pg_config.  This requires extending pg_config to support all
      the separately-configurable path names, but that was on TODO anyway.
      4fc935a5
  24. 26 9月, 2005 1 次提交
    • T
      The original patch to avoid building a hash join's hashtable when the · e990b9ce
      Tom Lane 提交于
      outer relation is empty did not work, per test case from Patrick Welche.
      It tried to use nodeHashjoin.c's high-level mechanisms for fetching an
      outer-relation tuple, but that code expected the hash table to be filled
      already.  As patched, the code failed in corner cases such as having no
      outer-relation tuples for the first hash batch.  Revert and rewrite.
      e990b9ce
  25. 25 9月, 2005 1 次提交
  26. 23 9月, 2005 1 次提交
  27. 20 9月, 2005 1 次提交
  28. 16 9月, 2005 1 次提交
    • N
      Rename pg_complete_relation_size() to pg_total_relation_size(), for the · e4d9b697
      Neil Conway 提交于
      sake of brevity and clarity.
      
      Make pg_reload_conf(), pg_rotate_logfile(), and pg_cancel_backend()
      return a boolean rather than an integer to indicate success or failure.
      
      Along the way, make some minor cleanups to dbsize.c -- in particular,
      use elog() rather than ereport() for "shouldn't happen" error
      conditions, and remove some of the more flagrant violations of the
      Postgres indentation conventions.
      
      Catalog version bumped.
      e4d9b697
  29. 12 9月, 2005 1 次提交
    • T
      Tweak TCP-keepalive code so that an invalid setting doesn't cause us · cc3bda37
      Tom Lane 提交于
      to drop connections unceremoniously.  Also some other marginal cleanups:
      don't query getsockopt() repeatedly if it fails, and avoid having the
      apparent definition of struct Port depend on which system headers you
      might have included or not.  Oliver Jowett and Tom Lane.
      cc3bda37