1. 24 Sep, 2007 5 commits
    • Andrew Dunstan's avatar
      Use correct PG_GETARG macro in pg_convert · 82467e4e
      Andrew Dunstan authored
      82467e4e
    • Alvaro Herrera's avatar
      Avoid having autovacuum read pgstats data too many times in quick succession. · 45cbdaa0
      Alvaro Herrera authored
      This is problematic for the autovac launcher when there are many databases,
      so we keep data for a full second before reading it again.
      45cbdaa0
    • Alvaro Herrera's avatar
      Reduce the size of memory allocations by lazy vacuum when processing a small · 58536626
      Alvaro Herrera authored
      table, by allocating just enough for a hardcoded number of dead tuples per
      page.  The current estimate is 200 dead tuples per page.
      
      Per reports from Jeff Amiel, Erik Jones and Marko Kreen, and subsequent
      discussion.
      CVS: ----------------------------------------------------------------------
      CVS: Enter Log.  Lines beginning with `CVS:' are removed automatically
      CVS:
      CVS: Committing in .
      CVS:
      CVS: Modified Files:
      CVS: 	commands/vacuumlazy.c
      CVS: ----------------------------------------------------------------------
      58536626
    • Tom Lane's avatar
      Simplify and rename some GUC variables, per various recent discussions: · 48f7e643
      Tom Lane authored
      * stats_start_collector goes away; we always start the collector process,
      unless prevented by a problem with setting up the stats UDP socket.
      
      * stats_reset_on_server_start goes away; it seems useless in view of the
      availability of pg_stat_reset().
      
      * stats_block_level and stats_row_level are merged into a single variable
      "track_counts", which controls all reports sent to the collector process.
      
      * stats_command_string is renamed to track_activities.
      
      * log_autovacuum is renamed to log_autovacuum_min_duration to better reflect
      its meaning.
      
      The log_autovacuum change is not a compatibility issue since it didn't exist
      before 8.3 anyway.  The other changes need to be release-noted.
      48f7e643
    • Andrew Dunstan's avatar
      Remove "convert 'blah' using conversion_name" facility, because if it · 02138357
      Andrew Dunstan authored
      produces text it is an encoding hole and if not it's incompatible
      with the spec, whatever the spec means (which we're not sure about anyway).
      02138357
  2. 23 Sep, 2007 8 commits
  3. 22 Sep, 2007 10 commits
  4. 21 Sep, 2007 8 commits
  5. 20 Sep, 2007 6 commits
  6. 19 Sep, 2007 2 commits
  7. 18 Sep, 2007 1 commit
    • Andrew Dunstan's avatar
      Close previously open holes for invalidly encoded data to enter the · 55613bf9
      Andrew Dunstan authored
      database via builtin functions, as recently discussed on -hackers.
      
      chr() now returns a character in the database encoding. For UTF8 encoded databases
      the argument is treated as a Unicode code point. For other multi-byte encodings
      the argument must designate a strict ascii character, or an error is raised,
      as is also the case if the argument is 0.
      
      ascii() is adjusted so that it remains the inverse of chr().
      
      The two argument form of convert() is gone, and the three argument form now
      takes a bytea first argument and returns a bytea. To cover this loss three new
      functions are introduced:
      . convert_from(bytea, name) returns text - converts the first argument from the
        named encoding to the database encoding
      . convert_to(text, name) returns bytea - converts the first argument from the
        database encoding to the named encoding
      . length(bytea, name) returns int - gives the length of the first argument in
        characters in the named encoding
      55613bf9