Skip to content
Snippets Groups Projects
  1. Jul 11, 2008
  2. Jul 07, 2008
  3. Jul 03, 2008
  4. Jul 01, 2008
  5. Jun 30, 2008
    • Heikki Linnakangas's avatar
      Turn PGBE_ACTIVITY_SIZE into a GUC variable, track_activity_query_size. · 995fb742
      Heikki Linnakangas authored
      As the buffer could now be a lot larger than before, and copying it could
      thus be a lot more expensive than before, use strcpy instead of memcpy to
      copy the query string, as was already suggested in comments. Also, only copy
      the PgBackendStatus struct and string if the slot is in use.
      
      Patch by Thomas Lee, with some changes by me.
      995fb742
  6. Jun 27, 2008
  7. Jun 26, 2008
  8. Jun 24, 2008
  9. Jun 23, 2008
  10. Jun 18, 2008
  11. Jun 16, 2008
  12. Jun 15, 2008
    • Tom Lane's avatar
      Rearrange ALTER TABLE syntax processing as per my recent proposal: the · a0b012a1
      Tom Lane authored
      grammar allows ALTER TABLE/INDEX/SEQUENCE/VIEW interchangeably for all
      subforms of those commands, and then we sort out what's really legal
      at execution time.  This allows the ALTER SEQUENCE/VIEW reference pages
      to fully document all the ALTER forms available for sequences and views
      respectively, and eliminates a longstanding cause of confusion for users.
      
      The net effect is that the following forms are allowed that weren't before:
      	ALTER SEQUENCE OWNER TO
      	ALTER VIEW ALTER COLUMN SET/DROP DEFAULT
      	ALTER VIEW OWNER TO
      	ALTER VIEW SET SCHEMA
      (There's no actual functionality gain here, but formerly you had to say
      ALTER TABLE instead.)
      
      Interestingly, the grammar tables actually get smaller, probably because
      there are fewer special cases to keep track of.
      
      I did not disallow using ALTER TABLE for these operations.  Perhaps we
      should, but there's a backwards-compatibility issue if we do; in fact
      it would break existing pg_dump scripts.  I did however tighten up
      ALTER SEQUENCE and ALTER VIEW to reject non-sequences and non-views
      in the new cases as well as a couple of cases where they didn't before.
      
      The patch doesn't change pg_dump to use the new syntaxes, either.
      a0b012a1
  13. Jun 14, 2008
  14. Jun 12, 2008
  15. Jun 11, 2008
  16. Jun 10, 2008
  17. Jun 08, 2008
  18. Jun 05, 2008
  19. Jun 04, 2008
  20. Jun 01, 2008
  21. May 30, 2008
    • Tom Lane's avatar
      Copy refint.so and autoinc.so into the src/test/regress directory during · bf4bd50f
      Tom Lane authored
      "make all", and then reference them there during the actual tests.  This
      makes the handling of these files more parallel to that of regress.so,
      and in particular simplifies use of the regression tests outside the
      original build tree.  The PGDG and Red Hat RPMs have been doing this via
      patches for a very long time.  Inclusion of the change in core was requested
      by Jørgen Austvik of Sun, and I can't see any reason not to.
      
      I attempted to fix the MSVC scripts for this too, but they may need
      further tweaking ...
      bf4bd50f
  22. May 28, 2008
  23. May 27, 2008
    • Tom Lane's avatar
    • Tom Lane's avatar
      Alter the xxx_pattern_ops opclasses to use the regular equality operator of · 7b8a63c3
      Tom Lane authored
      the associated datatype as their equality member.  This means that these
      opclasses can now support plain equality comparisons along with LIKE tests,
      thus avoiding the need for an extra index in some applications.  This
      optimization was not possible when the pattern opclasses were first introduced,
      because we didn't insist that text equality meant bitwise equality; but we
      do now, so there is no semantic difference between regular and pattern
      equality operators.
      
      I removed the name_pattern_ops opclass altogether, since it's really useless:
      name's regular comparisons are just strcmp() and are unlikely to become
      something different.  Instead teach indxpath.c that btree name_ops can be
      used for LIKE whether or not the locale is C.  This might lead to a useful
      speedup in LIKE queries on the system catalogs in non-C locales.
      
      The ~=~ and ~<>~ operators are gone altogether.  (It would have been nice to
      keep them for backward compatibility's sake, but since the pg_amop structure
      doesn't allow multiple equality operators per opclass, there's no way.)
      
      A not-immediately-obvious incompatibility is that the sort order within
      bpchar_pattern_ops indexes changes --- it had been identical to plain
      strcmp, but is now trailing-blank-insensitive.  This will impact
      in-place upgrades, if those ever happen.
      
      Per discussions a couple months ago.
      7b8a63c3
  24. May 19, 2008
  25. May 18, 2008
  26. May 17, 2008
    • Tom Lane's avatar
      Allow ALTER SEQUENCE START WITH to change the recorded start_value of a · caede71b
      Tom Lane authored
      sequence.  This seems an obvious extension to the recent patch, and it
      makes the code noticeably cleaner and more orthogonal.
      caede71b
    • Tom Lane's avatar
      Add a RESTART (without parameter) option to ALTER SEQUENCE, allowing a · 10a3471b
      Tom Lane authored
      sequence to be reset to its original starting value.  This requires adding the
      original start value to the set of parameters (columns) of a sequence object,
      which is a user-visible change with potential compatibility implications;
      it also forces initdb.
      
      Also add hopefully-SQL-compatible RESTART/CONTINUE IDENTITY options to
      TRUNCATE TABLE.  RESTART IDENTITY executes ALTER SEQUENCE RESTART for all
      sequences "owned by" any of the truncated relations.  CONTINUE IDENTITY is
      a no-op option.
      
      Zoltan Boszormenyi
      10a3471b
  27. May 16, 2008
  28. May 15, 2008
Loading