1. 02 Sep, 2004 3 commits
    • Bruce Momjian's avatar
      This patch attempts to fix the issue with localized timezones on · 525449be
      Bruce Momjian authored
      Windows.
      
      Recap: When running on a localized windows version, the timezone name
      returned is also localized, and therefor does not match our lookup
      table.
      
      Solution: The registry contains both the name of the timezone in english
      and the localized name. The patch adds code to scan the registry for the
      localized name and gets the english name from that, and then rescans the
      table.
      
      I have tested this on a Swedish WinXP, and it works without problems.
      The registry layout is the same in Win2k, but I haven't specifically
      tested it. It's also the same on different languages but again only
      Swedish is tested.
      
      Magnus Hagander
      525449be
    • Bruce Momjian's avatar
      The current implementation of dbsize doesn't handle tables in · 528ac10c
      Bruce Momjian authored
      tablespaces correctly, and is quite restricted on objects covered (only
      tables and databases, but not tablespaces and indexes).
      
      The attached patch contributes:
      
      - database_size(name)
      - relation_size(text)
      These are the well-known functions, tablespace-aware.
      
      - pg_tablespace_size(oid)
      - pg_database_size(oid)
      - pg_relation_size(oid)
      Tablespace-aware implementations, used by the upper functions.
      pg_relation_size will report sizes of indexes as well.
      
      - pg_size_pretty(bigint)
      Formatting of sizes, to display '146MB' instead of '152885668'
      
      Andreas Pflug
      528ac10c
    • Tom Lane's avatar
      Remove obsolete comment. · e814e4bf
      Tom Lane authored
      e814e4bf
  2. 01 Sep, 2004 13 commits
  3. 31 Aug, 2004 10 commits
  4. 30 Aug, 2004 14 commits