1. 07 4月, 2004 1 次提交
    • B
      > >>1. change the type of "log_statement" option from boolean to string, · 6a25c6e1
      Bruce Momjian 提交于
      > >>with allowed values of "all, mod, ddl, none" with default "none".
      
      OK, here is a patch that implements #1.  Here is sample output:
      
              test=> set client_min_messages = 'log';
              SET
              test=> set log_statement = 'mod';
              SET
              test=> select 1;
               ?column?
              ----------
                      1
              (1 row)
      
              test=> update test set x=1;
              LOG:  statement: update test set x=1;
              ERROR:  relation "test" does not exist
              test=> update test set x=1;
              LOG:  statement: update test set x=1;
              ERROR:  relation "test" does not exist
              test=> copy test from '/tmp/x';
              LOG:  statement: copy test from '/tmp/x';
              ERROR:  relation "test" does not exist
              test=> copy test to  '/tmp/x';
              ERROR:  relation "test" does not exist
              test=> prepare xx as select 1;
              PREPARE
              test=> prepare xx as update x set y=1;
              LOG:  statement: prepare xx as update x set y=1;
              ERROR:  relation "x" does not exist
              test=> explain analyze select 1;;
                                                   QUERY PLAN
              ------------------------------------------------------------------------------------
               Result  (cost=0.00..0.01 rows=1 width=0) (actual time=0.006..0.007 rows=1 loops=1)
               Total runtime: 0.046 ms
              (2 rows)
      
              test=> explain analyze update test set x=1;
              LOG:  statement: explain analyze update test set x=1;
              ERROR:  relation "test" does not exist
              test=> explain update test set x=1;
              ERROR:  relation "test" does not exist
      
      It checks PREPARE and EXECUTE ANALYZE too.  The log_statement values are
      'none', 'mod', 'ddl', and 'all'.  For 'all', it prints before the query
      is parsed, and for ddl/mod, it does it right after parsing using the
      node tag (or command tag for CREATE/ALTER/DROP), so any non-parse errors
      will print after the log line.
      6a25c6e1
  2. 05 4月, 2004 1 次提交
  3. 25 3月, 2004 1 次提交
  4. 24 3月, 2004 1 次提交
  5. 23 3月, 2004 1 次提交
  6. 15 3月, 2004 1 次提交
  7. 09 3月, 2004 1 次提交
    • B
      Add: · 2d3fe86b
      Bruce Momjian 提交于
      #log_line_prefix = ''         # e.g. '<%u%%%d> '
                                    # %u=user name %d=database name
                                    # %r=remote host and port
                                    # %p=PID %t=timestamp %i=command tag
                                    # %c=session id %l=session line number
                                    # %s=session start timestamp
                                    # %x=stop here in non-session processes
                                    # %%='%'
      
      Andrew Dunstan
      2d3fe86b
  8. 17 2月, 2004 2 次提交
  9. 07 2月, 2004 1 次提交
  10. 04 2月, 2004 2 次提交
  11. 25 1月, 2004 1 次提交
    • J
      Added GUC variable bgwriter_flush_method controlling the action · d77b63b1
      Jan Wieck 提交于
      done by the background writer between writing dirty blocks and
      napping.
      
          none (default)   no action
      	sync             bgwriter calls smgrsync() causing a sync(2)
      
      A global sync() is only good on dedicated database servers, so
      more flush methods should be added in the future.
      
      Jan
      d77b63b1
  12. 24 1月, 2004 1 次提交
    • T
      Revise GEQO planner to make use of some heuristic knowledge about SQL, namely · 3969f292
      Tom Lane 提交于
      that it's good to join where there are join clauses rather than where there
      are not.  Also enable it to generate bushy plans at need, so that it doesn't
      fail in the presence of multiple IN clauses containing sub-joins.  These
      changes appear to improve the behavior enough that we can substantially reduce
      the default pool size and generations count, thereby decreasing the runtime,
      and yet get as good or better plans as we were getting in 7.4.  Consequently,
      adjust the default GEQO parameters.  I also modified the way geqo_effort is
      used so that it affects both population size and number of generations;
      it's now useful as a single control to adjust the GEQO runtime-vs-plan-quality
      tradeoff.  Bump geqo_threshold to 12, since even with these changes GEQO
      seems to be slower than the regular planner at 11 relations.
      3969f292
  13. 22 1月, 2004 1 次提交
  14. 02 12月, 2003 1 次提交
  15. 19 11月, 2003 1 次提交
    • J
      Background writer process · cfeca621
      Jan Wieck 提交于
      This first part of the background writer does no syncing at all.
      It's only purpose is to keep the LRU heads clean so that regular
      backends seldom to never have to call write().
      
      Jan
      cfeca621
  16. 17 11月, 2003 1 次提交
  17. 13 11月, 2003 3 次提交
  18. 08 10月, 2003 1 次提交
  19. 04 10月, 2003 1 次提交
  20. 07 9月, 2003 1 次提交
    • T
      Remove geqo_random_seed parameter. Having geqo reset the global random() · 48beecda
      Tom Lane 提交于
      sequence every time it's called is bogus --- it interferes with user
      control over the seed, and actually decreases randomness overall
      (because a seed based on time(NULL) is pretty predictable).  If you really
      want a reproducible result from geqo, do 'set seed = 0' before planning
      a query.
      48beecda
  21. 26 8月, 2003 1 次提交
  22. 17 8月, 2003 1 次提交
    • B
      (I always forget what the magic numbers 0 through 2 means for the · d4be99f6
      Bruce Momjian 提交于
      "syslog" option.)
      
      By the way: The "virtual_host" parameter is a bad name for that
      particular option, I think. "Virtual host" signals that PostgreSQL will
      behave differently according to which IP address it's contacted (like
      Apache's virtual host support which makes the web-server serve different
      sites according to different criteria). A better word for the options
      would be "tcpip_listen_addr" or something like that.
      
      Troels Arvin
      d4be99f6
  23. 29 7月, 2003 1 次提交
    • T
      Apply (a somewhat revised version of) Greg Mullane's patch to eliminate · 9c2a7c22
      Tom Lane 提交于
      heuristic determination of day vs month in date/time input.  Add the
      ability to specify that input is interpreted as yy-mm-dd order (which
      formerly worked, but only for yy greater than 31).  DateStyle's input
      component now has the preferred spellings DMY, MDY, or YMD; the older
      keywords European and US are now aliases for the first two of these.
      Per recent discussions on pgsql-general.
      9c2a7c22
  24. 23 7月, 2003 1 次提交
  25. 19 7月, 2003 1 次提交
  26. 15 7月, 2003 1 次提交
    • T
      The default values for shared_buffers and max_connections are now 1000 · de98a7e2
      Tom Lane 提交于
      and 100 respectively, if the platform will allow it.  initdb selects
      values that are not too large to allow the postmaster to start, and
      places these values in the installed postgresql.conf file.  This allows
      us to continue to start up out-of-the-box on platforms with small SHMMAX,
      while having somewhat-realistic default settings on platforms with
      reasonable SHMMAX.  Per recent pghackers discussion.
      de98a7e2
  27. 05 7月, 2003 1 次提交
  28. 01 7月, 2003 1 次提交
  29. 12 6月, 2003 2 次提交
  30. 11 6月, 2003 1 次提交
  31. 14 5月, 2003 1 次提交
  32. 19 4月, 2003 1 次提交
  33. 04 4月, 2003 1 次提交
    • T
      Remove zero_damaged_pages from postgresql.conf.sample; the only way to · a385186f
      Tom Lane 提交于
      find out about it is to read the documentation that tells you how
      dangerous it is.  Add default_transaction_read_only to documentation;
      seems to have been overlooked in patch that added read-only transactions.
      Clean up check_guc comparison script, which has been suffering bit rot.
      a385186f
  34. 31 3月, 2003 1 次提交
  35. 29 3月, 2003 1 次提交
    • T
      Add code to apply some simple sanity checks to the header fields of a · fd422628
      Tom Lane 提交于
      page when it's read in, per pghackers discussion around 17-Feb.  Add a
      GUC variable zero_damaged_pages that causes the response to be a WARNING
      followed by zeroing the page, rather than the normal ERROR; this is per
      Hiroshi's suggestion that there needs to be a way to get at the data
      in the rest of the table.
      fd422628