1. 10 Mar, 2011 14 commits
    • 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 6 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
    • Tom Lane's avatar
      Improve description of inquiry functions that accept regclass. · cfcdc99d
      Tom Lane authored
      Per a suggestion from Thom Brown, though this is not his proposed patch.
      cfcdc99d
    • Tom Lane's avatar
      Minor copy-editing in CREATE TRIGGER reference page. · f8c0af84
      Tom Lane authored
      Per suggestions from Thom Brown and Robert Haas.
      f8c0af84
    • Heikki Linnakangas's avatar
      If recovery_target_timeline is set to 'latest' and standby mode is enabled, · 1a4ab9ec
      Heikki Linnakangas authored
      periodically rescan the archive for new timelines, while waiting for new WAL
      segments to arrive. This allows you to set up a standby server that follows
      the TLI change if another standby server is promoted to master. Before this,
      you had to restart the standby server to make it notice the new timeline.
      
      This patch only scans the archive for TLI changes, it won't follow a TLI
      change in streaming replication. That is much needed too, but it would be a
      much bigger patch than I dare to sneak in this late in the release cycle.
      
      There was discussion on improving the sanity checking of the WAL segments so
      that the system would notice more reliably if the new timeline isn't an
      ancestor of the current one, but that is not included in this patch.
      
      Reviewed by Fujii Masao.
      1a4ab9ec
    • Robert Haas's avatar
      Reword alpha release note item on SSI. · bcf85e3f
      Robert Haas authored
      Per Josh Berkus; some additional explanatory text by me.
      bcf85e3f