1. 10 Mar, 2011 18 commits
    • Bruce Momjian's avatar
      9d4625ad
    • Tom Lane's avatar
      Revert addition of third argument to format_type(). · 7564654a
      Tom Lane authored
      Including collation in the behavior of that function promotes a world view
      we do not want.  Moreover, it was producing the wrong behavior for pg_dump
      anyway: what we want is to dump a COLLATE clause on attributes whose
      attcollation is different from the underlying type, and likewise for
      domains, and the function cannot do that for us.  Doing it the hard way
      in pg_dump is a bit more tedious but produces more correct output.
      
      In passing, fix initdb so that the initial entry in pg_collation is
      properly pinned.  It was droppable before :-(
      7564654a
    • Robert Haas's avatar
      Make error handling of synchronous_standby_names consistent. · 551c07d8
      Robert Haas authored
      It's not a good idea to kill the postmaster just because someone muffs
      this, and it's not consistent with what we do for other, similar GUCs.
      
      Fujii Masao, with a bit more hacking by me
      551c07d8
    • Robert Haas's avatar
      More synchronous replication typo fixes. · 2e019c86
      Robert Haas authored
      Fujii Masao
      2e019c86
    • Robert Haas's avatar
      More synchronous replication tweaks. · b8bb8dbf
      Robert Haas authored
      SyncRepRequested() must check not only the value of the
      synchronous_replication GUC but also whether max_wal_senders > 0.
      Otherwise, we might end up waiting for sync rep even when there's no
      possibility of a standby ever managing to connect.  There are some
      existing cross-checks to prevent this, but they're not quite sufficient:
      the user can start the server with max_wal_senders=0,
      synchronous_standby_names='', and synchronous_replication=off and then
      subsequent make synchronous_standby_names not empty using pg_ctl reload,
      and then SET synchronous_standby=on, leading to an indefinite hang.
      
      Along the way, rename the global variable for the synchronous_replication
      GUC to match the name of the GUC itself, for clarity.
      
      Report by Fujii Masao, though I didn't use his patch.
      b8bb8dbf
    • Robert Haas's avatar
      Remove obsolete comment. · e397d2ee
      Robert Haas authored
      In earlier versions of the sync rep patch, waiters removed themselves from
      the queue, but now walsender removes them before doing the wakeup.
      
      Report by Fujii Masao.
      e397d2ee
    • Robert Haas's avatar
      Minor sync rep corrections. · 64360987
      Robert Haas authored
      Fujii Masao, with a bit of additional wordsmithing by me.
      64360987
    • Robert Haas's avatar
      Emit a LOG message when pausing at the recovery target. · d16e290a
      Robert Haas authored
      Fujii Masao
      d16e290a
    • Robert Haas's avatar
      Add missing index terms for recovery control functions. · 1c3b434a
      Robert Haas authored
      Fujii Masao
      1c3b434a
    • Bruce Momjian's avatar
      Use '=' when documenting long options. · ed032749
      Bruce Momjian authored
      ed032749
    • Robert Haas's avatar
      Replication README updates. · fcb99609
      Robert Haas authored
      Fujii Masao
      fcb99609
    • Heikki Linnakangas's avatar
      Fix bugs in the isolation tester flex rules. · 74a09d92
      Heikki Linnakangas authored
      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
    • Itagaki Takahiro's avatar
    • Tom Lane's avatar
      f6587019
    • Tom Lane's avatar
      Fix some oversights in distprep and maintainer-clean targets. · 174f65ab
      Tom Lane authored
      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
    • Bruce Momjian's avatar
      Mention gcc version in C comment. · 76fdee31
      Bruce Momjian authored
      76fdee31
    • Tom Lane's avatar
      Remove collation information from TypeName, where it does not belong. · a051ef69
      Tom Lane authored
      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
    • Bruce Momjian's avatar
      Document that server single-user mode does not do checkpoints or other · 01752f7b
      Bruce Momjian authored
      background processing.
      01752f7b
  2. 09 Mar, 2011 10 commits
  3. 08 Mar, 2011 10 commits
  4. 07 Mar, 2011 2 commits
    • Peter Eisentraut's avatar
      Fix behavior when raising plpy.Fatal() · 804d13ad
      Peter Eisentraut authored
      It should cause a elog(FATAL) error, and it fact it was simply causing
      a elog(ERROR).
      
      Jan Urbański
      804d13ad
    • Peter Eisentraut's avatar
      Report Python errors from iterators with PLy_elog · 8f763243
      Peter Eisentraut authored
      This improves reporting, as the error string now includes the actual
      Python exception. As a side effect, this no longer sets the errcode to
      ERRCODE_DATA_EXCEPTION, which might be considered a feature, as it's
      not documented and not clear why iterator errors should be treated
      differently.
      
      Jan Urbański
      8f763243