1. 29 Aug, 2005 1 commit
    • Tom Lane's avatar
      Reduce default value of max_prepared_transactions from 50 to 5. This · 037709e0
      Tom Lane authored
      saves nearly 700kB in the default shared memory segment size, which seems
      worthwhile, and it is a feature that many users won't use anyway.  Per
      Heikki's argument, there is no point in a compromise value --- those who
      are using 2PC at all will probably want it at least equal to max_connections.
      But we can't set it to zero by default without breaking the prepared_xacts
      regression test.
      037709e0
  2. 22 Aug, 2005 1 commit
  3. 21 Aug, 2005 1 commit
  4. 20 Aug, 2005 1 commit
    • Tom Lane's avatar
      Convert the arithmetic for shared memory size calculation from 'int' · 0007490e
      Tom Lane authored
      to 'Size' (that is, size_t), and install overflow detection checks in it.
      This allows us to remove the former arbitrary restrictions on NBuffers
      etc.  It won't make any difference in a 32-bit machine, but in a 64-bit
      machine you could theoretically have terabytes of shared buffers.
      (How efficiently we could manage 'em remains to be seen.)  Similarly,
      num_temp_buffers, work_mem, and maintenance_work_mem can be set above
      2Gb on a 64-bit machine.  Original patch from Koichi Suzuki, additional
      work by moi.
      0007490e
  5. 19 Aug, 2005 1 commit
  6. 14 Aug, 2005 1 commit
  7. 11 Aug, 2005 1 commit
    • Tom Lane's avatar
      Autovacuum loose end mop-up. Provide autovacuum-specific vacuum cost · d90c5311
      Tom Lane authored
      delay and limit, both as global GUCs and as table-specific entries in
      pg_autovacuum.  stats_reset_on_server_start is now OFF by default,
      but a reset is forced if we did WAL replay.  XID-wrap vacuums do not
      ANALYZE, but do FREEZE if it's a template database.  Alvaro Herrera
      d90c5311
  8. 30 Jul, 2005 1 commit
  9. 29 Jul, 2005 1 commit
    • Tom Lane's avatar
      Clean up a number of autovacuum loose ends. Make the stats collector · 5d5f1a79
      Tom Lane authored
      track shared relations in a separate hashtable, so that operations done
      from different databases are counted correctly.  Add proper support for
      anti-XID-wraparound vacuuming, even in databases that are never connected
      to and so have no stats entries.  Miscellaneous other bug fixes.
      Alvaro Herrera, some additional fixes by Tom Lane.
      5d5f1a79
  10. 25 Jul, 2005 1 commit
  11. 23 Jul, 2005 1 commit
  12. 21 Jul, 2005 2 commits
  13. 14 Jul, 2005 1 commit
  14. 05 Jul, 2005 1 commit
  15. 04 Jul, 2005 1 commit
    • Tom Lane's avatar
      Arrange for the postmaster (and standalone backends, initdb, etc) to · eb5949d1
      Tom Lane authored
      chdir into PGDATA and subsequently use relative paths instead of absolute
      paths to access all files under PGDATA.  This seems to give a small
      performance improvement, and it should make the system more robust
      against naive DBAs doing things like moving a database directory that
      has a live postmaster in it.  Per recent discussion.
      eb5949d1
  16. 28 Jun, 2005 1 commit
    • Tom Lane's avatar
      Replace pg_shadow and pg_group by new role-capable catalogs pg_authid · 7762619e
      Tom Lane authored
      and pg_auth_members.  There are still many loose ends to finish in this
      patch (no documentation, no regression tests, no pg_dump support for
      instance).  But I'm going to commit it now anyway so that Alvaro can
      make some progress on shared dependencies.  The catalog changes should
      be pretty much done.
      7762619e
  17. 26 Jun, 2005 2 commits
    • Tom Lane's avatar
      Code review for escape-strings patch. Sync psql and plpgsql lexers · d395aecf
      Tom Lane authored
      with main, avoid using a SQL-defined SQLSTATE for what is most definitely
      not a SQL-compatible error condition, fix documentation omissions,
      adhere to message style guidelines, don't use two GUC_REPORT variables
      when one is sufficient.  Nothing done about pg_dump issues.
      d395aecf
    • Bruce Momjian's avatar
      Add E'' syntax so eventually normal strings can treat backslashes · bb3cce4e
      Bruce Momjian authored
      literally.
      
      Add GUC variables:
      
              "escape_string_warning" - warn about backslashes in non-E strings
              "escape_string_syntax" - supports E'' syntax?
              "standard_compliant_strings" - treats backslashes literally in ''
      
      Update code to use E'' when escapes are used.
      bb3cce4e
  18. 17 Jun, 2005 1 commit
  19. 16 Jun, 2005 1 commit
  20. 14 Jun, 2005 2 commits
  21. 04 Jun, 2005 1 commit
    • Bruce Momjian's avatar
      · 72c53ac3
      Bruce Momjian authored
      Allow kerberos name and username case sensitivity to be specified from
      postgresql.conf.
      
      ---------------------------------------------------------------------------
      
      
      Here's an updated version of the patch, with the following changes:
      
      1) No longer uses "service name" as "application version". It's instead
      hardcoded as "postgres". It could be argued that this part should be
      backpatched to 8.0, but it doesn't make a big difference until you can
      start changing it with GUC / connection parameters. This change only
      affects kerberos 5, not 4.
      
      2) Now downcases kerberos usernames when the client is running on win32.
      
      3) Adds guc option for "krb_caseins_users" to make the server ignore
      case mismatch which is required by some KDCs such as Active Directory.
      Off by default, per discussion with Tom. This change only affects
      kerberos 5, not 4.
      
      4) Updated so it doesn't conflict with the rendevouz/bonjour patch
      already in ;-)
      
      Magnus Hagander
      72c53ac3
  22. 27 May, 2005 1 commit
  23. 15 May, 2005 1 commit
  24. 01 May, 2005 1 commit
    • Tom Lane's avatar
      Change CREATE TYPE to require datatype output and send functions to have · 6c412f06
      Tom Lane authored
      only one argument.  (Per recent discussion, the option to accept multiple
      arguments is pretty useless for user-defined types, and would be a likely
      source of security holes if it was used.)  Simplify call sites of
      output/send functions to not bother passing more than one argument.
      6c412f06
  25. 21 Apr, 2005 1 commit
  26. 13 Apr, 2005 1 commit
    • Tom Lane's avatar
      Simplify initdb-time assignment of OIDs as I proposed yesterday, and · 2193a856
      Tom Lane authored
      avoid encroaching on the 'user' range of OIDs by allowing automatic
      OID assignment to use values below 16k until we reach normal operation.
      
      initdb not forced since this doesn't make any incompatible change;
      however a lot of stuff will have different OIDs after your next initdb.
      2193a856
  27. 08 Apr, 2005 1 commit
  28. 25 Mar, 2005 1 commit
  29. 19 Mar, 2005 1 commit
  30. 13 Mar, 2005 1 commit
  31. 04 Mar, 2005 1 commit
    • Tom Lane's avatar
      Replace the BufMgrLock with separate locks on the lookup hashtable and · 5d508736
      Tom Lane authored
      the freelist, plus per-buffer spinlocks that protect access to individual
      shared buffer headers.  This requires abandoning a global freelist (since
      the freelist is a global contention point), which shoots down ARC and 2Q
      as well as plain LRU management.  Adopt a clock sweep algorithm instead.
      Preliminary results show substantial improvement in multi-backend situations.
      5d508736
  32. 01 Mar, 2005 1 commit
  33. 01 Jan, 2005 1 commit
  34. 20 Dec, 2004 1 commit
  35. 24 Nov, 2004 1 commit
    • Tom Lane's avatar
      A client_encoding specification coming from the connection request has · cf796cc7
      Tom Lane authored
      to be processed by GUC before InitPostgres, because any required lookup
      of the encoding conversion function has to be done during InitializeClientEncoding.
      So, I broke this last week by moving GUC processing to after InitPostgres :-(.
      What we can do as a compromise is process non-SUSET variables during
      command line scanning (the same as before), and postpone the processing
      of only SUSET variables.  None of the SUSET variables need to be set
      before InitPostgres.
      cf796cc7
  36. 14 Nov, 2004 1 commit
  37. 05 Nov, 2004 1 commit
    • Tom Lane's avatar
      Create 'default_tablespace' GUC variable that supplies a TABLESPACE · 98e8b480
      Tom Lane authored
      clause implicitly whenever one is not given explicitly.  Remove concept
      of a schema having an associated tablespace, and simplify the rules for
      selecting a default tablespace for a table or index.  It's now just
      (a) explicit TABLESPACE clause; (b) default_tablespace if that's not an
      empty string; (c) database's default.  This will allow pg_dump to use
      SET commands instead of tablespace clauses to determine object locations
      (but I didn't actually make it do so).  All per recent discussions.
      98e8b480