1. 09 Sep, 2005 1 commit
    • Tom Lane's avatar
      Fix the various forms of AT TIME ZONE to accept either timezones found · a239af02
      Tom Lane authored
      in the zic database or zone names found in the date token table.  This
      preserves the old ability to do AT TIME ZONE 'PST' along with the new
      ability to do AT TIME ZONE 'PST8PDT'.  Per gripe from Bricklen Anderson.
      Also, fix some inconsistencies in usage of TZ_STRLEN_MAX --- the old
      code had the potential for one-byte buffer overruns, though given
      alignment considerations it's unlikely there was any real risk.
      a239af02
  2. 25 Aug, 2005 1 commit
  3. 24 Aug, 2005 1 commit
  4. 15 Aug, 2005 1 commit
  5. 13 Aug, 2005 1 commit
    • Tom Lane's avatar
      Make pg_stat_file() use OUT parameters so that the user doesn't have to · 2af9a44f
      Tom Lane authored
      remember the output parameter set for himself.  It's a bit of a kluge
      but fixing array_in to work in bootstrap mode looks worse.
      I removed the separate pg_file_length() function, as it no longer has any
      real notational advantage --- you can write (pg_stat_file(...)).length.
      2af9a44f
  6. 12 Aug, 2005 3 commits
  7. 02 Aug, 2005 1 commit
  8. 30 Jul, 2005 2 commits
  9. 29 Jul, 2005 1 commit
  10. 26 Jul, 2005 2 commits
    • Tom Lane's avatar
      Add a role property 'rolinherit' which, when false, denotes that the role · af019fb9
      Tom Lane authored
      doesn't automatically inherit the privileges of roles it is a member of;
      for such a role, membership in another role can be exploited only by doing
      explicit SET ROLE.  The default inherit setting is TRUE, so by default
      the behavior doesn't change, but creating a user with NOINHERIT gives closer
      adherence to our current reading of SQL99.  Documentation still lacking,
      and I think the information schema needs another look.
      af019fb9
    • Tom Lane's avatar
      Add pg_has_role() family of privilege inquiry functions modeled after the · f9fd1764
      Tom Lane authored
      existing ones for object privileges.  Update the information_schema for
      roles --- pg_has_role() makes this a whole lot easier, removing the need
      for most of the explicit joins with pg_user.  The views should be a tad
      faster now, too.  Stephen Frost and Tom Lane.
      f9fd1764
  11. 25 Jul, 2005 1 commit
  12. 22 Jul, 2005 1 commit
  13. 20 Jul, 2005 1 commit
    • Bruce Momjian's avatar
      Add 'day' field to INTERVAL so 1 day interval can be distinguished from · db05f4a7
      Bruce Momjian authored
      24 hours. This is very helpful for daylight savings time:
      
      	select '2005-05-03 00:00:00 EST'::timestamp with time zone + '24 hours';
      	      ?column?
      	----------------------
      	2005-05-04 01:00:00-04
      
      	select '2005-05-03 00:00:00 EST'::timestamp with time zone + '1 day';
      	      ?column?
      	----------------------
      	2005-05-04 01:00:00-04
      
      Michael Glaesemann
      db05f4a7
  14. 18 Jul, 2005 1 commit
    • Tom Lane's avatar
      Fix some bogosities in geometric-function documentation: add an entry · 37464a03
      Tom Lane authored
      for circle(polygon), which was missing; remove bogus entry for
      point(lseg, lseg), which does not exist, and the documentation seemed to
      describe lseg_interpt, which we already document as an operator not a
      function.  Also remove entry for box_intersect, which likewise is
      preferentially used via the operator #.
      37464a03
  15. 15 Jul, 2005 1 commit
  16. 14 Jul, 2005 1 commit
  17. 10 Jul, 2005 1 commit
    • Bruce Momjian's avatar
      I made the patch that implements regexp_replace again. · 75a64eeb
      Bruce Momjian authored
      The specification of this function is as follows.
      
      regexp_replace(source text, pattern text, replacement text, [flags
      text])
      returns text
      
      Replace string that matches to regular expression in source text to
      replacement text.
      
       - pattern is regular expression pattern.
       - replacement is replace string that can use '\1'-'\9', and '\&'.
          '\1'-'\9': back reference to the n'th subexpression.
          '\&'     : entire matched string.
       - flags can use the following values:
          g: global (replace all)
          i: ignore case
          When the flags is not specified, case sensitive, replace the first
          instance only.
      
      Atsushi Ogawa
      75a64eeb
  18. 06 Jul, 2005 1 commit
  19. 29 Jun, 2005 1 commit
  20. 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
  21. 26 Jun, 2005 1 commit
  22. 24 Jun, 2005 1 commit
    • Tom Lane's avatar
      Extend r-tree operator classes to handle Y-direction tests equivalent · b90f8f20
      Tom Lane authored
      to the existing X-direction tests.  An rtree class now includes 4 actual
      2-D tests, 4 1-D X-direction tests, and 4 1-D Y-direction tests.
      This involved adding four new Y-direction test operators for each of
      box and polygon; I followed the PostGIS project's lead as to the names
      of these operators.
      NON BACKWARDS COMPATIBLE CHANGE: the poly_overleft (&<) and poly_overright
      (&>) operators now have semantics comparable to box_overleft and box_overright.
      This is necessary to make r-tree indexes work correctly on polygons.
      Also, I changed circle_left and circle_right to agree with box_left and
      box_right --- formerly they allowed the boundaries to touch.  This isn't
      actually essential given the lack of any r-tree opclass for circles, but
      it seems best to sync all the definitions while we are at it.
      b90f8f20
  23. 15 Jun, 2005 2 commits
    • Neil Conway's avatar
      Minor SGML markup cleanup. · 4aaff553
      Neil Conway authored
      4aaff553
    • Bruce Momjian's avatar
      This patch makes it possible to use the full set of timezones when doing · 0851a6fb
      Bruce Momjian authored
      "AT TIME ZONE", and not just the shorlist previously available. For
      example:
      
      SELECT CURRENT_TIMESTAMP AT TIME ZONE 'Europe/London';
      
      works fine now. It will also obey whatever DST rules were in effect at
      just that date, which the previous implementation did not.
      
      It also supports the AT TIME ZONE on the timetz datatype. The whole
      handling of DST is a bit bogus there, so I chose to make it use whatever
      DST rules are in effect at the time of executig the query. not sure if
      anybody is actuallyi *using* timetz though, it seems pretty
      unpredictable just because of this...
      
      Magnus Hagander
      0851a6fb
  24. 14 Jun, 2005 2 commits
  25. 13 Jun, 2005 1 commit
  26. 09 Jun, 2005 1 commit
    • Bruce Momjian's avatar
      Please find attached a patch (diff -c against cvs HEAD) to add a · 4d0e7b4a
      Bruce Momjian authored
      function that accepts a double precision argument assumed to be a Unix
      epoch timestamp and returns timestamp with time zone, and accompanying
      documentation.
      
      Usage:
      
      test=# select to_timestamp(200120400);
             to_timestamp
      ------------------------
        1976-05-05 14:00:00+09
      (1 row)
      
      Michael Glaesemann
      4d0e7b4a
  27. 07 Jun, 2005 1 commit
  28. 06 Jun, 2005 1 commit
  29. 23 May, 2005 2 commits
  30. 20 May, 2005 1 commit
  31. 11 May, 2005 2 commits
  32. 13 Apr, 2005 1 commit