1. 11 3月, 2011 22 次提交
  2. 10 3月, 2011 10 次提交
    • B
      Use '=' when documenting long options. · ed032749
      Bruce Momjian 提交于
      ed032749
    • R
      Replication README updates. · fcb99609
      Robert Haas 提交于
      Fujii Masao
      fcb99609
    • H
      Fix bugs in the isolation tester flex rules. · 74a09d92
      Heikki Linnakangas 提交于
      Tom Lane pointed out that it was giving a warning: "-s option given but
      default rule can be matched". That was because there was no rule to handle
      newline in a quoted string. I made that throw an error.
      
      Also, line number tracking was broken, giving incorrect line number on
      error. Fixed that too.
      74a09d92
    • I
    • T
      replication/repl_gram.h needs to be cleaned too ... · f6587019
      Tom Lane 提交于
      f6587019
    • T
      Fix some oversights in distprep and maintainer-clean targets. · 174f65ab
      Tom Lane 提交于
      At least two recent commits have apparently imagined that a comment in
      a Makefile stating that something would be included in the distribution
      tarball was sufficient to make it so.  They hadn't bothered to hook
      into the upper maintainer-clean targets either.  Per bug #5923 from
      Charles Johnson, in which it emerged that the 9.1alpha4 tarballs are
      short a few files that should be there.
      174f65ab
    • B
      Mention gcc version in C comment. · 76fdee31
      Bruce Momjian 提交于
      76fdee31
    • T
      Remove collation information from TypeName, where it does not belong. · a051ef69
      Tom Lane 提交于
      The initial collations patch treated a COLLATE spec as part of a TypeName,
      following what can only be described as brain fade on the part of the SQL
      committee.  It's a lot more reasonable to treat COLLATE as a syntactically
      separate object, so that it can be added in only the productions where it
      actually belongs, rather than needing to reject it in a boatload of places
      where it doesn't belong (something the original patch mostly failed to do).
      In addition this change lets us meet the spec's requirement to allow
      COLLATE anywhere in the clauses of a ColumnDef, and it avoids unfriendly
      behavior for constructs such as "foo::type COLLATE collation".
      
      To do this, pull collation information out of TypeName and put it in
      ColumnDef instead, thus reverting most of the collation-related changes in
      parse_type.c's API.  I made one additional structural change, which was to
      use a ColumnDef as an intermediate node in AT_AlterColumnType AlterTableCmd
      nodes.  This provides enough room to get rid of the "transform" wart in
      AlterTableCmd too, since the ColumnDef can carry the USING expression
      easily enough.
      
      Also fix some other minor bugs that have crept in in the same areas,
      like failure to copy recently-added fields of ColumnDef in copyfuncs.c.
      
      While at it, document the formerly secret ability to specify a collation
      in ALTER TABLE ALTER COLUMN TYPE, ALTER TYPE ADD ATTRIBUTE, and
      ALTER TYPE ALTER ATTRIBUTE TYPE; and correct some misstatements about
      what the default collation selection will be when COLLATE is omitted.
      
      BTW, the three-parameter form of format_type() should go away too,
      since it just contributes to the confusion in this area; but I'll do
      that in a separate patch.
      a051ef69
    • B
      Document that server single-user mode does not do checkpoints or other · 01752f7b
      Bruce Momjian 提交于
      background processing.
      01752f7b
    • T
      Adjust the permissions required for COMMENT ON ROLE. · 49a08ca1
      Tom Lane 提交于
      Formerly, any member of a role could change the role's comment, as of
      course could superusers; but holders of CREATEROLE privilege could not,
      unless they were also members.  This led to the odd situation that a
      CREATEROLE holder could create a role but then could not comment on it.
      It also seems a bit dubious to let an unprivileged user change his own
      comment, let alone those of group roles he belongs to.  So, change the
      rule to be "you must be superuser to comment on a superuser role, or
      hold CREATEROLE to comment on non-superuser roles".  This is the same
      as the privilege check for creating/dropping roles, and thus fits much
      better with the rule for other object types, namely that only the owner
      of an object can comment on it.
      
      In passing, clean up the documentation for COMMENT a little bit.
      
      Per complaint from Owen Jacobson and subsequent discussion.
      49a08ca1
  3. 09 3月, 2011 8 次提交