1. 05 7月, 2013 2 次提交
  2. 04 7月, 2013 7 次提交
    • B
      Add contrib function references in the doc index · 20a1b9e7
      Bruce Momjian 提交于
      Backpatch to 9.3.
      Idea from Craig Ringer
      20a1b9e7
    • R
      Add new GUC, max_worker_processes, limiting number of bgworkers. · 6bc8ef0b
      Robert Haas 提交于
      In 9.3, there's no particular limit on the number of bgworkers;
      instead, we just count up the number that are actually registered,
      and use that to set MaxBackends.  However, that approach causes
      problems for Hot Standby, which needs both MaxBackends and the
      size of the lock table to be the same on the standby as on the
      master, yet it may not be desirable to run the same bgworkers in
      both places.  9.3 handles that by failing to notice the problem,
      which will probably work fine in nearly all cases anyway, but is
      not theoretically sound.
      
      A further problem with simply counting the number of registered
      workers is that new workers can't be registered without a
      postmaster restart.  This is inconvenient for administrators,
      since bouncing the postmaster causes an interruption of service.
      Moreover, there are a number of applications for background
      processes where, by necessity, the background process must be
      started on the fly (e.g. parallel query).  While this patch
      doesn't actually make it possible to register new background
      workers after startup time, it's a necessary prerequisite.
      
      Patch by me.  Review by Michael Paquier.
      6bc8ef0b
    • R
      docs: Clarify flag dependencies for background workers. · 5cbe935c
      Robert Haas 提交于
      BGWORKER_BACKEND_DATABASE_CONNECTION can only be used if
      BGWORKER_SHMEM_ACCESS is also used.
      
      Michael Paquier, with some tweaks by me.
      5cbe935c
    • P
      doc: Fix typo in event trigger documentation · 0d179568
      Peter Eisentraut 提交于
      From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
      0d179568
    • P
      doc: Add event trigger C API documentation · 0fe21ad8
      Peter Eisentraut 提交于
      From: Dimitri Fontaine <dimitri@2ndQuadrant.fr>
      0fe21ad8
    • F
      Get rid of pg_class.reltoastidxid. · 2ef085d0
      Fujii Masao 提交于
      Treat TOAST index just the same as normal one and get the OID
      of TOAST index from pg_index but not pg_class.reltoastidxid.
      This change allows us to handle multiple TOAST indexes, and
      which is required infrastructure for upcoming
      REINDEX CONCURRENTLY feature.
      
      Patch by Michael Paquier, reviewed by Andres Freund and me.
      2ef085d0
    • B
      pg_buffercache: document column meanings · f71939cd
      Bruce Momjian 提交于
      Improve documentation for usagecount and relforknumber.
      Backpatch to 9.3.
      Suggestion from Satoshi Nagayasu
      f71939cd
  3. 03 7月, 2013 4 次提交
    • N
      Expose object name error fields in PL/pgSQL. · 7cd9b137
      Noah Misch 提交于
      Specifically, permit attaching them to the error in RAISE and retrieving
      them from a caught error in GET STACKED DIAGNOSTICS.  RAISE enforces
      nothing about the content of the fields; for its purposes, they are just
      additional string fields.  Consequently, clarify in the protocol and
      libpq documentation that the usual relationships between error fields,
      like a schema name appearing wherever a table name appears, are not
      universal.  This freedom has other applications; consider a FDW
      propagating an error from an RDBMS having no schema support.
      
      Back-patch to 9.3, where core support for the error fields was
      introduced.  This prevents the confusion of having a release where libpq
      exposes the fields and PL/pgSQL does not.
      
      Pavel Stehule, lexical revisions by Noah Misch.
      7cd9b137
    • P
      doc: Remove i18ngurus.com link · 69e4fd45
      Peter Eisentraut 提交于
      The web site is dead, and the Wayback Machine shows that it didn't have
      much useful content before.
      69e4fd45
    • P
      5ecfa1f6
    • A
      Mention extra_float_digits in floating point docs · 148326b9
      Alvaro Herrera 提交于
      Make it easier for readers of the FP docs to find out about possibly
      truncated values.
      
      Per complaint from Tom Duffey in message
      F0E0F874-C86F-48D1-AA2A-0C5365BF5118@trillitech.com
      
      Author: Albe Laurenz
      Reviewed by: Abhijit Menon-Sen
      148326b9
  4. 02 7月, 2013 3 次提交
    • R
      Use an MVCC snapshot, rather than SnapshotNow, for catalog scans. · 568d4138
      Robert Haas 提交于
      SnapshotNow scans have the undesirable property that, in the face of
      concurrent updates, the scan can fail to see either the old or the new
      versions of the row.  In many cases, we work around this by requiring
      DDL operations to hold AccessExclusiveLock on the object being
      modified; in some cases, the existing locking is inadequate and random
      failures occur as a result.  This commit doesn't change anything
      related to locking, but will hopefully pave the way to allowing lock
      strength reductions in the future.
      
      The major issue has held us back from making this change in the past
      is that taking an MVCC snapshot is significantly more expensive than
      using a static special snapshot such as SnapshotNow.  However, testing
      of various worst-case scenarios reveals that this problem is not
      severe except under fairly extreme workloads.  To mitigate those
      problems, we avoid retaking the MVCC snapshot for each new scan;
      instead, we take a new snapshot only when invalidation messages have
      been processed.  The catcache machinery already requires that
      invalidation messages be sent before releasing the related heavyweight
      lock; else other backends might rely on locally-cached data rather
      than scanning the catalog at all.  Thus, making snapshot reuse
      dependent on the same guarantees shouldn't break anything that wasn't
      already subtly broken.
      
      Patch by me.  Review by Michael Paquier and Andres Freund.
      568d4138
    • B
      pg_dump docs: use escaped double-quotes, for Windows · 605b4c5a
      Bruce Momjian 提交于
      On Unix, you can embed double-quotes in single-quotes, and via versa.
      However, on Windows, you can only escape double-quotes in double-quotes,
      so use that in the pg_dump -t/table example.
      Backpatch to 9.3.
      Report from Mike Toews
      605b4c5a
    • B
      Add timezone offset output option to to_char() · 7408c5d2
      Bruce Momjian 提交于
      Add ability for to_char() to output the timezone's UTC offset (OF).  We
      already have the ability to return the timezone abbeviation (TZ/tz).
      Per request from Andrew Dunstan
      7408c5d2
  5. 29 6月, 2013 5 次提交
    • S
      ALTER TABLE ... ALTER CONSTRAINT for FKs · f177cbfe
      Simon Riggs 提交于
      Allow constraint attributes to be altered,
      so the default setting of NOT DEFERRABLE
      can be altered to DEFERRABLE and back.
      
      Review by Abhijit Menon-Sen
      f177cbfe
    • B
      pg_upgrade: remove -h option · e029275c
      Bruce Momjian 提交于
      -h (help) is not needed;  pg_upgrade already supports --help and -?,
      which is consistent with other tools.
      e029275c
    • B
      pg_upgrade: trim down --help and doc option descriptions · fb771f90
      Bruce Momjian 提交于
      Previous code had old/new prefixes on option values, e.g.
      --old-datadir=OLDDATADIR.  Remove them, for simplicity;  now:
      --old-datadir=DATADIR.  Also update docs to do the same.
      fb771f90
    • A
      Send SIGKILL to children if they don't die quickly in immediate shutdown · 82233ce7
      Alvaro Herrera 提交于
      On immediate shutdown, or during a restart-after-crash sequence,
      postmaster used to send SIGQUIT (and then abandon ship if shutdown); but
      this is not a good strategy if backends don't die because of that
      signal.  (This might happen, for example, if a backend gets tangled
      trying to malloc() due to gettext(), as in an example illustrated by
      MauMau.)  This causes problems when later trying to restart the server,
      because some processes are still attached to the shared memory segment.
      
      Instead of just abandoning such backends to their fates, we now have
      postmaster hang around for a little while longer, send a SIGKILL after
      some reasonable waiting period, and then exit.  This makes immediate
      shutdown more reliable.
      
      There is disagreement on whether it's best for postmaster to exit after
      sending SIGKILL, or to stick around until all children have reported
      death.  If this controversy is resolved differently than what this patch
      implements, it's an easy change to make.
      
      Bug reported by MauMau in message 20DAEA8949EC4E2289C6E8E58560DEC0@maumau
      
      MauMau and Álvaro Herrera
      82233ce7
    • B
      pg_upgrade: change -u to -U, for consistency · 457d6cf0
      Bruce Momjian 提交于
      Change -u (user) option to -U, for consistency with other tools like
      pg_dump and psql.  Also expand --user to --username, again for
      consistency.
      BACKWARD INCOMPATIBILITY
      457d6cf0
  6. 28 6月, 2013 2 次提交
  7. 27 6月, 2013 4 次提交
  8. 25 6月, 2013 2 次提交
  9. 22 6月, 2013 1 次提交
    • P
      doc: Fix date in EPUB manifest · dab1603e
      Peter Eisentraut 提交于
      If there is no <date> element, the publication date for the EPUB
      manifest is taken from the copyright year.  But something like
      "1996-2013" is not a legal date specification.  So the EPUB output
      currently fails epubcheck.
      
      Put in a separate <date> element with the current year.  Put it in
      legal.sgml, because copyright.pl already instructs to update that
      manually, so it hopefully won't be missed.
      dab1603e
  10. 21 6月, 2013 1 次提交
  11. 20 6月, 2013 2 次提交
  12. 18 6月, 2013 1 次提交
    • S
      Fix docs on lock level for ALTER TABLE VALIDATE · 073d7cb5
      Simon Riggs 提交于
      ALTER TABLE .. VALIDATE CONSTRAINT previously
      gave incorrect details about lock levels and
      therefore incomplete reasons to use the option.
      
      Initial bug report and fix from Marko Tiikkaja
      Reworded by me to include comments by Kevin Grittner
      073d7cb5
  13. 16 6月, 2013 1 次提交
  14. 15 6月, 2013 1 次提交
  15. 13 6月, 2013 3 次提交
    • T
      Improve updatability checking for views and foreign tables. · dc3eb563
      Tom Lane 提交于
      Extend the FDW API (which we already changed for 9.3) so that an FDW can
      report whether specific foreign tables are insertable/updatable/deletable.
      The default assumption continues to be that they're updatable if the
      relevant executor callback function is supplied by the FDW, but finer
      granularity is now possible.  As a test case, add an "updatable" option to
      contrib/postgres_fdw.
      
      This patch also fixes the information_schema views, which previously did
      not think that foreign tables were ever updatable, and fixes
      view_is_auto_updatable() so that a view on a foreign table can be
      auto-updatable.
      
      initdb forced due to changes in information_schema views and the functions
      they rely on.  This is a bit unfortunate to do post-beta1, but if we don't
      change this now then we'll have another API break for FDWs when we do
      change it.
      
      Dean Rasheed, somewhat editorialized on by Tom Lane
      dc3eb563
    • A
      Fix unescaping of JSON Unicode escapes, especially for non-UTF8. · 78ed8e03
      Andrew Dunstan 提交于
      Per discussion  on -hackers. We treat Unicode escapes when unescaping
      them similarly to the way we treat them in PostgreSQL string literals.
      Escapes in the ASCII range are always accepted, no matter what the
      database encoding. Escapes for higher code points are only processed in
      UTF8 databases, and attempts to process them in other databases will
      result in an error. \u0000 is never unescaped, since it would result in
      an impermissible null byte.
      78ed8e03
    • R
      Improve description of loread/lowrite. · c1d729b4
      Robert Haas 提交于
      Patch by me, reviewed by Tatsuo Ishii.
      c1d729b4
  16. 11 6月, 2013 1 次提交